To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| function _exec_with | |
| set -l shell $argv[1] | |
| set -l file $argv[2] | |
| set -l code $argv[3] | |
| set -l source | |
| switch "$shell" | |
| case bash zsh ksh | |
| set source . | |
| case '*' |
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| # file: unzip.py | |
| import zipfile,os,sys | |
| if len(sys.argv)==2: | |
| fname=sys.argv[1] | |
| else: | |
| print "Usage: python %s filename\n\n" % sys.argv[0] | |
| sys.exit() |
| #!/bin/bash | |
| # | |
| # put this script in ~/Library/Rime, then deploy Rime for Squirrel: | |
| # ./rime_deployer --build . "/Library/Input Methods/Squirrel.app/SharedSupport/" | |
| # see other supported options: | |
| # ./rime_deployer | |
| DYLD_LIBRARY_PATH="/Library/Input Methods/Squirrel.app/Contents/Frameworks" "/Library/Input Methods/Squirrel.app/Contents/MacOS/rime_deployer" $@ |
| import redis | |
| import time | |
| import json | |
| data = "my text notification tests{0}" | |
| notification_type = "achievement{0}" | |
| user_key = "notifications:user:{0}" | |
| notification_counter = "notifications:counter:{0}" | |
| notification_hash = "notification:{0}:{1}" |
| #!/usr/bin/env python2 | |
| # vim: set fileencoding=utf8 | |
| import re, sys, os, random, time, json, urllib2, logging, argparse | |
| from mutagen.id3 import ID3,TRCK,TIT2,TALB,TPE1,APIC,TDRC,COMM,TCOM,TCON,TSST,WXXX,TSRC | |
| from HTMLParser import HTMLParser | |
| parser = HTMLParser() | |
| s = u'\x1b[1;%dm%s\x1b[0m' # terminual color template | |
| ua = 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36' |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| source 'http://rubygems.org' | |
| gem 'rails' | |
| gem 'ejs' | |
| gem 'i18n-js', :git => 'git://github.com/fnando/i18n-js.git' | |
| gem 'jquery-rails' | |
| gem 'airbrake' | |
| gem 'thin' | |
| group :assets do |
| #!/usr/bin/env python | |
| import eyeD3 | |
| from ogg import vorbis | |
| from time import localtime | |
| import json | |
| import getopt | |
| import sys | |
| from email.mime.image import MIMEImage | |
| def tag_mp3(target_file, info): |
2217 Time Zone V (EST) 7 Nov. 1970--NTC-- "Pop's Place": I was polishing a brandy snifter when the Unmarried Mother came in. I noted the time---10:17 P. M. zone five, or eastern time, November 7th, 1970. Temporal agents always notice time and date; we must.
The Unmarried Mother was a man twenty--five years old, no taller than I am, childish features and a touchy temper. I didn't like his looks---I never had---but he was a lad I was here to recruit, he was my boy. I gave him my best barkeep's smile.
Maybe I'm too critical. He wasn't swish; his nickname came from what he always said when some nosy type asked him his line: "I'm an unmarried mother." If he felt less than murderous he would add: "at four cents a word. I write confession stories."
If he felt nasty, he would wait for somebody to make something of it. He had a lethal style of infighting, like a female cop---reason I wanted him. Not the only one.
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |