Skip to content

Instantly share code, notes, and snippets.

View jhsu's full-sized avatar
💀
compliant with future standards

Joe Hsu jhsu

💀
compliant with future standards
  • MineHub
  • New York, NY
  • X @jhsu
View GitHub Profile
require 'open-uri'
require 'rss'
sources = %w(
http://ws.audioscrobbler.com/2.0/user/jhsu/lovedtracks.rss
http://ws.audioscrobbler.com/1.0/user/jhsu/recenttracks.rss
)
youtube_search = "http://www.youtube.com/results?search_query="
[difftool "Kaleidoscope"]
cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[diff]
tool = Kaleidoscope
1 3000721 A W 4 4 60 33 5 28 1
1 3000727 G K 24 24 60 32 5 27 1
1 3000767 T K 21 21 60 29 5 24 1
1 3001443 G A 96 96 60 23 23 0 2
1 3002052 C T 48 48 60 7 7 0 2
1 3004103 C T 45 45 60 6 6 0 1
1 3004121 * +AC/* 99 99 60 5 2 3 1
1 3004918 C T 53 54 30 15 2 2 1
1 3004919 C G 29 57 30 15 5 10 1
1 3004964 T A 31 45 27 7 1 6 1
#! /bin/sh
### BEGIN INIT INFO
# Provides: mongodb
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the mongodb data-store
# Description: starts mongodb using start-stop-daemon
☜(゚ヮ゚☜)
.--.--.--.--.
/ / / / |\
/ / / / / \
| |> /
| | /
| /
| /
| __ .'
/ .'
/ /
# kirk
#
# starts an irc locally to campfire
description "kirk irc campfire server"
author "noonat and jshsu"
start on startup
stop on shutdown
script
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
# - a browser with WebSocket support
#
# Usage:
# ruby redis_pubsub_demo.rb
#
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <[email protected]>
" URL: http://gist.github.com/256840
" Last Change: 2009 May 13
" License: Public domain
" (but let me know if you liked it :) )
"
" Note: This file just adds the new tags from HTML 5
" and don't replace default html.vim syntax file
# source: https://wincent.com/wiki/Showing_SQL_statements_in_the_Rails_console
if ENV['RAILS_ENV']
# Called after the irb session is initialized and Rails has been loaded
IRB.conf[:IRB_RC] = Proc.new do
logger = Logger.new(STDOUT)
ActiveRecord::Base.logger = logger
ActiveResource::Base.logger = logger
end
end