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
<%= will_paginate somethings, :param_name => "something_#{something.id}_page", :params => {:anchor => "something_#{something.id}"} -%>
" have vim for nano users
" alias nano="vim -u ~/.vimnano --noplugin"
start
set nocompatible
set paste
set backspace=indent,eol,start
set number
noremap <C-x> <Esc>:wq<CR>
# user specific Gemfile (ie Gemfile.jhsu)
# from http://github.com/carlhuda/bundler/issues/issue/428#issue/428/comment/297664
eval(File.read("Gemfile.#{ENV['USER']}")) rescue ''
#!/usr/bin/env ruby
# Author: Joseph "jshsu" Hsu <[email protected]>
# File: query_nexto.rb
#
# Create a buffer next to current buffer
#
# Copyright (C) 2010 Joseph Hsu
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
environment="development"
if [[ -s REVISION ]] ; then
revision=$(cat REVISION )
else
revision=$(git log --no-color -1 | head -n 1 | cut -c 7-47)
fi
TO="$environment" REVISION="$revision" rake hoptoad:deploy

Minecraft: Desctruct

Minecraft Destruct is a game where two teams compete to destroy the others' target block.

Suggested Start Inventory

  • Wooden Pickaxe
  • Wooden Shovel
  • 10 Stone blocks
  • 25 Sand/gravel blocks
throw :response, [404, {'Content-Type' => 'text/html'}, 'From Template']
@jhsu
jhsu / .gitconfig
Last active September 24, 2015 14:37
[alias]
edit = !$EDITOR $(git status --short | awk '$1 ~ /^M|A|U/ {print $2}' )
urxvt*foreground: #f2f2f2
urxvt*background: #101010
urxvt*font: xft:inconsolata:pixelsize=16
urxvt*scrollBar_right: true
urxvt*scrollBar: false
urxvt*internalborder: 4
! Normal
! color0 black