Skip to content

Instantly share code, notes, and snippets.

🏀
balling out

Matt Brandly brandly

🏀
balling out
Block or report user

Report or block brandly

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
@brandly
brandly / only-numbers.js
Created Mar 23, 2015
only numbers directive
View only-numbers.js
'use strict';
angular.module('onlyNumbers')
.directive('onlyNumbers', function () {
var allowedValues = [
'0', '1', '2', '3', '4', '5',
'6', '7', '8', '9', '.'
];
return {
@brandly
brandly / branch.md
Last active Jan 3, 2016
thoughts on branching and pull requests
View branch.md

here's how i think of branching.

purpose of branching

you need to write some code. since you may end up writing good code, but there's a chance you'll write bad code, branches allow you to freely commit your changes as you go along without affecting the core of the project. if you end up with something you don't like, you can clip the branch like nothing ever happened.

i think branches fall into a few categories.

bugs

View koa-kiwi.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View showAfterEvent.coffee
angular.module('$app.directives')
.directive 'showAfterEvent', ['$timeout', ($timeout)->
return {
link: (scope, element, attrs) ->
eventName = attrs.showAfterEvent
element.css 'opacity', 0
element.bind eventName, (e) ->
You can’t perform that action at this time.