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
# $ gem install peach | |
# $ irb | |
1.9.3-p448 :001 > require 'peach' | |
=> true | |
1.9.3-p448 :002 > ['a', 'b', 'c'].peach do |p| | |
1.9.3-p448 :003 > puts p | |
1.9.3-p448 :004?> end | |
a | |
cb |
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
# I <3 Ruby | |
"chase southard".split.map {|n| n.capitalize}.join(' ') | |
#=> "Chase Southard" |
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
<snippet> | |
<content><![CDATA[ | |
test '${1:truth}' do | |
set = fixture_set(${2:default}) | |
assert true | |
end | |
]]></content> | |
<tabTrigger>fstest</tabTrigger> | |
<scope>source.ruby</scope> | |
<description>basic test with fixture set</description> |
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
format.zip { | |
registrations_with_attachments = Registration.find(:all, :conditions => "abstract_file_name IS NOT NULL") | |
if registrations_with_attachments.size > 0 | |
headers['Cache-Control'] = 'no-cache' | |
tmp_filename = "#{Rails.root.to_s}/tmp/tmp_zip_" << | |
Time.now.to_f.to_s << | |
".zip" |
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
# ************************************************************ | |
# Sequel Pro SQL dump | |
# Version 3408 | |
# | |
# http://www.sequelpro.com/ | |
# http://code.google.com/p/sequel-pro/ | |
# | |
# Host: 127.0.0.1 (MySQL 5.5.15) | |
# Database: quotes | |
# Generation Time: 2012-03-06 05:39:44 +0000 |
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
icon for twitter app | |
Find how to deploy | |
- heroku { node + cloudant couchdb } | |
- dotCloud { node + couchdb } | |
- nodster for nodejs; cloudant for couch | |
[done] | |
Clone into openlexington's github: http://github.com/openlexington/murlamapper.git | |
Sign up for a twitter account => lexpubart |
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
# brew update | |
# brew install couchdb | |
# sudo easy_install pip | |
# pip install couchapp | |
# brew install node | |
# curl http://npmjs.org/install.sh | sh | |
# git clone https://github.com/mheadd/muralmapper.git -b integration | |
# cd muralmapper | |
[TWITTER STUFF] |
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
rcsouthard@KilgoreLabMBP[suhthurd.com]$: git push origin master | |
Counting objects: 19, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (10/10), done. | |
Writing objects: 100% (10/10), 1.91 KiB, done. | |
Total 10 (delta 7), reused 0 (delta 0) | |
fatal: unresolved deltas left after unpacking | |
error: unpack failed: unpack-objects abnormal exit | |
To git@github.com:chaserx/suhthurd.com.git | |
! [remote rejected] master -> master (n/a (unpacker error)) |
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
<?php | |
/* Lexenomics.org/mayoralforum/index.php */ | |
header("Location: http://plansthis.com/mayoralforum"); /* Redirect browser */ | |
exit(); | |
?> |
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
################# | |
#### .bashrc #### | |
################# | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
export LSCOLORS='DxGxcxdxCxegedabagacad' | |
alias ll='ls -lah' |