Skip to content

Instantly share code, notes, and snippets.

Avatar

Kate Green 4kategreen

View GitHub Profile
View empty_buckets.py
#!/usr/bin/env python3
import subprocess
import json
# bucket_template = 'fugue-e2e-s3-%s-logging'
def empty_all_buckets(bucket_template):
regions = get_regions()
for r in regions:
bucket_name = bucket_template % (r)
View git cmd line
# git coloring and branch names
COLOR_RED="\033[0;31m"
COLOR_YELLOW="\033[0;33m"
COLOR_GREEN="\033[0;32m"
COLOR_OCHRE="\033[38;5;95m"
COLOR_BLUE="\033[0;34m"
COLOR_WHITE="\033[0;37m"
COLOR_RESET="\033[0m"
function git_color {
@4kategreen
4kategreen / spheroHokeyPokey
Created Jan 16, 2014
ng-conf team DSR's sphero hokey pokey dance
View spheroHokeyPokey
var Cylon = require('cylon');
Cylon.robot({
connection: { name: 'sphero', adaptor: 'sphero', port: '/dev/cu.Sphero-RRY-AMP-SPP' },
device: { name: 'sphero', driver: 'sphero' },
work: function(my) {
var on = false,
dir = 0,
beat = 0,