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
Metrics/LineLength: | |
Max: 120 | |
AllCops: | |
TargetRubyVersion: 2.2 | |
# Too short methods lead to extraction of single-use methods, which can make | |
# the code easier to read (by naming things), but can also clutter the class | |
Metrics/MethodLength: | |
Max: 20 | |
Metrics/ClassLength: |
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
#!/bin/sh -e | |
# upstart-job | |
# Put file into /etc/init.d | |
# Service available as sudo service {filename} start | |
# Make sure you chmod +x file | |
# To add service to auto start -> sudo update-rc.d {filename} defaults | |
echo "starting unicorn after reboot" | |
exec sudo -u ubuntu bash -c "cd /home/ubuntu/apps/app_name/prod/current && ~/.rvm/bin/rvm default do bundle exec unicorn_rails -c /home/ubuntu/apps/app_name/prod/current/config/unicorn/production.rb -E production -D" |
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
(1..100).to_a.each do |num| | |
str = "" | |
numb = num | |
if num % 3 == 0 | |
str += "fuzz" | |
numb = '' | |
end | |
if num % 5 == 0 |
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
package main | |
import ( | |
"github.com/veandco/go-sdl2/sdl" | |
"github.com/veandco/go-sdl2/sdl_image" | |
"fmt" | |
) | |
const( | |
SCREEN_WIDTH int = 1440 |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
"strconv" | |
) |