Skip to content

Instantly share code, notes, and snippets.

@tonyfast
tonyfast / affix.yaml
Last active August 29, 2015 14:15
d3 + riotjs + structured data = affix behavior
- heading: Dog
body: >
alksdhflkajsdhf
- heading: Sean
body: >
Lorem ipsum dolor sit amet, ex sed paulo putent, cu sit integre epicurei petentium. Vel ea quem malis causae. Qui no odio prima definiebas. Quando vidisse feugiat vel eu, cum et dicit splendide, ea rebum eirmod est. Ne adhuc atqui definitionem quo, eum ceteros rationibus eu. Solet regione has cu, mea id alia posidonium.
Aeque soleat legimus ei sed, eos ut everti gubergren vituperatoribus. Ex veri sonet omnes pri. Cu mucius splendide ius. Ea sea soleat mnesarchum. Simul maiorum accumsan his et, ullum liber delicata eum an. Ad duo essent aliquid similique.
- heading: Freddie
@tonyfast
tonyfast / document.yaml
Last active August 29, 2015 14:15
webpage as YAML parsed by d3 and Handlebars
type: document
children:
- heading: Dog Pound
children:
- heading: dirty
type: 'testing'
content: >
This will be so cool if it works
- heading: lildog
type: 'gallery'
@tonyfast
tonyfast / index.html
Created February 20, 2015 15:57
A Development Process for Liberating Immutable Research and Development
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mermaid/0.3.3/mermaid.full.min.js"></script>
<h1>A Development Process for Liberating Immutable Research and Development</h1>
<div class="mermaid">
graph LR;
what((What are you gonna do?)) --> hack[Hack with your best tools];
hack --> look((What does my research look like?))
look --> localhost[Local web host];
localhost --> static;
localhost --> dynamic;
static --> Jekyll;
@tonyfast
tonyfast / index.html
Created February 23, 2015 20:35
interface
<head>
<script src="//cdn.jsdelivr.net/g/d3js,riot@2.0(riot.min.js+compiler.min.js),coffeescript,skrollr">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.2.6/js-yaml.min.js"></script>
<style>
@import "http://bootswatch.com/superhero/bootstrap.min.css";
</style>
<!--
Skrollable uses regular expressions to interpolate animations
-->
@tonyfast
tonyfast / index.html
Last active August 29, 2015 14:16
Efficiently Template structured data using YAML
<head>
<script src="//cdn.jsdelivr.net/g/d3js,riot@2.0(riot.min.js+compiler.min.js),coffeescript">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.2.6/js-yaml.min.js"></script>
<style>
@import "http://bootswatch.com/superhero/bootstrap.min.css";
</style>
</head>
<body>
@tonyfast
tonyfast / index.html
Last active August 29, 2015 14:16
Moving Scientific Data to the Web Using Javascript and Existing Tools
<head>
<script src="//cdn.jsdelivr.net/g/d3js,coffeescript">
</script>
<style>
@import "http://bootswatch.com/superhero/bootstrap.min.css";
</style>
</head>
<body>
<script type="text/coffeescript">
@tonyfast
tonyfast / README.md
Last active August 29, 2015 14:16
Creating styled, classed, and id'ed containers for Webpage using a YAML manifest that d3 iterates over

What do you know about your webpage?

Often webpages are built with an initial idea, but we start from coding from naught.

This gist allows a webpage to be written as a yaml manifest. d3 tree structures inspire the manifest syntax.

Keywords

root

@tonyfast
tonyfast / index.html
Created March 3, 2015 17:02
Riot Demo
<!doctype html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/g/riot@2.0(riot.min.js+compiler.min.js)"></script>
<style>
@import "https://raw.githubusercontent.com/muut/riotjs/gh-pages/demo/todo.css";
</style>
</head>
<body>
<todo></todo>
@tonyfast
tonyfast / index.html
Created March 3, 2015 20:12
crop image with svg shape using d3
<!doctype html>
<html>
<head>
<script src='//cdn.jsdelivr.net/g/d3js'></script>
</head>
<body>
<svg width="700" height="660">
<defs>
<pattern id="image" x="0" y="0" patternUnits="userSpaceOnUse" height="200" width="200">
<image x="0" y="0" height="200" width="200" xlink:href="http://lorempixel.com/100/100" type="image/png"></image>
@tonyfast
tonyfast / index.html
Last active August 29, 2015 14:16
Make a Pattern of Cropped Images in d3 from a YAML manifest
<!doctype html>
<html>
<head>
<script src='//cdn.jsdelivr.net/g/d3js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.2.7/js-yaml.min.js"></script>
</head>
<body>
<script id="pattern" type="text/yaml">
type: hexagon