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
/** | |
* This is the process that actually loads and renders the app module. | |
* It needs to load node-specific polyfills. | |
*/ | |
require('reflect-metadata'); | |
/** | |
* Set of core-js polyfills borrowed from Angular CLI | |
*/ | |
require('reflect-metadata'); | |
/** IE9, IE10 and IE11 requires all of the following polyfills. **/ |
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
/** | |
* Step 1: Create a named label | |
* Step 2: Open board | |
* Step 3: Open devtools console | |
* Step 4: Copy and paste this whole gist into console | |
* Step 5: Create an array of all cards to be renamed. For all cards: var allCards = Array.prototype.slice.call(document.querySelectorAll('.list-card')) | |
* Step 6: call addLabelToCards with the list of nodes as first argument, label name as 2nd argument: addLabelToCards(allCards, 'work') | |
**/ | |
function addLabelToCards(cards, labelName) { |
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
"format register"; | |
System.register("rxjs/util/noop", [], true, function(require, exports, module) { | |
var global = System.global, | |
__define = global.define; | |
global.define = undefined; | |
function noop() {} | |
exports.noop = noop; | |
global.define = __define; | |
return module.exports; | |
}); |
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
#See fetch_pr script https://gist.github.com/vojtajina/5538170 | |
# fetch and checkout PR branch from "upstream" remote | |
fetch_pr 123 | |
git fetch upstream | |
# Replay changes on top of master | |
git rebase upstream/master | |
# Replace upstream/master with this branch | |
git push upstream pr-123: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
#Create a new git branch based on latest upstream/master | |
function freshbranch () { | |
git fetch upstream | |
git checkout -b $1 upstream/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
<div> | |
<button (click)="login()" *ng-if="!auth | async">Login</button> | |
<span *ng-if="auth | async"> | |
Welcome, {{auth | async.github.displayName}}! | |
</span> | |
</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
//@vsavkin did most of the work | |
//Angular 2 directive to allow setting a local variable from within a template. | |
//Usage example with an "auth" observable, whose unwrapped value gets set to "unwrapped": | |
/* | |
<span *assign-local="#unwrapped to auth | async"> | |
<button (click)="login()" *ng-if="!unwrapped">Login</button> | |
</span> | |
*/ | |
import { | |
Directive, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link href='http://fonts.googleapis.com/css?family=Mouse+Memoirs' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
height: 792pt; | |
margin: 0; | |
padding: 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
#!/bin/bash | |
# Usage ./images.sh optional-start-sha optional-end-sha | |
# ./images.sh eaa1d00b24008f590b95ad099241b4003688cdda HEAD | |
if [ $1 ]; then | |
start="$1.." | |
else | |
start="" | |
fi | |
if [ $2 ]; then |
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
/** | |
* @license AngularJS v1.3.0-local+sha.af50253 | |
* (c) 2010-2014 Google, Inc. http://angularjs.org | |
* License: MIT | |
*/ | |
(function(window, document, undefined) {'use strict'; | |
/** | |
* @description | |
* |
NewerOlder