Skip to content

Instantly share code, notes, and snippets.

View ymichael's full-sized avatar

Michael Yong ymichael

View GitHub Profile
@ymichael
ymichael / gist:2260016
Created March 31, 2012 06:33
only script tag
<script data-main="path/to/main" src="path/to/require.js"></script>
@ymichael
ymichael / gist:2259927
Created March 31, 2012 06:21
requirejs boilerplate
define([
//add dependencies here
'jquery'
, 'underscore'
, 'backbone'
],
function($,_,Backbone){
var obj = {};
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
@ymichael
ymichael / npmoutput.txt
Created March 4, 2012 16:08
npm output
// installed fine
michael:~ michael$ sudo npm cache clean
Password:
michael:~ michael$ sudo npm install forever -g
npm http GET https://registry.npmjs.org/forever
npm http 200 https://registry.npmjs.org/forever
npm http GET https://registry.npmjs.org/forever/-/forever-0.8.5.tgz
npm http 200 https://registry.npmjs.org/forever/-/forever-0.8.5.tgz
npm http GET https://registry.npmjs.org/broadway