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
| def wow | |
| if params[:race] == 'human' && params[:sex] == 'male' #answers to http://localhost:3000/api/nicks/wow.json?race=human | |
| @nick = "Human!" | |
| render json: @nick | |
| elsif params[:race] == 'human' && params[:sex] == 'female' | |
| @nick = 'Woman!' | |
| render json: @nick | |
| end | |
| 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
| # Russian. Updated 2014-04-01 | |
| ru: | |
| admin: | |
| js: | |
| true: 'True' | |
| false: 'False' | |
| is_present: 'Не пустое' | |
| is_blank: 'Пустое' | |
| date: 'Дата ...' |
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
| require('GlobalStrings') | |
| -- generated from s_bonusStatStringTags | |
| local bonusStats = { | |
| [0] = "ITEM_MOD_MANA_SHORT", | |
| [1] = "ITEM_MOD_HEALTH_SHORT", | |
| [3] = "ITEM_MOD_AGILITY_SHORT", | |
| [4] = "ITEM_MOD_STRENGTH_SHORT", | |
| [5] = "ITEM_MOD_INTELLECT_SHORT", | |
| [6] = "ITEM_MOD_SPIRIT_SHORT", |
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
| rvm env -- `rvm current` > .powenv | |
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
| MacBook-Air-Frey:klops frey$ curl https://s3-eu-west-1.amazonaws.com/klops-backup/klops_backup/klops/2014.07.10.03.00.05/klops.tar > db.dump.tar; tar xvf db.dump.tar; cd klops/databases/PostgreSQL/; gunzip klops_production.sql.gz; mv klops_production.sql ../../../klops_production.sql | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 243 0 243 0 0 271 0 --:--:-- --:--:-- --:--:-- 271 | |
| tar: Unrecognized archive format | |
| tar: Error exit delayed from previous errors. | |
| -bash: cd: klops/databases/PostgreSQL/: No such file or directory | |
| gunzip: can't stat: klops_production.sql.gz (klops_production.sql.gz.gz): No such file or directory | |
| mv: rename klops_production.sql to ../../../klops_production.sql: No such file or directory | |
| You have new mail in /var/mail/frey |
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
| <% flash.each do |type, message| %> | |
| <div class="alert <%= alert_class_for(type) %> alert-dismissible fade in"> | |
| <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> | |
| <%= message %> | |
| </div> | |
| <% 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
| # Gemfile | |
| gem 'kramdown' |
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
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
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
| rails new app --skip-test-unit --skip-bundle -d postgresql |
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
| # По умолчанию для дистрибуции проектов используется Bundler. | |
| # Эта строка включает автоматическое обновление и установку | |
| # недостающих gems, указанных в вашем Gemfile. | |
| # | |
| ## !!! Не забудьте добавить | |
| # gem 'capistrano' | |
| # gem 'unicorn' | |
| # | |
| # в ваш Gemfile. | |
| # |