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
<script data-main="path/to/main" src="path/to/require.js"></script> |
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([ | |
//add dependencies here | |
'jquery' | |
, 'underscore' | |
, 'backbone' | |
], | |
function($,_,Backbone){ | |
var obj = {}; |
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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
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
// 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 |
NewerOlder