Search
146 results for “DocBohn”
-
CowPi (0.8.2) for avr/mbed_rp2040/rp2040 by Christopher Bohn
➡️ https://github.com/DocBohn/CowPi
A library for the Cow Pi educational hardware kit.
-
CowPi (0.8.0) for avr/mbed_rp2040/rp2040 by Christopher Bohn
➡️ https://github.com/DocBohn/CowPi
A library for the Cow Pi educational hardware kit.
-
-
-
I was thinking about FORTRAN's arithmetic-if statement
`if (expr) linenumber1, linenumber2, linenumber3`I think the closest you could get to that in a non-FORTRAN language still in use would be in C with GCC's labels-as-values extension:
`goto *(result = (expr)) < 0 ? &&label1 : !result ? &&label2 : &&label3;`If the original FORTRAN code didn't go spaghetti (and if `expr` is an integer expression), then you could do it with a C switch-case statement (using GCC's or C2Y's case-ranges):
```
switch (expr) {
case INT_MIN ... -1:
...
case 0:
...
case 1 ... INT_MAX:
...
}
```
or Java's classic switch-case:
`switch (Integer.signum(expression)) { // use cases -1, 0, 1`If there's no fallthrough, then you could use Java's "enhanced" switch-case or Python's match-case:
```
match expr:
case k if k < 0:
...
case k if k == 0:
...
case k if k > 0:
...
```https://godbolt.org/z/dx9dr6oKT
My point? I don't think there is one.
#StupidCompilerTricks -
-
This post by @OddJob sent me briefly down a rabbit hole.
https://beige.party/@OddJob/116574600581889670
@wikipedia suggests that a sandwich could be "any dish in which bread serves as a container or wrapper for another food type".
https://en.wikipedia.org/wiki/Sandwich#:~:text=any%20dish%20in%20which%20bread%20serves%20as%20a%20container%20or%20wrapper%20for%20another%20food%20typeIf so, then soup served in a "bread bowl" is literally a SOUP SANDWICH!
https://en.wiktionary.org/wiki/soup_sandwich -
-
-
-
-
-
-
-
-
-
-
-
-
-
Palms down, palms up, shoulders, then ya
Hands to waist, then your hips: twista
Spin, spin, spin around
Don't fall to the ground
Aaaaaayyyyyyyyy Macarena! -
-
-
-
-
-
-
-