Skip to content

Instantly share code, notes, and snippets.

@Fil
Fil / .block
Created July 28, 2020 10:43 — forked from mbostock/.block
Force-Directed Lattice
license: gpl-3.0
height: 960
@Fil
Fil / README.md
Last active June 13, 2019 21:20 — forked from veltman/draw.js
D3 frames to video

This amazing script by Noah Veltman allows to create videos from d3.

install

npm install canvas topojson d3 rw

run

node draw.js | ffmpeg -y -c:v png -f image2pipe -r 20 -i - -an -c:v libx264 -pix_fmt yuv420p -movflags +faststart myvideo.mp4

enjoy

@Fil
Fil / .block
Last active February 2, 2018 03:58 — forked from mbostock/.block
Raster Reprojection of panorama images (360°) with WebGL
license: gpl-3.0
<!DOCTYPE html>
<html>
<!--
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#! /usr/bin/php -q
<?php
define ('MYSQL_ROOT', 'root');
define ('MYSQL_PASS', 'passwd');
# connexion a la base
$conn = mysql_connect('localhost', 'root', 'tapioca');
if (!$conn) die ('erreur connexion DB '.mysql_error());