I hereby claim:
- I am francisrstokes on github.
- I am francisstokes (https://keybase.io/francisstokes) on keybase.
- I have a public key ASDAQWguSwFKdWeKeEvEeTyzezi0na5Pmhdva4wN2Cwj4wo
To claim this, I am signing this object:
const getDSLValue = (iterator, last) => { | |
const {value, done} = iterator.next(last); | |
if (done) { | |
return value; | |
} | |
switch (value) { | |
case 'sword': { | |
return getDSLValue(iterator, { | |
weaponType: "Shiny Sword", |
const getDSLValue = (iterator, last) => { | |
const {value, done} = iterator.next(last); | |
if (done) { | |
return value.slice(1).reduce((x, f) => f(x), value[0]); | |
} | |
return getDSLValue(iterator, last ? [...last, value] : [value]); | |
} | |
const pipe = gen => getDSLValue(gen(null, )); | |
import React from 'react'; | |
class PipeDriveForm extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
randomId: 'id' + Math.random().toString(36).substring(7) | |
}; | |
} |
I hereby claim:
To claim this, I am signing this object:
{ | |
"title": "Map CapsLock plus i/j/k/l to Arrows", | |
"rules": [ | |
{ | |
"description": "Map CapsLock plus i/j/k/l to Arrows", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", |
#!/bin/bash | |
# Run this script as root on a linux machine to | |
# block (at least some) facebook trackers | |
echo "0.0.0.0 www.facebook.com" >> /etc/hosts | |
echo "0.0.0.0 facebook.com" >> /etc/hosts | |
echo "0.0.0.0 login.facebook.com" >> /etc/hosts | |
echo "0.0.0.0 www.login.facebook.com" >> /etc/hosts | |
echo "0.0.0.0 fbcdn.net" >> /etc/hosts |
NAME := firmware | |
# Utility commands | |
RM := rm -rf | |
DIR_DUP = mkdir -p $(@D) | |
# Compiler commands | |
GCC_PREFIX := arm-none-eabi | |
CC := $(GCC_PREFIX)-gcc | |
OBJCOPY := $(GCC_PREFIX)-objcopy |
#!/usr/bin/env python | |
import math | |
import subprocess | |
from random import choice | |
from argparse import ArgumentParser | |
def random_filename(): | |
letters = [chr(ord("a") + x) for x in range(26)] | |
return "".join([choice(letters) for _ in range(12)]) |
uint16_t BitReverse16(uint16_t value) { | |
value = (value & 0xFF00) >> 8 | (value & 0x00FF) << 8; | |
value = (value & 0xF0F0) >> 4 | (value & 0x0F0F) << 4; | |
value = (value & 0xCCCC) >> 2 | (value & 0x3333) << 2; | |
value = (value & 0xAAAA) >> 1 | (value & 0x5555) << 1; | |
return value; | |
} |
Pinout for Nucleo-F401RE | |
_________________________________________________ | |
| O | | |
| User Reset | | |
| [B] [B] | | |
| PC10 PC11 PC9 PC8 | | |
| PC12 PD2 PB8 PC6 | | |
| VDD E5V PB9 PC5 | | |
| BOOT0 GND AVDD U5V | | |
| NC NC GND NC | |