Skip to content

Instantly share code, notes, and snippets.

@jakobo
Created January 19, 2012 05:28
Show Gist options
  • Save jakobo/1638165 to your computer and use it in GitHub Desktop.
Save jakobo/1638165 to your computer and use it in GitHub Desktop.
exports.increment = function(val) {
return val + 1;
};
var inc = require('increment').increment;
var a = 1;
altert(inc(a)); // 2
<script type="text/javascript" src="inject.js"></script>
<script type="text/javascript">
reqiure.setModuleRoot("http://example.com/js/modules");
require.run("program");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment