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
### 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: |
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
// ==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 |
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 math import * | |
def euclid(a,b): | |
#Euclidean algorithm | |
#compute the greatest common denominator | |
if (b == 0): | |
return a | |
else: | |
return euclid(b, a % b) |
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
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 |
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
(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) |