Skip to content

Instantly share code, notes, and snippets.

View archywillhe's full-sized avatar
⚰️
catching deadlines

Archy archywillhe

⚰️
catching deadlines
View GitHub Profile
(define __APPLE__ 1)
(define __LITTLE_ENDIAN__ 1)
(define __MACH__ 1)
(define __USER_LABEL_PREFIX__ "_")
(define-constant sizeof-char 1)
(define-constant alignof-char 1)
(define-constant sizeof-short 2)
(define-constant alignof-short 2)
(define-constant sizeof-int 4)
(define-constant alignof-int 4)
@archywillhe
archywillhe / injection.js
Last active October 12, 2015 16:44
when Makey Makey meets Super Looper
var mapping = {
65:81, //a -> q
83:87, //s -> w
68:69, //d -> e
70:82, //f -> r
71:84, //g -> t
72:89, //h -> y
37:85, //arrow left -> u
38:73, //arrow up -> i
40:79, //arrow down -> o
@archywillhe
archywillhe / an-algorithm-for-problem-454.py
Created October 12, 2015 16:47
On a Mac Air it can only compute up to F(107) in a minute. It uses a "generator" concept to generate the number of possible premutations for each "generator" and sum them up.
from math import *
def euclid(a,b):
#Euclidean algorithm
#compute the greatest common denominator
if (b == 0):
return a
else:
return euclid(b, a % b)
// ==UserScript==
// @name Fuck FuckAdBlock Functionally
// @author 0a-
// @namespace 0a-
// @description A functional alternative of FuckFuckAdblock by Mechazawa
// @license WTFPl
// @version 0
// @include *
// @run-at document-start
// @updateURL https://github.com/0a-/FuckFuckAdblockFunctionally/raw/master/FuckFuckAdBlockFunctionally.user.js
### Keybase proof
I hereby claim:
* I am archywillhe on github.
* I am 0a (https://keybase.io/0a) on keybase.
* I have a public key ASD4ogeOjwn5MrCqegZrRhb07rWGNi3wDE7UjQD-Uw4rTAo
To claim this, I am signing this object: