Skip to content

Instantly share code, notes, and snippets.

View autioch's full-sized avatar

Jakub Szczepaniak autioch

  • Poznań, Poland
View GitHub Profile
@autioch
autioch / snow.js
Created September 26, 2015 22:20
Old school snow for the website
(function(window, document) {
/* Modification
* reuqestAnimationFrame polyfill https://gist.github.com/paulirish/1579671
* hasFocus for old Opera if (!document.hasFocus) {document.hasFocus = function() {return true}}
* Styling with stylesheet:
* .snow {
* position: absolute;
* color: #fff;
* top: 0;
@autioch
autioch / index.html
Last active September 25, 2015 21:21
Simple draggable graph on canvas using ES6
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Graphs</title>
<style type="text/css">
body {margin:0}
canvas {display:block;background:#eee}
</style>
</head>