I hereby claim:
- I am pepijndevos on github.
- I am pepijndevos (https://keybase.io/pepijndevos) on keybase.
- I have a public key whose fingerprint is 3B65 F224 6FBE DE18 FCE8 2311 4636 9C5D E962 3F94
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[General] | |
ShowTurretRangeIndicators=1 | |
UserSetResolution=1 | |
Windowed=DEPRECATED | |
CfgVersion=4.21.397 | |
SnapCameraOnRespawn=1 | |
BindSysKeys=0 | |
OSXMouseAcceleration=0 | |
AutoAcquireTarget=1 |
#include <Wire.h> | |
#include <Servo.h> | |
#define MAX_POS 2000 | |
#define MIN_POS 1000 | |
Servo servos[8]; | |
volatile uint16_t servo_inputs[] = {1500,1500,1500,1500,1500,1500,1500,1500}; |
#include "keymap_common.h" | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
/* 0: mostly letters */ | |
KEYMAP(KC_Q, KC_W, KC_D, KC_R, KC_Y, KC_J, KC_U, KC_F, KC_P, KC_SCLN, \ | |
KC_A, KC_S, KC_H, KC_T, KC_G, KC_M, KC_N, KC_E, KC_O, KC_I, \ | |
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_L, KC_COMM, KC_DOT, KC_SLSH, \ | |
KC_ESC, KC_TAB, KC_LCTL, KC_LSFT, KC_BSPC, KC_LGUI, KC_LALT, \ | |
KC_SPC, KC_FN0, KC_FN1, KC_QUOT, KC_ENT), | |
/* 1: punctuation and numbers */ |
{"Hecarim": {"name": "Hecarim", "key": "120", "tags": ["Fighter", "Tank"], "image": {"group": "champion", "full": "Hecarim.png", "sprite": "champion1.png", "w": 48, "h": 48, "x": 96, "y": 0}, "info": {"attack": 8, "defense": 6, "magic": 4, "difficulty": 6}, "id": "Hecarim", "stats": {"attackdamageperlevel": 3.2, "attackspeedoffset": -0.0672, "attackdamage": 61.376, "armorperlevel": 4.0, "mpperlevel": 40.0, "spellblockperlevel": 1.25, "movespeed": 345.0, "hp": 599.6, "attackspeedperlevel": 2.5, "hpregen": 7.0, "critperlevel": 0.0, "crit": 0.0, "mpregen": 6.5, "mpregenperlevel": 0.6, "mp": 277.2, "hpregenperlevel": 0.75, "armor": 26.72, "attackrange": 175.0, "spellblock": 32.1, "hpperlevel": 95.0}, "blurb": "Hecarim is a towering, armored specter whose name is whispered fearfully across the length and breadth of Runeterra. He patrols the Shadow Isles, running down anyone foolish enough to set foot upon its cursed soil. As the vanguard of undeath, Hecarim ...", "gender": "other", "version": "5.11.1", "title": "t |
(def actions (atom {})) | |
(defn register [action function] | |
(swap! actions assoc action (conj (action @actions) function))) | |
(defn do-action [action arg] | |
(reduce #(%2 %1) arg (action @actions))) |
(defmacro maze-thread [value & exprs] | |
(let [gen (gensym)] | |
(concat | |
`(let [~gen (atom ~value)]) | |
(map (fn [expr] `(swap! ~gen (fn [~'%] ~expr))) exprs)))) |
(require 'clojure.contrib.lazy-seqs) | |
(defmacro fib [nr] | |
(let [fibfn (gensym fib)] | |
`(let [~fibfn (fn [nrs#] [(peek nrs#) (+ (first nrs#) (peek nrs#))])] | |
(-> [0 1] ~@(take nr (repeat fibfn)))))) | |
(println (time (last (fib 10)))) | |
(println (time (nth (clojure.contrib.lazy-seqs/fibs) 11))) |
from Quartz import * | |
def MyFunction(*args): | |
print args | |
tap = CGEventTapCreate(kCGHIDEventTap, kCGHeadInsertEventTap, kCGEventTapOptionListenOnly, kCGEventLeftMouseDown, MyFunction, None) | |
runLoopSource = CFMachPortCreateRunLoopSource(None, tap, 0) | |
CFRunLoopAddSource(CFRunLoopGetCurrent(), runLoopSource, kCFRunLoopDefaultMode) | |
CGEventTapEnable(tap, True) |
from Xlib.display import Display | |
from Xlib import X | |
from Xlib.ext import record | |
from Xlib.protocol import rq | |
# True if you want to stop events from reaching other apps | |
capture = True | |
def record_callback(reply): | |
data = reply.data |