-
Data Down / Actions Up
- http://emberjs.jsbin.com/nayaho/edit?html,js - Interdependent select boxes. No observers.
- http://ember-twiddle.com/2d7246875098d0dbb4a4 - One Way Input
-
Plain JSBin's
-
Ember Version Base JSBin's
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 *count(n) { | |
for (let i = 0; i < n; i++) { | |
yield i; | |
} | |
} | |
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
const asyncForEach = async (values, callback) => { |
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
import { Credentials } from 'uport' | |
import { verifyJWT } from 'did-jwt' | |
async function mySigner (data) { | |
// bring up signing UX | |
// sign data with sha256/secpk256k1 | |
// see https://github.com/uport-project/did-jwt#creating-custom-signers-for-integrating-with-hsm | |
return | |
} |
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 redis app | |
flynn create --remote "" redis | |
# create a release using the latest (at the time of writing) Docker Redis image | |
flynn -a redis release add -f config.json "https://registry.hub.docker.com?name=redis&id=868be653dea3ff6082b043c0f34b95bb180cc82ab14a18d9d6b8e27b7929762c" | |
# scale the server to one process. This may time out initially as the server pulls the image, but watch "flynn -a redis ps" and should come up. | |
flynn -a redis scale server=1 | |
# redis should now be running in the cluster at redis.discoverd:6379 |
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 | |
# Redirect output to stderr. | |
exec 1>&2 | |
# enable user input | |
exec < /dev/tty | |
consoleregexp='console.log' | |
# CHECK | |
if test $(git diff --cached | grep $consoleregexp | wc -l) != 0 | |
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
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| FUCKIN PUSSIES | |
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
13:16 <luite> | hello | |
13:16 <ChongLi> | somebody has a mental illness! | |
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| compelled to write Node.js! | |
13:16 <genisage> | hi | |
13:16 <luite> | you might be pleased to learn that you can compile | |
| haskell to javascript now |
Here is a sketch of how one might go about doing skeletal animation in JavaScript, broken down into different npm modules that would need to be written:
- A BVH to JSON converter.
BVH is a standard format for representing skeletal animation, there is tons of data in the format, and many tools can consume/produce it. So getting things working in this space is priority #1. I think the best way to tackle this problem would be to write a simple module that takes a stream, and produce a JSON object that exactly represents the HIERARCHY and MOTION sections of a BVH file, along with some serialize method that can produce the same output. - A simple animation viewer. Outside voxel.js, we should probably have a stick figure animation viewer. this could be done in THREE.js using wires to draw each of the joints.
- A motion tweening module Or basically some method to interpolate between per-frame motions. This is necessary to perform
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
/* | |
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
*/ | |
var http = require('http'), | |
fs = require('fs'), | |
util = require('util'); | |
http.createServer(function (req, res) { | |
var path = 'video.mp4'; |
NewerOlder