Skip to content

Instantly share code, notes, and snippets.

View hayley's full-sized avatar

hayley hayley

View GitHub Profile
@hayley
hayley / beautified.js
Created November 20, 2012 21:33
paranoid much?
function TextObject(name, x, y, w, h) {
this.x = x;
this.y = y;
this.name = name;
this.div = document.createElement(name);
this.div.style.zIndex = topz++;
this.div.style.border = "none";
this.div.style.width = cwidth + "px";
this.div.style.height = cheight + "px";
this.div.style.font = ".75em Arial";
@hayley
hayley / info.md
Created October 12, 2012 03:19
spotify from the command line
git clone https://github.com/dronir/SpotifyControl.git

alias spotify="osascript ./SpotifyControl/SpotifyControl.scpt"
<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://earth.google.com/kml/2.0"><Document><name>NWS Radar Images</name><open>1</open><Folder> <name>National Weather Service</name> <ScreenOverlay> <name>National Weather Service</name> <description>National Weather Service Doppler Radar RIDGE Imagery http://radar.weather.gov</description> <visibility>1</visibility> <Icon> <href>http://www.srh.noaa.gov/ridge/graphics/nws_google.gif</href> </Icon> <overlayXY x="0" y="1" xunits="fraction" yunits="fraction" /> <screenXY x="0" y="1" xunits="fraction" yunits="fraction" /> <rotationXY x="0" y="0" xunits="fraction" yunits="fraction" /> <size x="0" y="0" xunits="fraction" yunits="fraction" /> </ScreenOverlay><ScreenOverlay> <name>NOAA</name> <description>National Oceanic and Atomospheric Administration http://www.noaa.gov</description> <visibility>1</visibility> <Icon> <href>http://www.srh.noaa.gov/ridge/graphics/noaa_google.gif</href> </Icon> <overlayXY x=".2" y="1" xunits="fraction" yunits="fr
@hayley
hayley / .htaccess
Created March 3, 2011 18:59
jekyll deploy with tidy and gzip
## place this file in the root of your jekyll directory so that it gets copied over to
## _site automatically
RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [L]
from fabric.api import local
def deploy():
local('appcfg.py update .')
local('curl http://thecronfilelocation')