Skip to content

Instantly share code, notes, and snippets.

View zwrawr's full-sized avatar

Zak West zwrawr

View GitHub Profile
import requests
import time
import sys
i = 10 # starting shrub id
API = "https://api.ldjam.com/"
GET = "vx/node2/get/"
JAMMER = "https://static.jam.vg/"
@zwrawr
zwrawr / .bashrc
Created October 26, 2017 20:11
Simple addition to ~/.bashrc to added the current repo and branch name to the bash prompt
# Add to the bottom of your ~/.bashrc to add the current repo and branch to your promot
# Color and formatting match ubuntu's defaults
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
parse_git_repo() {
if [ $(parse_git_branch) ]; then
eval basename -s .git `git config --get remote.origin.url` | sed -e 's/\(.*\)/ (\1)/'
// Scraper for ludumdare's stat api.
// Powers https://docs.google.com/spreadsheets/d/1pSJKbOCHCM_1kau6w4u4mieggZeAHSIyQ26W71jLdj4
function getJSON() {
var sheetname = "stats";
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sheetname);
var row1 = sheet.getRange("A1:AC1")
var headers = row1.getValues()[0];
@zwrawr
zwrawr / highspeed.m
Last active May 16, 2017 18:09
Why doesn't this work !!!
% High Speed Electronics
% Cross talk sim eq
w = [1000 10000 100000 500000 1000000 5000000 10000000];
Vs = [20.2 20.2 20.4 21.0 21.0 21.2 22.0];
Vv = [0.012 0.144 1.4 5.6 8.16 10 10.9];
Ratio = Vv./Vs;
R = 10000;
Cs = 2.2e-12;
@zwrawr
zwrawr / .vimrc
Created February 21, 2017 22:16
My first .vimrc
" ============================================================== "
" = This is my first .vimrc , That means that this is probably = "
" = quite broken and inelegent. Feel free to copy this but use = "
" = it at your own risk. = "
" = Zak R. A. West <zwrawr@gmail.com> = "
" ============================================================== "
syntax on
set laststatus=2