https://github.com/miksago/jade-tmbundle
https://github.com/LearnBoost/stylus/tree/master/editors
~/Downloads/
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
#!/bin/bash | |
# | |
# Build a virtual environment suitable for running appengine. | |
# This uses virtualenvwrapper to make the virtual environment. | |
# Which you can activate with 'workon appengine' | |
# | |
# Everyone loves one-liners! | |
# Mac one-liner: | |
# $ curl -s https://raw.github.com/gist/1012769 | bash | |
# |
#!/bin/bash | |
# | |
# Build a virtual environment suitable for running appengine. | |
# This uses virtualenvwrapper to make the virtual environment. | |
# Which you can activate with 'workon appengine' | |
# | |
# Everyone loves one-liners! | |
# Mac one-liner: | |
# $ curl -s https://raw.github.com/gist/2839803 | bash | |
# |
define(['dependency'], function(Dependency) | |
{ | |
console.log("Dependency loaded", Dependency); | |
}); |
#! /bin/sh | |
# ------------------------------------------------------------------------------ | |
# SOME INFOS : fairly standard (debian) init script. | |
# Note that node doesn't create a PID file (hence --make-pidfile) | |
# has to be run in the background (hence --background) | |
# and NOT as root (hence --chuid) | |
# | |
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
# INSTALL/REMOVE http://www.debian-administration.org/articles/28 |
Meteor.subscribeWhenActive = function(args) { | |
var handle; | |
Deps.autorun(function() { | |
if (Activity.activeInTheLast10Minutes()) | |
handle = Meteor.subscribe(*args); | |
}) | |
return { | |
ready: function() { | |
return handle ? handle.ready() : false; |
Handlebars.registerHelper('renderTransitioningPage', function() { | |
console.log('----------------- here -------------------'); | |
var html = '', initial = true; | |
Deps.autorun(function() { | |
// this autorun with execute whenever currentPage or nextPage changes. | |
// we can inspect the two variables to determine exactly what's going on. | |
var current = Meteor.Transitioner.currentPage(), | |
next = Meteor.Transitioner.nextPage(); | |
console.log(current, next, initial); |
# Ubuntu upstart file at /etc/init/meteor.conf | |
author "Tom Coleman <[email protected]>" | |
start on runlevel [2345] | |
stop on runlevel [06] | |
respawn | |
respawn limit 10 5 | |
Router.map(function () { | |
this.route('index', { | |
controller: 'BasicController', | |
layoutTemplate: 'indexLayout', | |
path: '/', | |
waitOn: function () { | |
return Meteor.subscribe('Channels'); | |
} | |
}); |
Meteor.startup(function () { | |
Session.set('YTApiReady', false); | |
Session.set('channelRendered', false); | |
}); | |
onYouTubeIframeAPIReady = function() { | |
Session.set('YTApiReady', true); | |
}; | |
Template.channel.created = function () { |