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
# About your project | |
Your project name: padrino | |
Your project blurb: | |
Links to places we can find out more about your project: | |
- http://padrinorb.com/ | |
- https://github.com/padrino | |
# About you and your staff | |
Your nick: wikimatze |
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
$ padrino g admin | |
force .components | |
create admin | |
exist admin | |
create admin/controllers/base.rb | |
create admin/controllers/sessions.rb | |
create public/admin | |
create public/admin/images/favicon.ico | |
create public/admin/images/font/FontAwesome.otf | |
create public/admin/images/font/fontawesome-webfont.eot |
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
$ padrino g project blog-update -t rspec -e haml -c scss -s jquery -d sequel -b | |
create | |
create .gitignore | |
create config.ru | |
create config/apps.rb | |
create config/boot.rb | |
create public/favicon.ico | |
create public/images | |
create public/javascripts | |
create public/stylesheets |
Before you dig into a new framework you ask yourself: "Why should I invest time in learning a new framework?". I will not answer this with "it depends" (of course it depends on your situation) but rather provide you with all the information so that you can decide.
First let's have a brief look at Rack, Sinatra, Padrino, Rails.
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
ALBUM_PATH=/$(cmus-remote -Q | grep file | cut -d'/' --complement -s -f1 | rev | cut -d'/' --complement -s -f1 | rev | sed -e 's/\s/\\ /g' | sed -e 's/(/\\(/g' | sed -e 's/)/\\)/g')/cover.jpg | |
ALBUM_NAME=$(cmus-remote -Q | grep 'tag album' | cut -d'~' --complement -f1) | |
echo "$ALBUM_PATH" | |
notify-send -i "$ALBUM_PATH" summary "$ALBUM_NAME" |
See context under
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
$ padrino-gen project sample_blog -t shoulda -e haml -c sass -s jquery -d activerecord -b | |
create | |
create .gitignore | |
create config.ru | |
create config/apps.rb | |
create config/boot.rb | |
create public/favicon.ico | |
create public/images | |
create public/javascripts | |
create public/stylesheets |