Skip to content

Instantly share code, notes, and snippets.

abstracts = {
pcol = "%X7M$*%n";
pubmsgnick = "{msgnick $0 $1-}";
pubnick = "$nickcolors$*";
msgnick = "{pcol [$0}$1-{pcol ]} %|";
};
formats = {
@josephbisch
josephbisch / build_py3_clean.sh
Created September 9, 2015 13:25
Updated version of build_py3.sh script for building Python 3.4.3 using Mingw on Linux.
#!/bin/sh
CWD=$(pwd)
cd src/Python-3.4.3
# created by patches
rm -f Misc/config_mingw Misc/cross_mingw32 Python/fileblocks.c
for i in ../../patches/python3-arch/*; do patch -Np1 < $i; done
@josephbisch
josephbisch / gitian_verify.sh
Created December 21, 2014 21:10
A bash script for verify Gitian signatures for Bitcoin Core.
#!/bin/bash
################################
# Gitian Downloader and Verifier
################################
declare -a github_keys=("aschildbach-key.pgp" "bluematt-key.pgp" "cfields-key.pgp" \
"devrandom-key.pgp" "gavinandresen-key.pgp" "laanwj-key.pgp" \
"luke-jr-key.pgp" "michagogo-key.pgp" "sipa-key.pgp" "tcatm-key.pgp" \
"wtogami-key.pgp")
#declare -a bitcoin_org_keys=("andreas_schildbach.asc" "gavinandresen.asc" \
# "gmaxwell.asc" "jgarzik-bitpay.asc" "jgarzik-exmulti.asc" "laanwj.asc" \
@josephbisch
josephbisch / TBA_API_doc.md
Created April 12, 2012 15:58
TBA API Documentation

#Documentation - The Blue Alliance API The Blue Alliance is a FIRST Robotics match archive website. The Blue Alliance API provides you with the same data available on The Blue Alliance website. This data includes team information, event information and match results.

##API Clients TODO: Put info when someone writes a client

##Usage The API returns data in JSON format. For more information on JSON, visit json.org. There you will also find links to JSON libraries for many programming languages.

###Teams

@josephbisch
josephbisch / OPR_Calculator.py
Created March 21, 2012 14:46
Calculates OPR from a single event's data that is input as csv files
# Calculates OPR
# For implementation details, see
# http://www.chiefdelphi.com/forums/showpost.php?p=1129108&postcount=55
# M is 2m x n where m is # of matches and n is # of teams
# s is 2m x 1 where m is # of matches
# solve [M][x]=[s] for [x] by turning it into [A][x]=[b]
# A should end up being n x n an b should end up being n x 1
# x is OPR and should be n x 1
@josephbisch
josephbisch / google_spreadsheet_export.py
Created March 11, 2012 16:15
Retrieves data from a google spreadsheet
# Uses the gdata api available at:
# http://code.google.com/p/gdata-python-client/downloads/list
import gdata.spreadsheet.service
# Change these values
user = "example@gmail.com"
passwd = "password"
key = "0ApRO2Yzh2z01dExFZEdieV9WdTJsZ25HSWI3VUxsWGc" # key for Greg's spreadsheet
worksheet_id = "2" # worksheets are numbered from 0, so 1 represents worksheet 2