Skip to content

Instantly share code, notes, and snippets.

View gigafied's full-sized avatar

Taka Kojima gigafied

View GitHub Profile
var USE_LOCAL_JSON = true,
globals = {
settings : {
TEMPLATE_DEBUG : true
},
USE_LOCAL_JSON : USE_LOCAL_JSON,
STATIC_URL : "static/",
@gigafied
gigafied / gist:3430792
Created August 23, 2012 00:14
GIT - Must Haves/Nice to Haves
Must Haves:
- Issues
Nice to Haves:
(function(){
var staticProps = {
SOME_PROP : "someVal"
};
minion.define("example", {
Example : minion.extend("minion.Class", {
example : function(req, res){
var data = {
foo : "foo",
bar : "bar",
foobar : "foobar"
};
res.render('example', {data: data});
}
{
"cmd": ["ant", "-f", "build.xml"],
"file_regex": "^ *\\[javac\\] (.+):([0-9]+):() (.*)$",
"working_dir": "${project_path:${folder}}/.ant",
"selector": "source.java",
"windows":
{
"cmd": ["ant.bat"]
}
@gigafied
gigafied / gist:1936807
Created February 29, 2012 01:27
com.f00 - example config with routes
<?xml version="1.0" encoding="utf-8"?>
<config>
<locales>
<locale id="en_us" language="en" name="US English" default="true" />
</locales>
<settings>
@gigafied
gigafied / gist:1935833
Created February 28, 2012 22:52
Private vars with Rosy
var red = red || {};
red.Module = Class.extend({
init : function (aVal, bVal) {
/* All private variables have to live here. */
var a;
var b;
@gigafied
gigafied / current.js
Created February 21, 2012 21:38
Minion - Formats
minion.define("example.module", {
require : [
"f00.module.ModuleA",
"f00.module.ModuleB"
],
SomeModule : minion.extend("f00.module.BaseModule", {
init : function () {
@gigafied
gigafied / gist:1832647
Created February 15, 2012 02:27
== use cases
function createBox1 (width, height, x, y) {
x = x || 100;
y = y || 200;
return {width: width, height: height, x: x, y: y};
}
function createBox2 (width, height, x, y) {
@gigafied
gigafied / exec-queue.js
Created February 14, 2012 23:05
Node.js ExecQueue
/*jslint node: true, onevar: false */
/*global jake, desc, task */
var ExecQueue = function (silent) {
this.commands = [];
this.silent = silent;
};
ExecQueue.prototype.add = function () {
for (var i = 0; i < arguments.length; i ++) {