Skip to content

Instantly share code, notes, and snippets.

View zmbush's full-sized avatar
🚽
Making Less Suck

Zoey Bush zmbush

🚽
Making Less Suck
View GitHub Profile
# initialization file (not found)

Keybase proof

I hereby claim:

  • I am zmbush on github.
  • I am zmbush (https://keybase.io/zmbush) on keybase.
  • I have a public key whose fingerprint is 6763 8637 1B5E 872D 56A5 0AA3 FD58 B435 DF06 CF99

To claim this, I am signing this object:

@zmbush
zmbush / reactorControl.lua
Last active September 9, 2016 03:59
Computercraft scripts
print("Starting up reactor control program")
reactorOn = false
previouslyStored = 0
function commas(number)
local number, k = tostring(number), nil
while true do
number, k = string.gsub(number, "^(-?%d+)(%d%d%d)", '%1,%2')
@zmbush
zmbush / curl-loop.bash
Created June 14, 2016 21:01
Fetch california election results
while true; do
curl http://api.sos.ca.gov/api/president/party/democratic?format=csv | tail -n +5 > results-$(date +%m-%d_%H%M)
python process.py
sleep 1h
done
webpackConfig = require('./webpack.config.js');
// Delete some stuff that confuses karma
webpackConfig.devtool = 'inline-source-map';
delete webpackConfig.entry;
delete webpackConfig.output;
delete webpackConfig.context;
delete webpackConfig.plugins;
module.exports = function(config) {
@zmbush
zmbush / .vimrc
Last active August 29, 2015 14:06
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
match ExtraWhitespace /\s\+$\|\t/
@zmbush
zmbush / .vimrc
Last active August 29, 2015 14:06
syntax on
set t_Co=256
set nocp
filetype off
" Bundles
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.coffeelint=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
module.exports={
"name": "coffeelint",
"description": "Lint your CoffeeScript",
"version": "1.1.0",
"homepage": "http://www.coffeelint.org",
"keywords": [
"lint",
"coffeescript",
"coffee-script"
@zmbush
zmbush / farm_builder.lua
Last active December 25, 2015 07:19
Turtle Scripts
function fuel_up()
while turtle.getFuelLevel() == 0 do
turtle.select(1)
turtle.refuel(1)
end
end
function safe_forward()
fuel_up()
while not turtle.forward() do
end
@zmbush
zmbush / gist:3920603
Created October 19, 2012 20:41
Raspberry Pi
  • Microkernel