This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What's 664751 * 8? | |
> 5298008 | |
Are you sure? What's 664751 times 8? | |
> Yes, 664751 times 8 is 5298008. | |
Multiply 8 by 664751. | |
> 5298008. | |
What's 2 times 664751? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hey my mastodon is https://sfba.social/@borogove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Weirdolope - a minimal one-control envelope generator | |
// (c) 2022 Russell Borogove | |
// Use at your own risk | |
// This envelope generator uses floating point math; | |
// if your MCU doesn't have floating-point hardware | |
// support you're gonna have a bad time. | |
// Call updateEnvelope() periodically at a rate >= 1000 Hz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import datetime | |
def d6(): | |
return random.randint(1,6) | |
def d12(): | |
return random.randint(1,12) | |
def d16(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byte currentData[3]; | |
byte currentCommand = 0; | |
byte commandChannel = 0; | |
byte currentNote = 255; | |
short length = 0; | |
bool midiFlicker = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abondo | |
Amalia | |
Amy | |
Arnetta | |
Aztek | |
Ba | |
Balls | |
Bar | |
Barker | |
Beanbag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Random number with Gaussian distribution. | |
Translated from Python's library random module to C# | |
by Russell Borogove. | |
*/ | |
const double NO_VALUE = -1e6f; | |
const double TAU = Math.PI*2.0; | |
static double gaussNext = NO_VALUE; | |
public static double Gaussian( double mu, double sigma ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+PART[engineLargeSkipper_125m]:FOR[Navy2K] | |
{ | |
@name = SuperDraco_Single | |
%RSSROConfig = True | |
!MODULE[TweakScale] | |
{ | |
} | |
!mesh = DEL | |
!MODEL {} | |
MODEL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+PART[Size3AdvancedEngine]:FOR[dasbin] | |
{ | |
@name = Sea_Dragon_Stage_I | |
%RSSROConfig = True | |
!MODULE[TweakScale] | |
{ | |
} | |
!mesh = DEL | |
!MODEL {} | |
MODEL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> class A(object): | |
... def __init__(self): | |
... pass | |
... | |
>>> class B(A): | |
... x = 1 | |
... | |
>>> g = B() | |
>>> g.__dict__ | |
{} |