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
AddressDigits .var 0 | |
.macro STR(Address) | |
DigitCounter .var 0 | |
AddressDigits = Address | |
.byte " " | |
.while AddressDigits != 0 | |
* = * - 1 | |
.byte AddressDigits - ( AddressDigits / 10 ) * 10 + $30 | |
* = * - 1 |
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 neopixel, math, time | |
from machine import Pin | |
p = Pin(28, Pin.OUT) | |
px = neopixel.NeoPixel(p,24) | |
theta = [0.0,0.0,0.0] | |
delta = [2.1,1.3,-1.5] |
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
#include <SDL.h> | |
#include <iostream> | |
SDL_Window *win; | |
SDL_Renderer *ren; | |
SDL_Event e; | |
#define RES_X 1920 | |
#define RES_Y 1080 |
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
from itertools import * | |
def program(ndigits): | |
for i in range(2**ndigits): | |
ones = 0 | |
zeros = 0 | |
valid = True # optimism | |
instructions = "{:0{ndigits}b}".format(i, ndigits=ndigits) | |
for j in instructions: | |
if j=="1": ones += 1 |
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
return StringUtils.join( Stream.of( | |
customerDetails.getPersonalName(), | |
customerDetails.getMiddleName(), | |
customerDetails.getFamilyName() ).filter( Objects::nonNull ).iterator(), " "); |
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
jar { | |
manifest { | |
attributes 'Main-Class': 'com.overswell.MainKt' | |
} | |
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } | |
} |
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
Typeface font = Typeface.createFromAsset(getAssets(), "fonts/Lobster_1.3.otf"); |
I hereby claim:
- I am pcholt on github.
- I am philosopherstone (https://keybase.io/philosopherstone) on keybase.
- I have a public key ASDUbdPHc4brhkL1L1fFQA2X_DpJNqRkURVqslemdQKPWQo
To claim this, I am signing this object: