Skip to content

Instantly share code, notes, and snippets.

Matt Briggs mbriggs

Block or report user

Report or block mbriggs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mbriggs on github.
  • I am mbriggs (https://keybase.io/mbriggs) on keybase.
  • I have a public key whose fingerprint is 9EF3 F6C7 DE1D C5CB 27E5 A8F9 625A B952 57A9 1190

To claim this, I am signing this object:

View anonymous-gist.clj
(defn home-path
"create a path from the home dir"
[s]
(str (System/getProperty "user.home") s))
@mbriggs
mbriggs / anonymous-gist.el
Created Apr 4, 2014
switch to project dir
View anonymous-gist.el
(defun switch-to-local-project ()
(interactive)
(let* ((prompt "Switch to project: ")
(project-dir "~/src")
(choices (actionable-files-in-directory project-dir))
(project (ido-completing-read prompt choices nil t)))
(find-file (concat project-dir "/" project))))
(defun actionable-files-in-directory (dir)
@mbriggs
mbriggs / install-graphite
Created Apr 3, 2014
install graphite on mavericks
View install-graphite
#!/usr/bin/env bash
# download and install xquartz https://xquartz.macosforge.org
# so deps
brew install cairo memcached
View anonymous-gist.el
(global-set-key (kbd "<f1>") 'magit-status)
(define-key evil-normal-state-map "B" 'magit-checkout)
@mbriggs
mbriggs / README.md
Created Mar 25, 2014
Simple class abstraction in js
View README.md

Simple js class abstraction

Basically it is backbones self-propegating extend method, slightly hacked up to allow the definition of __name__. Defining this means that you will never end up seeing child when looking at your class in the dev tools. Also adds a define method for creating singletons.

View jsbin.damaq.css
canvas {
position: absolute;
top: 0;
width: 500px;
height: 500px;
cursor: move;
}
.canvas-container {
position: relative;
View gist:8826954
var gulp = require('gulp');
var gutil = require('gulp-util');
var sass = require('gulp-ruby-sass');
var watch = require('gulp-watch');
var plumber = require('gulp-plumber');
var traceur = require('gulp-traceur');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var notify = require('gulp-notify');
View date-picker.js
function bindRange(scope, el, attrs){
var getFrom = $parse(attrs.pickFrom);
var setFrom = getFrom.assign;
var getTo = $parse(attrs.pickTo);
var setTo = getTo.assign;
var time = hasTime(attrs);
function updateField(){
var from = getFrom(scope);
var to = getTo(scope);
View gist:6969128

Thoughts on Angular

Overall, very impressed by how far the have come in the last year and a half or so. They have addressed probably the biggest issue I had with it last time I looked (how clunky it was to create even simple directives), the community is MUCH larger then it was, which has mitigated the second biggest issue (insufficient documentation)

The things I don't like thing is kind of big, but thats because its a combination of "dont like" with "don't understand" and "doing completely wrong", and at this point I don't really know enough about it to tell the difference :)

Things I Like

  • The view reaching into the JS means there is a class of wiring up / coordination code that doesn't need to exist.
You can’t perform that action at this time.