- Coup
- Avalon
- Ticket to Ride
- Settlers x 2, with 5-6 player expansion
- Risk
- Set
- Destined Legends
- Bananagrams
- Dominion + Intrigue expansion
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
defmodule Repo.Migrations.AddCountEstimateFunction do | |
use Ecto.Migration | |
def up do | |
create_function() | |
end | |
def down do | |
drop_function() | |
end |
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
def modified_date_or_datetime(string, modifier) do | |
date_match = Date.from_iso8601(string) | |
iso_match = Timex.parse(string, "{ISO:Extended}") | |
isoz_match = Timex.parse(string, "{ISO:Extended:Z}") | |
case {:ok, x } do | |
^date_match -> "#{string}#{modifier}" | |
^iso_match -> string | |
^isoz_match -> string | |
_ -> raise "Invalid ISO8601 date/datetime format provided: #{string}" |
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
defmodule Decrypt do | |
@iv String.duplicate("0", 16) | |
def unpad(data) do | |
to_remove = :binary.last(data) | |
:binary.part(data, 0, byte_size(data) - to_remove) | |
end | |
def decrypt(data, key) do |
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
#Signing AWS Requests By Using Signature Version 4 | |
#http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html | |
require 'uri' | |
require 'openssl' | |
require 'net/http' | |
require 'cgi' | |
method = 'GET' | |
service = 'iam' |
I hereby claim:
- I am bglusman on github.
- I am bglusman (https://keybase.io/bglusman) on keybase.
- I have a public key whose fingerprint is B70A CE87 8BFE 710A 8510 2E69 20FF F81D 502E 2484
To claim this, I am signing this object:
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
✈ > cap deploy | |
triggering load callbacks | |
* executing `qa' | |
triggering start callbacks for `deploy' | |
* executing `multistage:ensure' | |
* executing `deploy' | |
* executing `deploy:update' | |
** transaction: start | |
* executing `deploy:update_code' | |
executing locally: "git ls-remote [email protected]:/git/xyz.git qa" |
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
module HashInit | |
#example usage: | |
# instead of this - | |
# | |
# class Message | |
# attr_reader :content, :sender, :subject | |
# attr_accessor :event | |
# def initialize(message) |
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
#simple loop to toggle LED on and off forever | |
import time | |
import math | |
import ConfigParser | |
import logging | |
LEVELS = {'debug' : logging.DEBUG, | |
'info' : logging.INFO, | |
'warning' : logging.WARNING, |
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
## config/boot.rb | |
# Place this snippet right above the "Rails.boot!" command at the bottom of the file. | |
class Rails::Boot | |
def run | |
load_initializer | |
extend_environment | |
Rails::Initializer.run(:set_load_path) | |
end | |
def extend_environment |
NewerOlder