Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
414 views

I'm Trying to generate a query in big query dynamically based on different conditions in the "Where" condition of the query. so for instance if I receive a list of columns and their ...
VIJU's user avatar
  • 176
0 votes
1 answer
239 views

I am using this model: https://huggingface.co/stabilityai/stable-cascade from diffusers import StableCascadeCombinedPipeline print("LOADING MODEL") pipe = StableCascadeCombinedPipeline....
x89's user avatar
  • 3,522
0 votes
0 answers
113 views

I want to generate asserts at compile time, checking whether each element within a struct is initialized or not. I was wondering how I could generate a for loop of such static assert statements at ...
Timbino's user avatar
0 votes
2 answers
99 views

Say I want to write a function arrfill<N> that fills an array of length N. Below is the template implementation I tried. template<typename T> bool arrfill(T arr[0], T v){;} template<...
Yangcy's user avatar
  • 167
1 vote
1 answer
2k views

I'm carrying out a P5 assignment for college and struggling to understand some code I found online. I've included a screenshot of the output of the code and the actual code below. I understand the ...
therealpamhalpert's user avatar
0 votes
0 answers
305 views

I need help with a code I'm working on for a project. What I need it to do is show the users the picture one by one and memorize the time spent on each. At the end it should open the webcam and ...
Silsil's user avatar
  • 1
20 votes
3 answers
4k views

Intro I'm looking for a pattern to convert C++ type traits into their variadic counterparts. A methodology to approach the problem would be appreciated and generative programming patterns to automate ...
Nikos Athanasiou's user avatar
1 vote
1 answer
349 views

I have a few dozen classes. Here are two of them: class Class_A(ClassABC): def __init__(self): super().__init__() def from_B(self, b): #do stuff def from_C(self, c): ...
Arlen's user avatar
  • 6,883
17 votes
1 answer
8k views

I've been using CodeSmith for the past 2 years and love what it does for me. However, I also know about T4 which is built in to Visual Studio and can do some pretty cool stuff too. Based on ...
Jake's user avatar
  • 906
18 votes
7 answers
7k views

I find myself drawn to the Parsing Expression Grammar formalism for describing domain specific languages, but so far the implementation code I've found has been written in languages like Java and ...
Peter J. Wasilko's user avatar