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/sh | |
echo $DATE | |
SOURCE="./snaps/*a.png" | |
DEST="out-" | |
DEST+=`date '+%Y-%m-%d_%H%M%S'` | |
DEST+=".gif" | |
echo $DEST | |
convert -delay 70 \ |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
const current = Machine({ | |
id: 'video-player', | |
initial: 'playing_controlsHidden', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
playing_controlsHidden: { | |
on: { | |
PRESS_STOP: 'playing_controlsVisible' |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
Refund form | |
Selecting refund method | |
select cash -> No reminder | |
select credit -> Credit card | |
select donation -> Donation | |
Cash | |
select reminder -> Reminder | |
Reminder | |
No reminder | |
Credit card |
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
<html> | |
<body> | |
<div id="smiley" style="position: absolute;">😌</div> | |
<script> | |
const {requestAnimationFrame} = window | |
let i = 0 | |
const smiley = document.querySelector('#smiley') |
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
HTML_SRC=src/index.html | |
ELM_SRC=src/Main.elm | |
DIST=public | |
RIGHT_NOW=$(shell date "+%B %d, %Y at %H:%M:%S") | |
TIMESTAMP="<!-- Created at $(RIGHT_NOW) -->\n" | |
all: public index.html main.js | |
public: | |
@ mkdir $(DIST) |
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 express = require('express'); | |
var router = express.Router(); | |
router.get('/', function(req, res) { | |
res.send('READ all items'); | |
}); | |
router.post('/new', function(req, res) { | |
var data = req.body | |
var response = '' |
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(){ | |
// Put all yor code here. This will run only after the DOM is ready. | |
}) |
NewerOlder