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
cd /tmp | |
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm | |
rpm -Uhv rpmforge-release*.rf.i386.rpm | |
yum install readline-dev htop |
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
#config | |
app.url_path_prefix = '/images' | |
#route | |
match '/images/:dragonfly/:file_name', :to => Dragonfly[:images] | |
#model | |
class Store | |
include MongoMapper::Document | |
key :photo_uid, String |
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
pt-BR: | |
views: | |
admin: | |
home: | |
name: Home | |
pagination: | |
previous: "« Anterior" | |
next: "Próximo »" | |
truncate: "…" | |
misc: |
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
-- | |
provider: twitter | |
uid: '15280529' | |
info: | |
nickname: penguinbusiness | |
name: Charlie Moseley | |
location: Bellevue, WA | |
image: http://a1.twimg.com/profile_images/281933747/kitamura_ava_normal.gif | |
description: Developer, Otaku, Geek. | |
urls: |
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
-- | |
provider: twitter | |
uid: '15280529' | |
info: | |
nickname: penguinbusiness | |
name: Charlie Moseley | |
location: Bellevue, WA | |
image: http://a1.twimg.com/profile_images/281933747/kitamura_ava_normal.gif | |
description: Developer, Otaku, Geek. | |
urls: |
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[ | |
binding.pry | |
]]></content> | |
<tabTrigger>bp</tabTrigger> | |
<scope>source.ruby</scope> | |
</snippet> |
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
import Stream from 'ember-cli-i18n/utils/stream'; | |
import t from 'ember-cli-i18n/utils/t'; | |
import Ember from 'ember'; | |
// tHelper without the container and application dependencies, sigh... | |
function tHelper(params /*, hash, options, env */) { | |
var path = params.shift(); | |
var stream = new Stream(function() { | |
return t(path, params); |
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
class ApplicationController < ActionControllerBase | |
helper :do_something | |
def do_something | |
@from_do_something = params[:for_do_something] | |
end | |
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
# # Fixing key bindings for `irb` | |
# | |
# when your ruby comes from `brew`, `rbenv`, and arrow keys don't work in your `irb` | |
brew upgrade readline rbenv ruby-install # ensure we have the `readline` library, and a recent version of `ruby-install` which will link to it properly when building `ruby`. | |
rbenv install <your-favourite-ruby-version> # rebuild ruby. | |
# watch out for the message 'ruby-build: use readline from homebrew' in output from the command above, | |
# then, go get some coffee. | |
# ... |
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
# adds aliases and imports a / some module(s) to iex shell for liquidvoiting API | |
# rename to .iex.exs and place in API project root | |
# for dev environment, not production - add to / don't remove from your local gitignore | |
# <alias ... as> used to avoid referencing other module with name equivalent to alias | |
import Ecto.Query | |
alias LiquidVoting.Application, as: App | |
alias LiquidVoting.{ | |
Delegations, |
OlderNewer