Skip to content

Instantly share code, notes, and snippets.

@Hypercubed
Hypercubed / .editorconfig
Last active August 29, 2015 14:15
FANTOM5 Timecourse Visualization
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@Hypercubed
Hypercubed / DOM_element.js
Last active August 29, 2015 14:23
A simple DOM component (for angular and angular-ecs)
// Detect Vendor Prefix with JavaScript
// by By David Walsh
// from http://davidwalsh.name/vendor-prefix
var prefix = (function () {
var styles = window.getComputedStyle(document.documentElement, ''),
pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1],
@Hypercubed
Hypercubed / gist:37dade46dbf5e447cc95
Last active August 29, 2015 14:24
polymer 1.0 d3 bar chart
<link rel="import"
href="//www.polymer-project.org/1.0/samples/components/polymer/polymer.html">
<dom-module id="bar-chart">
<style>
.content-container > ::content .axis path,
.content-container > ::content .axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
@Hypercubed
Hypercubed / directive.js
Last active June 3, 2016 16:01
Use systemjs/plugin-text to import html directly to $routeProvider or $templateCache, works great with jspm bundle.
import somethingHTML from './something.html!text';
angular.module('myApp',[])
.directive('myDirective', function() {
return {
template: somethingHTML
}
});
@Hypercubed
Hypercubed / index.js
Last active September 1, 2015 03:01
signals-patch
module.exports = require('signals');
@Hypercubed
Hypercubed / README.md
Last active June 15, 2016 20:47
Epicyclic Gearing (with svgsaver)

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

forked from mbostock's block: Epicyclic Gearing

@Hypercubed
Hypercubed / README.md
Last active October 19, 2015 03:12
Superformula Explorer (with svgsaver)
@Hypercubed
Hypercubed / LICENSE
Last active May 3, 2017 00:46 — forked from curran/LICENSE
Chiasm Boilerplate (with download buttons)
The MIT License (MIT)
Copyright (c) 2015 Curran Kelleher
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Hypercubed
Hypercubed / .gitignore
Last active May 22, 2017 23:44
Bad value context for arguments value
jspm_packages
@Hypercubed
Hypercubed / index.html
Last active October 19, 2015 05:50
angular-downloadsvg-directive bundle
<!doctype html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.rawgit.com/martine/webtreemap/a2fa353833eca1a4821ba4c93fb6a7d546aed02a/webtreemap.css">
<title>angular-downloadsvg-directive.min.js - Source Map Explorer</title>
<style>
html, body {
height: 100%;
}