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
#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 { |
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
[ | |
{ | |
"keys": ["ctrl+alt+shift+f"], "command": "js_format", | |
"context": [{"key": "selector", "operator": "equal", "operand": "source.js,source.json"}] | |
} | |
] |
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) { | |
var Marionette = require('backbone.marionette'); | |
var $ = require('jquery'); | |
var _ = require('underscore'); | |
require('fuelux/all'); | |
return Marionette.ItemView.extend({ | |
template: require('tmpl!templates/wizard/appType.html'), | |
tagName:'div', | |
className: 'container', |
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
return Marionette.Layout.extend({ | |
triggers: { | |
'click .editable': 'view:edit', | |
}, | |
initialize: function(){ | |
this.bindTo(this, 'view:edit', this.edit, this); | |
}, | |
edit: function(ev){ |
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
// | |
// My First IRC Bot | |
// | |
console.log("Bot Started..."); | |
var irc = require('irc'); | |
//For storing globals | |
var MYBOT = {}; | |
//Channel to use |