View fzcl.go
package main
import (
"fmt"
"time"
)
var words = map[int]string{
1: "one",
2: "two",
View netplay.py
from random import choice
hex = '0123456789abcdef'
print ''.join(choice(hex) for _ in xrange(8))
View cryptomoji.js
var emoji = require('node-emoji')
var emojiList = emoji.search('');
function emojiNum(emoji) {
for (var i = 0; i < emojiList.length; i++) {
if (emojiList[i].key === emoji) {
return i;
}
}
View odetester.py
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 14 12:29:54 2017
@author: Paul
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import ode
View tiltcontrols.py
#!/usr/bin/python
import argparse
from autopy3 import key
parser = argparse.ArgumentParser(description='Type garbage in chat')
parser.add_argument('msg', nargs='+', help='message to type')
args = parser.parse_args()
key.tap(key.K_RETURN)
key.type_string(' '.join(args.msg))
View cpps.sh
cpps() {
exe=/tmp/$(basename $1 .cpp)
g++ -std=c++11 -g -O0 $1 -o $exe || return 1
if [ -z "$2" ]
then
$exe
else
$exe "${@:2}"
View HashMap.cpp
#include <iostream>
#include <vector>
template <class K, class V>
class HashMap;
template <class K, class V>
class Entry {
K const key;
V value;
View curling.py
#!/usr/bin/env python3
import requests
import sys
import yaml
y = yaml.load(open(sys.argv[1]))
print(getattr(requests, y.get('method', 'get'))
(y['url'], data=y['params']).text, end='')
View .bashrc
PS1="[\u@\h \W]\$ "
alias ..="cd .."
alias ls="ls -GAF"
alias cp='cp -vi'
alias mv='mv -vi'
alias rm='rm -vi'
mdc()
{
View like.js
// Run in developer console
// var likes = document.getElementsByClassName('UFILikeLink _4x9_'); // Just for posts
var likes = document.getElementsByClassName('UFILikeLink'); // For all likes
(function clicker (links) {
setTimeout(() => {
links[0].click();
if (links.length > 1) {
clicker(links.slice(1));