Skip to content

Instantly share code, notes, and snippets.

@tonyfast
tonyfast / README.md
Last active August 29, 2015 14:14 — forked from mbostock/.block
Collapsible tree with dict-like object

An interactive version of a Reingold–Tilford tree. Click on the nodes to expand or collapse.

Modifications

Very minor tweaks were made to create a collapsible tree of a dict-like object.

  • The dict is converted to the flare.json tree structure with a default size.
  • I added a subset of a gist API response because that is what I am working on.
  • I added lodash because the tree converter was already written.
@tonyfast
tonyfast / README.md
Last active August 29, 2015 14:14 — forked from bollwyvl/README.md
d3+riotjs

An interactive version of a Reingold–Tilford tree. Click on the nodes to expand or collapse.

Modifications

Very minor tweaks were made to create a collapsible tree of a dict-like object.

  • The dict is converted to the flare.json tree structure with a default size.
  • I added a subset of a gist API response because that is what I am working on.
  • I added lodash because the tree converter was already written.
@tonyfast
tonyfast / index.html
Last active August 29, 2015 14:14 — forked from bollwyvl/README.md
d3+flexbox table
<head>
<meta charset="utf-8">
<style>
@import "//cdn.jsdelivr.net/g/bootstrap(css/bootstrap.min.css)";
* {
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
button{
@tonyfast
tonyfast / howto-manually-add-trust-cert-to-rubygems.md
Last active August 29, 2015 14:14
Manually install Ruby Gems to Use Ruby on Windows

SSL upgrades on rubygems.org and RubyInstaller versions

UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.


Hello,

If you reached this page, means you've hit this SSL error when trying to

@tonyfast
tonyfast / data.json
Last active August 29, 2015 14:15 — forked from wd15/one_record.txt
Presentation Layer for Sumatra Database
[{
"script_arguments": "<parameters>",
"platforms": [
{
"system_name": "Linux",
"machine": "x86_64",
"version": "#34-Ubuntu SMP Wed May 29 20:22:58 UTC 2013",
"ip_addr": "127.0.0.1",
"architecture_bits": "64bit",
"architecture_linkage": "ELF",
@tonyfast
tonyfast / d3.ml.js
Last active August 29, 2015 14:17 — forked from bollwyvl/d3.ml.js
;( function(){
// an extension for d3 that iterates over Javascript objects
// to build a DOM derived from data.
d3.ml = {
// YAML templates that execute d3ml
templates: {},
requests: {},
scripts: {},
build:
function(s, template, state){
@tonyfast
tonyfast / WORKING Just a script.ipynb
Last active August 29, 2015 14:17 — forked from bollwyvl/WORKING Just a script.ipynb
Using Mermaid in Ipython Notebook with Presentation in NBViewer
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonyfast
tonyfast / index.html
Last active August 29, 2015 14:17 — forked from bollwyvl/index.html
Archie WYSIWYG with JSON and Markdown exports
<!DOCTYPE html>
<html>
<head>
<style>
@import "https://cdnjs.cloudflare.com/ajax/libs/codemirror/4.13.0/codemirror.min.css";
@import "https://cdnjs.cloudflare.com/ajax/libs/codemirror/4.13.0/theme/blackboard.css";
@import "//cdn.jsdelivr.net/g/github-markdown-css";
/*
Domain:
x: [-0.7, 0.7]
y: [0, 1.0]
Full_model:
0:
density: 0.0
radius: 0.08
position: [0.0, 0.0]
1:
density: 0.5
@tonyfast
tonyfast / body_config.yml
Last active August 29, 2015 14:18 — forked from robclewley/body_config.yml
Basic Visualization of Bombadier
Domain:
x: [-0.7, 0.7]
y: [0, 1.0]
Full_model:
0:
density: 0.0
radius: 0.08
position: [0.0, 0.0]
1:
density: 0.5