OSX -> 10.9.3
$ brew -v
Homebrew 0.9.5
#!/usr/bin/env ruby | |
require 'date' | |
now = DateTime.now | |
yesterday = now - 1 | |
puts "Now: #{now}" | |
puts "Yesterday: #{yesterday}" | |
puts "======" |
#!/usr/bin/env ruby | |
##### KWARGS | |
def kwargs(foo:, bar:) | |
puts "foo: #{foo}" | |
puts "bar: #{bar}" | |
end |
>>> Installing ruby 2.6.7 into /Users/danial.pearce/.rubies/ruby-2.6.7 ... | |
>>> Installing dependencies for ruby 2.6.7 ... | |
Warning: automake 1.16.3_1 is already installed and up-to-date. | |
To reinstall 1.16.3_1, run: | |
brew reinstall automake | |
Warning: bison 3.7.6 is already installed and up-to-date. | |
To reinstall 3.7.6, run: | |
brew reinstall bison | |
Warning: [email protected] 1.1.1k is already installed and up-to-date. | |
To reinstall 1.1.1k, run: |
a plague tale: innocence | |
absolver | |
ace combat™ 7: skies unknown | |
afterparty | |
age of wonders: planetfall | |
alan wake | |
alien: isolation | |
alvastia chronicles | |
ark: survival evolved | |
astroneer |
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Parameters: | |
Certificate: | |
Type: String | |
Hostname: | |
Type: String | |
Resources: | |
Bucket: | |
Type: AWS::S3::Bucket |
#-❯ docker run --rm -it -e RACK_ENV=production rails bash -c 'rails new test-app && cd test-app && puma' | |
create | |
create README.md | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/assets/config/manifest.js | |
create app/assets/javascripts/application.js |
#!/usr/bin/env ruby | |
require 'json' | |
require 'open-uri' | |
class UntappdApi | |
attr_accessor :access_token | |
def url_for(user_id, max_id) | |
"https://api.untappd.com/v4/user/checkins/#{user_id}?access_token=#{access_token}&max_id=#{max_id}&limit=50" |
def brownlow_total(s) | |
disposals = s[:kicks] + s[:handballs] | |
disposal_modifier = case | |
when disposals > 40; then 10 | |
when disposals > 30; then 5 | |
when disposals > 20; then 1 | |
else 0 | |
end | |
marks_modifier = case |
--- | |
container_commands: | |
10_copy: | |
command: sudo cp -f config/nginx.conf /etc/nginx/conf.d/webapp.conf | |
20_reload: | |
command: sudo service nginx reload |