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
name Gitalist | |
<Model::CollectionOfRepos> | |
#git /path/to/git | |
# Configure this to where your repositories are. | |
repo_dir /home/git/repositories/ | |
</Model::CollectionOfRepos> | |
sitename "Gitalist" |
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
function add_inline_form(prefix) { | |
var count = parseInt($('#id_' + prefix + '-TOTAL_FORMS').val(), 10); | |
var last_form = $('.' + prefix + ':last'); | |
var new_form = last_form.clone(false).html(last_form.html().replace( | |
new RegExp(prefix + '-\\\\d-', 'g'), prefix + '-' + count + '-')); | |
new_form.find('input[type="text"], textarea').each(function () { | |
$(this).val(''); | |
}); | |
new_form.hide().insertAfter(last_form).slideDown(300); |
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
[nosetests] | |
with-spec=1 | |
spec-color=1 | |
with-growl=1 |
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 | |
while read oldrev newrev refname | |
do | |
if [ "$refname" == "refs/heads/master" ]; then | |
WORKDIR=/path/to/local/repo | |
export GIT_DIR=$WORKDIR/.git | |
pushd $WORKDIR >/dev/null | |
git pull --quiet >/dev/null | |
# run some code | |
popd >/dev/null |
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
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm') | |
begin | |
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME'])) | |
rvm_lib_path = File.join(rvm_path, 'lib') | |
$LOAD_PATH.unshift rvm_lib_path | |
require 'rvm' | |
RVM.use_from_path! File.dirname(File.dirname(__FILE__)) | |
rescue LoadError | |
# RVM is unavailable at this point. | |
raise "RVM ruby lib is currently unavailable." |
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
[submodule "Contrib/json-framework"] | |
path = Contrib/json-framework | |
url = https://github.com/stig/json-framework.git | |
[submodule "Contrib/scifihifi-iphone"] | |
path = Contrib/scifihifi-iphone | |
url = https://github.com/ldandersen/scifihifi-iphone.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
set t_Co=256 |
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
package dbtest; | |
import java.sql.*; | |
/** | |
* | |
* @author George Hickman <[email protected]> | |
*/ | |
public class Main { |
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
python setup.py clean -a | |
python setup.py build | |
python setup.py install |