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
maybe = -> | |
console.log 'Maybe?' | |
require('./semver-is-a-promise')(require('./package.json')).then(maybe) |
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
# if running bash | |
if [ -n "$BASH_VERSION" ]; then | |
# include .bashrc if it exists | |
if [ -f "$HOME/.bashrc" ]; then | |
. "$HOME/.bashrc" | |
fi | |
fi |
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
<div class="dialog dialog-yesno"> | |
<header> | |
<h1>Are you sure deleting the internet?</h1> | |
</header> | |
<button>No</button> | |
<button>Yes</button> | |
</div> |
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
angular.module('app').directive('dialog', function(){return{ | |
template : '<div class="dialog dialog-{{type}}">'+ | |
'<header><h1>{{title}}</h1></header>'+ | |
'<button>No</button><button>Yes</button>'+ | |
'</div>', | |
restrict: 'E', | |
replace: true, | |
scope: { | |
'title' : '@', | |
'type' : '@' |
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
<dialog title="Are you sure deleting the internet?" type="yesno"></dialog> |
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
<tabpanel> | |
<tap title="Panel 1"> | |
<h2>Header</h2> | |
<p>Text<p< | |
</tap> | |
<tap title="Panel 2"> | |
<img src="..."/> | |
</tap> |
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
equalArrayItems = (actual, expected) -> | |
test.ok actual instanceof Array | |
test.ok expected instanceof Array | |
test.equals actual.length, expected.length | |
# Loop 1: All values of "expected" MUST be in "actual". | |
for item in expected | |
test.ok actual.indexOf(item) > -1 | |
# Loop 2: All values of "actual" MUST be in "expected". | |
for item in actual | |
test.ok expected.indexOf(item) > -1 |
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
var buildUUID = function(bits) { | |
var CHARS, i, rand, result, _i; | |
CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ012345678900'; | |
result = ''; | |
while (bits > 0) { | |
rand = Math.floor(Math.random() * 0x100000000); | |
for (i = _i = 26; _i > 0; i = _i += -6) { | |
result += CHARS[0x3F & rand >>> i]; | |
bits -= 6; | |
if (!(bits > 0)) { |
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
<jso:include exploded="true" groupNames="app-prod"></jso:include> |
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
<jso> | |
<!-- Ext JS 3.4 (Development) --> | |
<group name="extjs-devl"> | |
<js>/resources/ext-3.4.0/adapter/ext/ext-base-debug.js</js> | |
<js>/resources/ext-3.4.0/ext-all-debug.js</js> | |
<js>/resources/ext-3.4.0/src/debug.js</js> | |
</group> | |
<!-- Ext JS 3.4 (Production) --> | |
<group name="extjs-prod"> | |
<js>/resources/ext-3.4.0/adapter/ext/ext-base.js</js> |