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
{ | |
} |
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
[ | |
{ | |
"terms" : [ | |
{ | |
"start": "2016-10-03", | |
"end": "2017-01-22", | |
"name": "term1" | |
}, | |
{ | |
"start": "2017-02-20", |
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 bash | |
set -eu | |
# PATH TO YOUR HOSTS FILE | |
: ${ETC_HOSTS="/etc/hosts"} | |
# DEFAULT IP FOR HOSTNAME | |
DEFAULT_IP="127.0.0.1" |
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
var fs = require("fs"); | |
var monMap = { | |
'Jan': 1, | |
'Feb': 2, | |
'Mar': 3, | |
'Apr': 4, | |
'May': 5, | |
'Jun': 6, | |
'Jul': 7, | |
'Aug': 8, |
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
<?php | |
class BootstrapFormHelper extends AppHelper { | |
public $helpers = array('Html', 'Form'); | |
public function input($name, $options = array()) { | |
$default = array( | |
'type' => null, | |
'label' => null, | |
'before' => null, // to convert .input-prepend |