This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
ARGV[0] ||= "aabbbcddfff" | |
m=0;p ARGV[0].scan(/(.)(\1+)/i).map(&:join).sort_by(&:size).reverse.map{|l|l.size>= m ? (m = l.size;l[0]) : nil}.compact.*"," |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
edit = !$EDITOR $(git status --short | awk '$1 ~ /^M|A|U/ {print $2}' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
throw :response, [404, {'Content-Type' => 'text/html'}, 'From Template'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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> |