See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| // escodegen has a fucked up API for attaching comments | |
| // https://github.com/estools/escodegen/issues/10 | |
| var esprima = require("esprima"); | |
| var es = require("escodegen"); | |
| var ast = esprima.parse( | |
| '//comment here\nvar answer = 42;', | |
| {range: true, tokens: true, comment: true}); | |
| // attaching comments is a separate step |
| package main | |
| import ( | |
| "fmt" | |
| "runtime" | |
| ) | |
| func MaxParallelism() int { | |
| maxProcs := runtime.GOMAXPROCS(0) | |
| numCPU := runtime.NumCPU() |
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| arm64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S |
| (function (name, definition){ | |
| if (typeof define === 'function'){ // AMD | |
| define(definition); | |
| } else if (typeof module !== 'undefined' && module.exports) { // Node.js | |
| module.exports = definition(); | |
| } else { // Browser | |
| var theModule = definition(), global = this, old = global[name]; | |
| theModule.noConflict = function () { | |
| global[name] = old; | |
| return theModule; |