Level Score: 0
Time Bonus: 8
Clear Bonus: 2
Total Score: 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
| for(var i=1; i<=100; console.log((i%3?'':'Fizz')+(i%5?'':'Buzz')||i), i++); |
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
| for (var i=1; i<=100; i++) console.log( (i % 3 === 0 ? 'Fizz' : '') + (i % 5 === 0 ? 'Buzz' : '') || i ); |
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
| console.log(['Fizz' if i % 3 is 0] + ['Buzz' if i % 5 is 0] or i) for i in [1..100] |
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
| function _git_branch_name | |
| echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
| end | |
| function _is_git_dirty | |
| echo (git status -s --ignore-submodules=dirty ^/dev/null) | |
| end | |
| function _rb_prompt | |
| echo (rvm info | awk '{print $1}') |
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
| # name: wkf | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for FISH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://gist.github.com/1595572). | |
| ## Set this options in your config.fish (if you want to :]) |
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
| logobject = (o) -> | |
| console.log "#{k} = #{v}" for k, v of o | |
| torah = ['Введение', 'Бытие', 'Исход', 'Левит', 'Числа', 'Второзаконие'] | |
| logobject torah |
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
| module RubyWarrior::Units | |
| class Warrior < Base | |
| def max_health | |
| 1000 | |
| end | |
| end | |
| end | |
| class Player | |
| def play_turn(warrior) |
Level Score: 12
Time Bonus: 10
Clear Bonus: 4
Total Score: 10 + 26 = 36
Level Score: 48
Time Bonus: 9
Clear Bonus: 11
Total Score: 36 + 68 = 104