(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env node | |
var argv = require('optimist') | |
.usage('Usage: --key=[consumer key] -secret=[consumer secret]') | |
.demand(['key', 'secret']) | |
.argv | |
; | |
var OAuth = require('oauth').OAuth; | |
var Step = require('step'); |
/* | |
Funky Clouds 2014 | |
Toys For Matrix Effects | |
www.stefan-petrick.de/wordpress_beta | |
*/ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<?php | |
$n = 6; | |
$rules = []; | |
$ngrams = []; | |
foreach (read_csv('tweets.csv') as $data) { | |
$source = $data['text']; | |
$source = htmlspecialchars_decode($source); |
#EXTINF:-1,Nickelodeon | |
http://B29273.cdn.telefonica.com/29273/NICK_SUB.m3u8 | |
#EXTINF:-1,Disney Junior | |
http://B29285.cdn.telefonica.com/29285/DSNJR_SUB.m3u8 | |
#EXTINF:-1,40TV | |
http://B31312.cdn.telefonica.com/31312/40TV_SUB.m3u8 | |
#EXTINF:-1,Disney XD | |
http://B31309.cdn.telefonica.com/31309/DSNYXD_SUB.m3u8 | |
#EXTINF:-1,Canal Cocina | |
http://B31305.cdn.telefonica.com/31305/COCINA_SUB.m3u8 |
# Taxonomy terms: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php | |
# Menu links: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php | |
# File items: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php | |
# Nodes: |
The following instructions are for creating your own animations using the style transfer technique described by Gatys, Ecker, and Bethge, and implemented by Justin Johnson. To see an example of such an animation, see this video of Alice in Wonderland re-styled by 17 paintings.
The easiest way to set up the environment is to simply load Samim's a pre-built Terminal.com snap or use another cloud service like Amazon EC2. Unfortunately the g2.2xlarge GPU instances cost $0.99 per hour, and depending on parameters selected, it may take 10-15 minutes to produce a 512px-wide image, so it can cost $2-3 to generate 1 sec of video at 12fps.
If you do load the
from multiprocessing.dummy import Pool | |
from tqdm import tqdm | |
from urllib.parse import urlsplit | |
import urllib3 | |
import itertools, functools, operator | |
import os | |
import sys | |
import re | |
import errno | |
import argparse |
/////////////////////////////////// | |
// PARTICLE / WIRING CODE // | |
/////////////////////////////////// | |
int photoResistor = A0; | |
int power = A5; | |
int lightValue; | |
void setup() { | |
pinMode(photoResistor,INPUT); |
The Quick, Draw! dataset uses ndjson as one of the formats to store its millions of drawings.
We can use the ndjons-cli utility to quickly create interesting subsets of this dataset.
The drawings (stroke data and associated metadata) are stored as one JSON object per line. e.g.:
{