I hereby claim:
- I am peutetre on github.
- I am 42loops (https://keybase.io/42loops) on keybase.
- I have a public key whose fingerprint is 3B6E 1233 6B99 BC65 D9AA 8676 AF92 07BD 2457 5A92
To claim this, I am signing this object:
var browserify = require('browserify'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var tmp = require('tmp'); | |
var b = browserify(); | |
var output = path.join(__dirname, 'test.js'); | |
var src = path.join(__dirname, 'main.js'); | |
var ws = fs.createWriteStream(output); | |
tmp.file({ prefix: 'settings-', postfix: '.json' }, function (err, tmpFilePath) { |
I hereby claim:
To claim this, I am signing this object:
var norm = require('zanimo/src/normalize-transform-value'), | |
Color = require('color'); | |
var el = document.createElement('div'); | |
el.style.height='300px'; | |
el.style.width='500px'; | |
document.body.appendChild(el); | |
// testing normalize-transform-value |
var Zanimo = require('zanimo'); | |
var prefix = require('vendor-prefix'); | |
var elt = document.createElement('div'); | |
elt.style.height = '100px'; | |
elt.style.width = '800px'; | |
elt.style.position = 'absolute'; | |
elt.style.top = '50px'; | |
elt.style.left = '50px'; |
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
if (config) { | |
for(var ƒ in config) { | |
if (typeof config[ƒ] === "function") { | |
this[ƒ] = lui.bind(config[ƒ], self); | |
} | |
} | |
} |
// tiny Zanimo.js example | |
var Zanimo = require('zanimo'), | |
Qimage = require('qimage'); | |
function setup() { | |
return Qimage("http://requirebin.com/logo-black.png") | |
.then(function (img) { | |
img.style.position = 'absolute'; | |
img.style.top = '100px'; |
// example 1 | |
// create a cube | |
var cube = create([{ | |
display:"none", | |
top:"50px", | |
left:"200px", | |
backgroundColor:"rgb(225, 70, 128)" | |
}])[0]; |
try | |
tell application "Safari" to activate | |
tell application "System Events" | |
tell process "Safari" | |
tell menu bar 1 | |
tell menu bar item "Develop" | |
tell menu "Develop" | |
tell menu "iPhone Simulator" of menu item "iPhone Simulator" | |
delay 1 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="q.js"></script> | |
<script> | |
function add(millis, answer, msg) { | |
const defer = Q.defer(); | |
setTimeout(function() { |