Skip to content

Instantly share code, notes, and snippets.

View mattd's full-sized avatar

Matt Dawson mattd

  • WillowTree Apps
  • Charlottesville, VA
View GitHub Profile
_.extend(FoundationHelper.prototype, {
initialize: function () {
_.bindAll(this, 'onModalOpened', 'onModalClosed');
this.runInitializers();
this.loadFoundation();
},
runInitializers: function () {
this.listenForModalOpen();
this.listenForModalClose();
@mattd
mattd / proxy.js
Last active December 19, 2015 16:48
Stupid simple proxy from your dev environment to any arbitrary remove server.
// Usage from some other file:
//
// var app = require('./proxy')({proxyUrl: '//your-remote.com', proxyBase: '/api'})
var path = require('path'),
request = require('request'),
express = require('express'),
app = express();
app.use(express.logger('dev'));
grunt jshint:ci --no-color
grunt test:ci --no-color
grunt build:app --no-color
grunt build:vendor --no-color
grunt build:html --tag=<tag-goes-here> --loc=<base-url-goes-here> --no-color
grunt build:css --tag=<tag-goes-here> --no-color
grunt uglify:app --no-color
grunt cssmin:ci --no-color
grunt copy:ci --no-color
Debugger entered--Lisp error: (error "test1.txt: patch does not apply ... [Hit $ to see buffer *magit-process* for details]")
signal(error ("test1.txt: patch does not apply ... [Hit $ to see buffer *magit-process* for details]"))
error("%s ... [%s buffer %s for details]" "test1.txt: patch does not apply" "Hit $ to see" "*magit-process*")
magit-run*(("git" "--no-pager" "apply" "-") nil nil nil nil #<buffer *magit-tmp*>)
#[nil "\304\305 B\n\"\306\211\211\211 &\207" [magit-git-executable magit-git-standard-options args input magit-run* append nil] 7]()
magit-refresh-wrapper(#[nil "\304\305 B\n\"\306\211\211\211 &\207" [magit-git-executable magit-git-standard-options args input magit-run* append nil] 7])
magit-run-git-with-input(#<buffer *magit-tmp*> "apply" "-")
apply(magit-run-git-with-input #<buffer *magit-tmp*> "apply" "-")
magit-apply-hunk-item*([cl-struct-magit-section [cl-struct-magit-section [cl-struct-magit-section nil diffbuf 1 359 ([cl-struct-magit-section #2 "diffstats" 17 67 ([
@mattd
mattd / file-1.js
Last active December 18, 2015 15:39
aGlobalVar;
console.log('Hello world');
diff --git a/.bash_profile b/.bash_profile
index bb0441a..1796b13 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -14,7 +14,7 @@ export PATH
export CLICOLOR=1
export TERM=screen-256color
-export EDITOR="vi"
+export EDITOR="emacs"
((js2-mode . ((js2-basic-offset . 2)
(js2-global-externs . '(rk jQuery))))))
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:willowtreeapps/tango.git
[remote "prod"]
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:g1nn13/jakarta
[branch "master"]
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +