Skip to content

Instantly share code, notes, and snippets.

View pjanik's full-sized avatar

Piotr Janik pjanik

  • Kraków, Poland
View GitHub Profile
@pjanik
pjanik / README.md
Last active December 14, 2015 23:59
SVG (D3, requestAnimationFrame)
<html>
<body>
<iframe name="my_iframe_name" foo="bar" width="70%" height="150" src="http://fiddle.jshell.net/RWjPD/9/show/light/" allowfullscreen="allowfullscreen" frameborder="1"></iframe>
</body>
</html>
@pjanik
pjanik / index.html
Created June 20, 2013 07:56
SVG, translate, attr
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
svg {
border: 1px dashed gray;
}
#results, #container {
display: inline-block;
margin: 15px;
@pjanik
pjanik / index.html
Created June 20, 2013 08:00
SVG, translate, style
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
svg {
border: 1px dashed gray;
}
#results, #container {
display: inline-block;
margin: 15px;
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: imports/energy2d/models-index.js
# modified: src/examples/energy2d-model/interactives-index.js
# modified: src/examples/energy2d-model/interactives/imports/conduction1.json
# modified: src/examples/energy2d-model/interactives/imports/conduction3.json
# modified: src/examples/energy2d-model/interactives/imports/conduction4.json
@pjanik
pjanik / d3.js
Created June 26, 2013 22:58
Inertial Drag
d3 = function() {
var d3 = {
version: "3.2.2"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");