This file contains 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
/** | |
* Simple Singly Linked List | |
* Demonstrating check for cycles by remembering all visited nodes | |
* | |
* Using BOOST::Unordered_map as a hash table implementation | |
* | |
* \author Billy Okal | |
*/ |
This file contains 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
for i in ./*rhtml*;do mv -- "$i" "${i//rhtml/html.erb}";done |
This file contains 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
#!/bin/bash | |
for i in `find . -name '*.erb'` ; do | |
html2haml $i `echo $i | sed 's/\.erb/\.haml/'` | |
done | |
find . -name '*.erb' -exec rm \{\} \; |
This file contains 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
!#/bin/sh | |
mkdir ~/.janus | |
cd ~/.janus | |
git clone https://github.com/jimenezrick/vimerl.git | |
git clone https://github.com/Lokaltog/vim-powerline.git | |
git clone https://github.com/myusuf3/numbers.vim.git | |
git clone git://github.com/altercation/vim-colors-solarized.git | |
git clone https://github.com/tomasr/molokai.git |
This file contains 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
#!/bin/sh -e | |
if [ $# -ne 2 ]; then | |
echo usage: $0 working_copy_path zip_file_path | |
exit 1 | |
fi | |
cd $1 && svn status | grep ^[AM] | awk '{print $2}' | zip $2 -@ | |
echo "Done" |
This file contains 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
# EXT is the extension of the files | |
rename 's/(\d+)\.EXT/sprintf("%03d.EXT", $1)/e' *.EXT |
This file contains 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
mencoder "mf://*.png" -mf fps=20 -o video_name.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=800 |
This file contains 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
svn log -v --xml | grep '<author.*/author>' | sort $* | uniq -c | sort -rn |
This file contains 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/perl -w | |
use strict; | |
my @rmdirs = ('.svn'); | |
my @rmfiles = (); | |
sub filelist | |
{ | |
my ($dir, $regex) = @_; | |
opendir(DIR, $dir) || return (); |
This file contains 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
#install dependencies | |
brew install fltk cmake git pkg-config | |
# setup an install location e.g in home | |
mkdir $HOME/stg | |
# clone and compile stage | |
mkdir stage && cd stage | |
git clone git://github.com/rtv/Stage.git | |
export STG=$HOME/stg |
OlderNewer