Skip to content

Instantly share code, notes, and snippets.

View benmj's full-sized avatar
:shipit:

Ben Jacobs benmj

:shipit:
View GitHub Profile
{
// 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
// 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) {
@benmj
benmj / gist:bf27da8d562a13e07de1
Last active August 29, 2015 14:22
ES6 Angular component
'use strict';
class NavbarCtrl {
constructor ($log) {
$log.log('simplistic example');
}
}
NavbarCtrl.$inject = ['$log'];
@benmj
benmj / .gitconfig
Created November 30, 2015 23:29
Git configuration with useful aliases
$ cat ~/.gitconfig
[gui]
recentrepo = C:/buildium/src/buildiumcode
[user]
email = [email protected]
name = Ben Jacobs
[core]
editor = vim
autocrlf = false
[push]
@benmj
benmj / index.ts
Created June 27, 2024 21:20
An example of basic productivity tooling built on top of Reflect.app
#!/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';