openpgp4fpr:4DF006B644AAC7DF816DE059E9E2EA5077277E7C
This file contains hidden or 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
int main() { | |
short x = 42; | |
short y = 25; | |
switch (x) { | |
short x = 42; | |
short y = 25; | |
case 42: return y; | |
case 84: return y; | |
default: return y; | |
} |
This file contains hidden or 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
; Shift + Wheel for horizontal scrolling | |
+WheelUp:: | |
; Scroll to the left | |
MouseGetPos,,,id, fcontrol,1 | |
Loop 8 ; <-- Increase for faster scrolling | |
SendMessage, 0x114, 0, 0, %fcontrol%, ahk_id %id% ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINERIGHT. | |
return | |
+WheelDown:: | |
;Scroll to the right | |
MouseGetPos,,,id, fcontrol,1 |
This file contains hidden or 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
[1] | |
speaker = "raptor-lady" | |
expression = "Afraid" | |
name = "Trapped Dinosaur" | |
text = "You, Mr. Raptor, can you help?" | |
[1.1] | |
evil_requirement = 10 | |
name = "Mr. Raptor" | |
expression = "Angry" |
This file contains hidden or 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
template <typename T> | |
struct extract_return_type: std::false_type {}; | |
template<typename A, typename B> | |
struct extract_return_type<A(B::*)> { typedef A return_type; typedef B class_type; }; | |
template <class Accessor> | |
struct AccessorComparator { | |
Accessor a1, a2; | |
typedef typename extract_return_type<Accessor>::class_type Object; |
This file contains hidden or 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
type MaybeIterator<T> = IterableIterator<T> | T[]; | |
function *iter<A>(a: A[]): IterableIterator<A> { | |
yield* a; | |
} | |
function isIter<A>(a: MaybeIterator<A>): a is IterableIterator<A> { | |
return (<IterableIterator<A>>a).next !== undefined; | |
} |
This file contains hidden or 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
WINS | |
{'falco': {'falcon': 78, | |
'fox': 39, | |
'marth_tip': 41, | |
'peach': 48, | |
'puff': 44, | |
'sheik': 17, | |
'total': 267}, | |
'falcon': {'falco': 20, | |
'fox': 31, |
This file contains hidden or 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
WINS | |
{'falco': {'falcon': 1, | |
'fox': 1, | |
'marth_tip': 0, | |
'peach': 1, | |
'puff': 2, | |
'sheik': 0, | |
'total': 5}, | |
'falcon': {'falco': 0, | |
'fox': 2, |
This file contains hidden or 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
var getWord = function (database, callback) { | |
random_word_request(function (data) { | |
var word = data.word; | |
// If the word exists, find again | |
if (database.find(word)) { | |
return getWord(database, callback); | |
} | |
database.push(word); |
This file contains hidden or 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
const uint8_t gamecube_pin = PD0; | |
const uint8_t gamecube_prefix = 25; | |
const uint8_t gamecube_bitcount = 64; | |
unsigned char data[gamecube_bitcount + gamecube_prefix]; | |
#define PIN_READ(pin) (PIND & (1 << pin)) | |
#define TWOMICROSECOND_NOPS "nop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\nnop\n" | |
#define WAIT_FALLING_EDGE(pin) while(!PIN_READ(pin)); while(PIN_READ(pin)); |
NewerOlder