close
Skip to main content
Filter by
Sorted by
Tagged with
3 votes
2 answers
93 views

My current WordPress theme has a list post style that uses the excerpts function to show 35 words <?php echo wp_trim_words( get_the_content(), 35, '...' ); ?> In one of my posts, has a shordcode ...
Finding Colors's user avatar
Best practices
0 votes
6 replies
179 views

How does the C compiler(GCC) detect which function to start first? Example : #include <stdio.h> #define MSG_1 "Hello, World!" #define MSG_2 "Gougagougagouga!" void ...
GoofyKetchup's user avatar
-2 votes
0 answers
80 views

I expected that the simple freepascal code program callByRef; var z: integer; function alpha(var z: integer): integer; begin z:= 7; alpha:= 5; end; begin z:= 0; z:= z + alpha(z); ...
milvus1962's user avatar
Best practices
1 vote
1 replies
78 views

I am writing some numerical simulations in Julia. I have some functions which compute many parameters iteratively. When I am debugging, I like to have a debugging option, where a function additionally ...
Mstislav Keldysh's user avatar
1 vote
1 answer
95 views

I can't seem to define functions inside a script (I usually put them at the bottom). Content of Nothing.m: My_F(); function x = My_F() x= 43; endfunction Output: error: 'My_F' undefined near line 1,...
Marc Berth's user avatar
0 votes
1 answer
222 views

Is it possible in JavaScript to pass a function to a function and execute it within the variable scope of the receiving function? Something like Tool Command Language's uplevel? In this example, can ...
Gary's user avatar
  • 1
Advice
1 vote
9 replies
229 views

Currently following CS50 and learning recursion in C. This program returns the number of steps taken to get from n to 1, using the Collatz conjecture. I understand most of what's going on here, except ...
Ratthew's user avatar
  • 63
4 votes
2 answers
108 views

This is the Lua version of Knuth's "Man/Boy Test". I found that, to reproduce the result shown in the Wikipedia article, I had to declare the nested function "B" "local"....
Jay Michael's user avatar
Advice
0 votes
2 replies
165 views

I created a Python toolkit called `cartons` that wraps RoutingPy and OSRM. Currently, my API looks like this: cartons.route(lon1, lat1, lon2, lat2) For version 1.2.0, I want to support multiple ...
Andrej Bajusic's user avatar
2 votes
3 answers
138 views

Instead of writing: echo "variable: $variable" when debugging, I would like to do it all with a function, say: print "$variable" So far I have got this working: t=https://www....
Signor Pizza's user avatar
Best practices
0 votes
2 replies
93 views

I am trying to build function for calculator this is my code : ExpressionParser p = GrammarParser(); Expression exp = p.parse(input); var evaluator = ...
dr mhmd's user avatar
1 vote
1 answer
131 views

The following code is refused with error BC30037: invalid character for the √ character: Public Function √(x As BigDecimal) As BigDecimal return BigDecimal.SquareRoot(x, BigDecimal.Precision) End ...
schlebe's user avatar
  • 3,929
Best practices
0 votes
4 replies
107 views

I've got Display and FromStr, but what else? I'm working on releasing my first general-use library in rust that creates a struct and implementation for general use to assist with integrating with some ...
lilHar's user avatar
  • 1,903
2 votes
2 answers
48 views

I have a function fun that takes as argument a jax pytree and returns a jax pytree with the same structure. Sometimes, I don't want to calculate the function for a specific leaf of the pytree. In that ...
Ben's user avatar
  • 679
0 votes
1 answer
100 views

In PostgreSQL (using DBeaver as a client), when I return the same query from a function as from a table for a timestamptz field, the time element appears differently (and is then handled by downstream ...
Martin Yapp's user avatar

15 30 50 per page
1
2 3 4 5
7419