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
#!/usr/bin/env bash | |
while getopts "d" opt; do | |
case $opt in | |
d) dryRunOpt="--dry-run";; | |
esac | |
done | |
# prune local "cache" of remote branches first: | |
git fetch --prune origin | |
# delete merged to master branches: |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(0deg, #f06, yellow); | |
min-height: 100%; |
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> | |
<input type="text" [value]="newTodoTitle"> | |
<button (click)="addTodo()">+</button> | |
<tab-container> | |
<tab-pane title="Good kids"> | |
<div [ng-repeat|todo]="todosOf('good')"> | |
<input type="checkbox" | |
[checked]="todo.done"> | |
{{todo.title}} |
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 ng-controller="SantaTodoController"> | |
<input type="text" ng-model="newTodoTitle"> | |
<button ng-click="addTodo()">+</button> | |
<tab-container> | |
<tab-pane title="Tobias"> | |
<div ng-repeat="todo in todosOf('tobias')"> | |
<input type="checkbox" | |
ng-model="todo.done"> | |
{{todo.title}} | |
<button ng-click="deleteTodo(todo)"> |
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
function prettyprint(data, max) { | |
var max = max || 50, | |
min = 4, | |
separator = '...', | |
before = max * 0.618, | |
nL = data.length, | |
after = max - before - separator.length; | |
if (after < min) { |