gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 |
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
// Typical AMD factory that returns a value, but uses an r-value (sync) require(), | |
// rather than a long, awkward dependency list. | |
// You cannot use module.exports or exports to declare the module: | |
(function (define){ | |
define(function (require) { | |
"use strict"; | |
var mod = require('pkb/modA'); | |
return { |
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
exports = { | |
"Test onLoad Event with AMD": function (test) { | |
test.expect(1); | |
var amdTester = (function() { | |
var amdCache = { | |
"zc": zeroClipboard | |
}; | |
return function(depIds, cb) { | |
var depVals = depIds.map(function(id) { return amdCache[id]; }); |
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
<!-- | |
*********************** | |
A more-correct version of the Ant script bits outlined on this blog post: | |
http://ptrthomas.wordpress.com/2006/10/10/how-to-start-and-stop-jetty-from-ant/ | |
NOTE: This file's macrodefs use task definitions from the Ant Contrib library ("if", "then" and "else", in particular). | |
If you are not using the Ant Contrib library, you cannot use this version of the file. | |
*********************** |
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
// IMPORTANT: | |
// As of nedb@^1.7.0, Datastore now inherits from EventEmitter in the NeDB core module. | |
// If you need to support older versions of NeDB, please look at the following previous revision | |
// of this gist: | |
// https://gist.github.com/JamesMGreene/0e0b2506c7bd2a2557f7/d8b4b1e97bb0d118c509672e3c7276b6dc4ba13a | |
/* | |
This gist provides a module which derives from the NeDB Datastore module and extends it to | |
emit several important events: |
- I have an existing published Node module,
flex-sdk
, which basically serves as a downloader and wrapper for an external, non-JavaScript dependency: the Adobe/Apache Flex SDK. - As such, the Node module's version number is based on the version of the Flex SDK which it wraps, e.g.
flex-sdk@4.5.1
== Flex SDK 4.5.1 - I just discovered that I should also be bundling additional Flash API libraries (for compilation) with these various SDKs.
Working draft of the API for the new ZeroClipboard "Core" sub-module in v2.0.0. This sub-module only provides the core Flash and clipboard injection facilities but none of the DOM, "Client", resizing, repositioning, etc. logic/code.
NOTE: A checked checkbox means that line item has already been implemented in the latest ZeroClipboard master
branch.
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
// Getting tree | |
const { data: baseTree } = await client.gitdata.getTree({ | |
owner: login, | |
repo: repo, | |
tree_sha: sha, | |
recursive: 1 | |
}) | |
const baseSha = baseTree.sha | |
const baseEntriesByPath = baseTree.tree.reduce((entriesByPath, entry) => { |
NewerOlder