Skip to content

Instantly share code, notes, and snippets.

View c4urself's full-sized avatar

Christian Verkerk c4urself

  • Tubular Labs
  • Mountain View
View GitHub Profile
@c4urself
c4urself / mocha_jslint_happy.js
Created January 3, 2013 18:17
Chai doesn't play nice with JS Lint's check for incorrect use of `false` and `true` -- a setting that cannot be turned off via JS Lint options. The addition of `_true` and `_false` properties to Chai fixes this making JS Lint work correctly.
// We're providing some convenience functions here as well as making sure
// chai tests don't fall on jshint errors by remapping true/false properties
chai.Assertion.addProperty('_true', function () {
this.assert(
true === this.__flags.object,
'expected #{this} to be true',
'expected #{this} to be false',
this.negate ? false : true
);
});
@c4urself
c4urself / terraform.sh
Created September 28, 2016 20:50
Wrapper around Terraform
#!/bin/sh
set -e
TERRAFORM_BUCKET_REGION='us-east-1'
TERRAFORM_BUCKET_NAME=''
TERRAFORM_VERSION="0.7.4"
actions="plan apply fmt plan-destroy destroy refresh graph validate"