Skip to content

Instantly share code, notes, and snippets.

View jakeNiemiec's full-sized avatar
💭
A well-oiled toaster oven

Jake Niemiec jakeNiemiec

💭
A well-oiled toaster oven
  • Professional Worrier
  • Chicago, IL
View GitHub Profile
<html><head> <meta name="description" content="Simplest possible examples of HTML, CSS and JavaScript."/> <meta name="author" content="//samdutton.com"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> <meta itemprop="name" content="simpl.info: simplest possible examples of HTML, CSS and JavaScript"> <meta itemprop="image" content="icon_192x192.png"> <meta name="mobile-web-app-capable" content="yes"> <meta id="theme-color" name="theme-color" content="#fff"> <base target="_blank"> <title>The video element: multiple videos</title><style>body{background-image: url("http://i.imgur.com/xlTahEK.jpg"); background-repeat: repeat-xy;}#animate{animation: move 3s ease infinite;}#random video{transform: rotate(2.75deg); animation: fadeInFromNone 10s ease infinite;}#random video:nth-child(1n){transform: none; animation: move 7s ease infinite;}#random video:nth-child(2n){transform: none; animation: move 10s ease infinite;}#random video:nth-child(3n){transform: rot
var d3 = require('d3');
var jsdom = require("jsdom-little");
var React = require('react-native');
var { View, Text } = React;
var Svg = require('./Svg');
var parseDate = d3.time.format("%d-%b-%y").parse;
var D3Chart = React.createClass({
componentDidMount() {
@jakeNiemiec
jakeNiemiec / .block
Created August 12, 2016 20:22 — forked from mbostock/.block
Pierce Tiles
license: gpl-3.0
height: 960
@jakeNiemiec
jakeNiemiec / README.markdown
Created August 22, 2016 20:30 — forked from mccannf/README.markdown
D3 Drag Rectangle with drag handles

This is an example of the power of the D3 library and how you can use the drag behavior of D3 to control the position and shape of the SVG element.

@jakeNiemiec
jakeNiemiec / .block
Created August 23, 2016 17:37
fresh block
license: mit
### Keybase proof
I hereby claim:
* I am jakeniemiec on github.
* I am jakeniemiec (https://keybase.io/jakeniemiec) on keybase.
* I have a public key whose fingerprint is 122E FCBB ECBB CFF6 0FDC 07E6 DADD 249F 31CF E11E
To claim this, I am signing this object:
@jakeNiemiec
jakeNiemiec / .block
Last active August 24, 2016 22:35
fresh block
license: mit
@jakeNiemiec
jakeNiemiec / .block
Last active August 30, 2016 20:06
D3 Drag Rectangle with drag handles
license: mit

If you're using SystemJS in the browser, you'll want to update your System config to point at the bundles, if you're not already.

System.config({
  //use typescript for simple compilation (no typechecking)
  //transpiler: 'typescript',
  //typescript compiler options
  //typescriptOptions: {
    //emitDecoratorMetadata: true
  //},
@jakeNiemiec
jakeNiemiec / destructuring.js
Created November 7, 2016 23:33 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];