Angular Revertible Action
Example use:
angular.module('xxx').controller 'TreasureController', ($scope, treasureId, RevertibleAction, Restangular) ->
Restangular.one('treasure', treasureId).get().then (treasure) ->
$scope.treasure = treasure
Example use:
angular.module('xxx').controller 'TreasureController', ($scope, treasureId, RevertibleAction, Restangular) ->
Restangular.one('treasure', treasureId).get().then (treasure) ->
$scope.treasure = treasure
<div loading-cover="coversIfThisIsTrue">
CONTENT
</div>
import {memoize, clearMemoizedValue} from "./memoize"; | |
describe("memoize", () => { | |
class MyClass { | |
@memoize(5) | |
getNumber() { | |
return Math.random(); | |
} | |
} |
A button that disables itself until the promise is resolved. See the provided animations below.
Default values work with Bootstrap and Font Awesome, but you can adjust it to your needs.
Your template:
ffmpeg -r 15 -start_number 1 -i frame%04d.JPG -s 1280x720 -vcodec libx264 timelapse.mp4
<template name="aw" value="@org.springframework.beans.factory.annotation.Autowired private $CLASS_NAME$ $FIELD_NAME$;" description="Adds @Autowired field" toReformat="true" toShortenFQNames="true"> | |
<variable name="CLASS_NAME" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="FIELD_NAME" expression="" defaultValue="decapitalize(CLASS_NAME)" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_DECLARATION" value="true" /> | |
</context> | |
</template> |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"> | |
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script> | |
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style> | |
<body> | |
<div style="max-width:900px; -webkit-transform:rotate(0deg)"> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> |
#!/usr/bin/env bash | |
# Sample crontab: 0 */2 * * * /home/unicorn/backup.sh > /home/unicorn/backup.log 2>&1 | |
NOW=$(date +"%Y%m%d%H%M%S") | |
BACKUP_FILE=supla-$NOW.sql | |
GDRIVE_DIR=0B0OnuB36CtoeknVRX2xRbS1sT1E | |
SUPLA_PATH=/var/www/supla-docker | |
BACKUP_EXPIRATION_DAYS=7 |
<template> | |
<require from="components/navigation.html"></require> | |
<h1>Aurelia Router Demo</h1> | |
<navigation router.bind="router" class="primary-navigation"></navigation> | |
<div class="page-host"> | |
<router-view></router-view> | |
</div> | |
</template> |
gc
it).push -f
ed the master
branch leaving only one silly commit there.