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
Missing these required gems: | |
feedtools = 0.2.29 | |
You're running: | |
ruby 1.8.6.114 at /opt/local/bin/ruby | |
rubygems 1.3.1 at /Users/robbyrussell/.gem/ruby/1.8, /opt/local/lib/ruby/gems/1.8 | |
Run `rake gems:install` to install the missing gems. | |
git:(master): | |
git:(master): gem list|grep feed |
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
map.resources :containers do |container| | |
container.resources :widgets | |
end | |
# gives us... | |
# /containers/:container_id | |
# /containers/:container_id/widgets/ | |
# /containers/:container_id/widgets/:id | |
# but what i really want is... |
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
<div id="x_container"> | |
<a id="x_back_button"><img src="/images/left-arrow.png" /></a> | |
<a id="x_forward_button"><img src="/images/right-arrow.png" /></a> | |
<div class="x_widget"> | |
<p>content...1</p> | |
</div> | |
<div class="x_widget" style="display:none;"> | |
<p>content...2</p> |
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
# get the name of the branch we are on | |
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
branch=${ref#refs/heads/} | |
if [[ -d .git ]]; then | |
CURRENT_BRANCH="%{$fg[red]%}git:(%{$fg[green]${branch}$(parse_git_dirty)%{$fg[red])" | |
else | |
CURRENT_BRANCH='' | |
fi |
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 | |
# | |
# Will append the current Lighthouse ticket number to the commit message automatically | |
# when you use the LH_* branch naming convention. | |
# | |
# Drop into .git/hooks/commit-msg | |
# chmod +x .git/hooks/commit-msg | |
commit_message=$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/sh | |
# | |
# Will append the current Lighthouse ticket number to the commit message automatically | |
# when you use the LH_* branch naming convention. | |
# | |
# Drop into .git/hooks/commit-msg | |
# chmod +x .git/hooks/commit-msg | |
exec < /dev/tty |
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
# aiming to have something like: | |
# link_to(article.title, article_path(article)) | |
# and build out /articles/2009/03/10/foo-bar-baz | |
# | |
map.article 'articles/:year/:month/:day/:permalink', :controller => 'articles', :action => 'show', | |
:year => /\d{4}/, :day => /\d{1,2}/, :month => /\d{1,2}/ | |
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
<input type="hidden" id="x_something" value="1" /> | |
<%= periodically_call_remote :update => 'some shit', | |
:url => {:action => :action_name}, | |
:condition => "$('x_something') == '1'", | |
:frequency => 2.0 %> | |
# then... |
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
# the lack of indenting came directly from the app i am reviewing code for | |
m=[[1,1,1,1,1]] | |
i=j=0 | |
while i < 30 do | |
m[i]=[i,i,i,i,i] | |
i+=1 | |
end |
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
➜ ~projectname git:(master) git br -l|grep '^ LH'|awk '{print $1}' | |
LH_1429 | |
LH_1631 | |
LH_1646 | |
LH_1660 | |
LH_1667 | |
LH_1669 | |
LH_1712 | |
LH_1721 | |
LH_1737 |