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 node | |
import { Command } from 'commander'; | |
import { format } from 'date-fns'; | |
const program = new Command(); | |
const REFLECT_API_KEY = 'REDACTED_API_KEY'; | |
const GRAPH_NAME = 'REDACTED_GRAPH_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
$ cat ~/.gitconfig | |
[gui] | |
recentrepo = C:/buildium/src/buildiumcode | |
[user] | |
email = [email protected] | |
name = Ben Jacobs | |
[core] | |
editor = vim | |
autocrlf = false | |
[push] |
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
'use strict'; | |
class NavbarCtrl { | |
constructor ($log) { | |
$log.log('simplistic example'); | |
} | |
} | |
NavbarCtrl.$inject = ['$log']; |
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
// given the markup: <a href="#hashtag" feature-flag="phaseTwo" class="whatevs-yo">don't click</a> | |
// and the task to "retire" feature flag settings from the markup (ie B-03572) | |
// grunt feature --retire=phaseTwo | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
dom_munger: { | |
feature_flags: { | |
src: ['path/to/views'], | |
options: { | |
callback: function($, file) { |
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
Show hidden characters
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
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
function getTemplateAsync (templateName) { | |
var dfd = $q.defer(); | |
var template = $templateCache.get(templateName); | |
if (!template) { | |
$http.get(templateName).success(function (data) { | |
$templateCache.put(templateName); | |
dfd.resolve(data); | |
}); |
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/local/bin/node | |
var not = {}; | |
function printCatch (name) { | |
try { | |
console.log(eval(name)); | |
} catch (e) { | |
console.log("whoops, that isn't defined yet"); | |
setTimeout(printCatch.bind(undefined, name), 0); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"> | |
<title></title> | |
</head> |
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
Hello, world! |
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
body { | |
color: red; | |
font-weight: bold; | |
} |
NewerOlder