Skip to content

Instantly share code, notes, and snippets.

View sllvn's full-sized avatar
🔥

Andrew Sullivan sllvn

🔥
View GitHub Profile
@sllvn
sllvn / tally.rb
Created April 14, 2012 17:57
Verite Spotify contest vote tallier
#!/usr/bin/env ruby
# CSV file available at: http://dl.dropbox.com/u/24209319/Verite%20Spotify%20Playlist%20Voting-%20Foreign%20Languages.csv
require 'csv'
class Tally < Hash
def vote(key, x)
self[key] = 0 unless self[key]
self[key] += x
# Disable Resume system-wide
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
# Disable the “reopen windows when logging back in” option
# This works, although the checkbox will still appear to be checked.
defaults write com.apple.loginwindow TALLogoutSavesState -bool false
defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false
via https://github.com/mathiasbynens/dotfiles/blob/master/.osx
class ZombiesController < ApplicationController
before_filter :find_zombie
def show
render :action => :show
end
def find_zombie
@zombie = Zombie.find params[:id]
if @zombie.tweets.size == 0
@sllvn
sllvn / record-stores.geojson
Last active August 29, 2015 14:00
Seattle Record Stores
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Domain Name: GLASSHELL.COM
Registrant:
PrivacyProtect.org
Domain Admin (contact@privacyprotect.org)
ID#10760, PO Box 16
Note - All Postal Mails Rejected, visit Privacyprotect.org
Nobby Beach
null,QLD 4218
AU
{
"location": {
"id": 1,
"city": "Seattle",
"state": "WA",
"coordinates": {
"lat": 47.603569,
"lng": -122.329453
},
"slug": "seattle",