This file contains hidden or 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
| (ratata) ~/projects/ark.rango # ./init.rb -i | |
| [18:29:02] Loading dependencies for development | |
| /home/neaf/projects/ark.rango/init.rb:21: warning: already initialized constant RACK_ENV | |
| [18:29:02] Loading dependencies for development | |
| [18:29:02] Using router usher | |
| config.ru:17:in `block (2 levels) in start!': undefined method `rango' for Ark:Module (NoMethodError) | |
| from /home/neaf/projects/ark.rango/gems/gems/usher-0.6.0/lib/usher/interface/rack.rb:44:in `instance_eval' | |
| from /home/neaf/projects/ark.rango/gems/gems/usher-0.6.0/lib/usher/interface/rack.rb:44:in `initialize' | |
| from /home/neaf/projects/ark.rango/gems/gems/usher-0.6.0/lib/usher/interface.rb:32:in `new' | |
| from /home/neaf/projects/ark.rango/gems/gems/usher-0.6.0/lib/usher/interface.rb:32:in `for' |
This file contains hidden or 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
| (ratata) ~/projects/ark.rango # ./init.rb | |
| [18:26:28] Loading dependencies for development | |
| /home/neaf/projects/ark.rango/gems/gems/rango-0.1.1.3/lib/rango/helpers/assets.rb:7:in `require': no such file to load -- media-path (LoadError) | |
| from /home/neaf/projects/ark.rango/gems/gems/rango-0.1.1.3/lib/rango/helpers/assets.rb:7:in `<top (required)>' | |
| from /home/neaf/projects/ark.rango/gems/gems/rango-0.1.1.3/lib/rango/helpers.rb:21:in `require' | |
| from /home/neaf/projects/ark.rango/gems/gems/rango-0.1.1.3/lib/rango/helpers.rb:21:in `<top (required)>' | |
| from /home/neaf/projects/ark.rango/views.rb:3:in `require' | |
| from /home/neaf/projects/ark.rango/views.rb:3:in `<top (required)>' | |
| from <internal:prelude>:34:in `require' | |
| from <internal:prelude>:34:in `require_relative' |
This file contains hidden or 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 Project | |
| include MongoMapper::Document | |
| key :name, String | |
| key :budget, Integer | |
| key :type, String | |
| key :details | |
| end | |
| class DesignProject |
This file contains hidden or 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 Project | |
| include MongoMapper::Document | |
| key :name, String | |
| key :budget, Integer | |
| key :details | |
| def type | |
| details.class.to_s.gsub("Project", "") | |
| end |
This file contains hidden or 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
| match('/profile').to(:controller => :users, :action => :show).send(:register_resource, "user") | |
| match('/account').to(:controller => :users, :action => :edit).send(:register_resource, "user", "edit") | |
| match('/register').to(:controller => :users) do | |
| match(:method => 'get').to(:action => 'new').send(:register_resource, "user", "new") | |
| match(:method => 'post').to(:action => 'create').send(:register_resource, "user", "create") | |
| end |
This file contains hidden or 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 Match < Sequel::Model | |
| validates do | |
| presence_of :first_player_id | |
| presence_of :second_player_id | |
| presence_of :happens_at | |
| presence_of :sport_id | |
| end | |
| def validate | |
| super |
This file contains hidden or 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 | |
| . /etc/rc.conf | |
| . /etc/rc.d/functions | |
| case "$1" in | |
| start) | |
| stat_busy "Starting Music Player Daemon" | |
| # always start in paused state |
This file contains hidden or 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
| # history | |
| HISTFILE=~/.zsh_history | |
| HISTSIZE=5000 | |
| SAVEHIST=1000 | |
| export LS_COLORS='no=00:fi=00:di=01;36:ln=01;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;35:*.pl=00;31:*.PL=00;31:*.pm=00;31:*.tt=00;31:*.js=00;31:*.rb=00;31:*.py=00;31:*.yml=00;31:*.sql=00;31:*.html=00;31:*.css=00;31:'; | |
| autoload -U colors && colors | |
| PS1="%{${fg[blue]}%}[%{${fg[yellow]}%}%~%{${fg[blue]}%}] %{${fg[yellow]}%}#%{$reset_color%} " |
This file contains hidden or 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
| # This is an example resource file for rTorrent. Copy to | |
| # ~/.rtorrent.rc and enable/modify the options as needed. Remember to | |
| # uncomment the options you wish to enable. | |
| # Maximum and minimum number of peers to connect to per torrent. | |
| #min_peers = 40 | |
| max_peers = 100 | |
| # Same as above but for seeding completed torrents (-1 = same as downloading) | |
| #min_peers_seed = 10 |
This file contains hidden or 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
| [~/Projects/typify] # merb-gen model User | |
| Loading init file from /Users/neaf/Projects/typify/config/init.rb | |
| Loading /Users/neaf/Projects/typify/config/environments/development.rb | |
| Generating with model generator: | |
| Loading /Users/neaf/Projects/typify/config/environments/development.rb | |
| [ADDED] spec/models/user_spec.rb | |
| [CONFLICT] app/models/user.rb | |
| 1. skip | |
| 2. overwrite | |
| 3. render |