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
.no-gutter { | |
padding: 0; | |
} | |
.pad-top-15 { | |
margin-top: 15px; | |
} | |
.pad-top-5 { | |
margin-top: 5px; |
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
showLoading: function showLoading(msg) { | |
var loading = app.views.get('loading'); | |
if (typeof msg === "undefined") { | |
msg = "Loading, please wait..."; | |
} | |
//render to put new error message in there if already visible | |
if (loading.isVisible) { | |
loading.render(); | |
} else {//otherweise, show it |
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
#!/bin/bash | |
# Takes contents of clipboard, syntax highlights them, places a copy in "gists" directory in Google Drive, pastes them into a gist, opens the gist in a browser, and puts syntax highlighted version of text in clipboard for pasting into Evernote/email/etc | |
# requires: | |
#* gist (https://github.com/defunkt/gist) | |
#* Google Drive | |
#* highlight (brew install highlight) | |
#* an alias that will run this file `alias gst="~/gst.sh"` |
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
// Launch the project with an optional argument for Express environment | |
grunt.registerTask('server', 'Runs the node.js app for this project', function () { | |
var done = this.async(); | |
var args = ''; | |
var useTrace = false; | |
process.env.HOST = ''; | |
process.env.NODE_ENV = ''; | |
for (var i = 0; i < this.args.length; i++) { |
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
//public/javascripts/app/app.js | |
define(function (require) { | |
//require dependancies | |
var Marionette = require('backbone.marionette'); | |
var Backbone = require('backbone'); | |
var $ = require('jquery'); | |
// Override renderer to use pre-compiled templates | |
Marionette.Renderer.render = function render(template, 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
#take an object definition and translate it's member function wrappers into coffee script | |
# | |
#eg: | |
# { | |
# blah: function(whatevs){ | |
# var buncha = 'stuff here'; | |
# } | |
# } | |
# | |
#becomes: |
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
define(function (require) { | |
//require dependancies | |
var Marionette = require('backbone.marionette'); | |
var Backbone = require('backbone'); | |
var $ = require('jquery'); | |
var _ = require('underscore'); | |
// Override renderer to use pre-compiled templates | |
Marionette.Renderer.render = function (template, 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
# replace <repo> with the name of the repository to be migrated | |
# replace <remote-from-url> with the url of the repository to be migrated from | |
# replace <remote-to-url> with the url of the repository to be migrated to | |
git init --bare temp<repo> | |
cd temp<repo> | |
git remote add from <remote-from-url>/<repo>.git | |
git remote add to <remote-to-url>/<repo>.git | |
git fetch from 'refs/*:refs/*' | |
git push to 'refs/*:refs/*' |
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
/*global module:false*/ | |
/* | |
Allow grunt to utilize Git for build management | |
This is kind of like a miniature, built-in version of GitScripts https://github.com/cmcculloh/GitScripts | |
*/ | |
var GitScripts = function(g){ | |
var grunt = g; | |
return { |