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
{ | |
"Description": "Drone Continuous Integration (drone.io)", | |
"Parameters": { | |
"VPC": { | |
"Type": "AWS::EC2::VPC::Id", | |
"Description": "The VPC that needs provisioning" | |
}, | |
"Subnets": { | |
"Type": "List<AWS::EC2::Subnet::Id>", |
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
### Keybase proof | |
I hereby claim: | |
* I am dcoxall on github. | |
* I am dcoxall (https://keybase.io/dcoxall) on keybase. | |
* I have a public key whose fingerprint is 3AF3 6BDE 5CE9 0541 5A31 237C 94CB 5532 5478 5774 | |
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
#!/bin/bash | |
# Author: slowpoke <proxypoke at lavabit dot com> | |
# | |
# Copying and distribution of this file, with or without modification, | |
# are permitted in any medium without royalty provided the copyright | |
# notice and this notice are preserved. This file is offered as-is, | |
# without any warranty. | |
# | |
# A pre-commit hook for go projects. In addition to the standard |
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
class Player | |
def play_turn(warrior) | |
# cool code goes here | |
@warrior = warrior | |
@previous_health ||= @warrior.health | |
forward_spaces = @warrior.look | |
backward_spaces = @warrior.look(:backward) |
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
#!/usr/bin/env ruby | |
require 'trollop' | |
class Command | |
def initialize(options = {}) | |
@default_name = options[:name] | |
end | |
def execute | |
name = ask "Hello, ...?" unless name = @default_name |
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
// The names are used to fit into wordpress's naming convention | |
var featuredImage = new Riloadr({ | |
breakpoints: [ | |
{name: '-466x155', maxWidth: 466}, | |
{name: '-700x233', maxWidth: 700, minWidth: 467}, | |
{name: '-940x313', maxWidth: 940, minWidth: 701}, | |
{name: '', minWidth: 940} | |
] | |
}); |
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
# Extend the Array class to provide a | |
# contains? method and a method | |
class Array | |
def contains?(item) | |
return false if self.nil? | |
self.each do |i| | |
return true if (item == i) | |
end | |
return false | |
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
$content_width: 960px | |
$margin_size: 20px | |
$columns: (1, 2, 3, 4, 5, 6) | |
$column_width: ($content_width - (( length($columns) - 1 ) * $margin_size )) / length($columns) | |
@function grid_width($n: 1) | |
@if ($n < 1) | |
@return $column_width | |
@return ($column_width * $n) + (($n - 1) * $margin_size) |