Skip to content

Instantly share code, notes, and snippets.

View ndrhzn's full-sized avatar

Andrii Hazin ndrhzn

View GitHub Profile
@ndrhzn
ndrhzn / conditions.csv
Last active January 6, 2019 15:32
Vega-Lite - Vertical Ticks
date conds
2016-01-01 Clear
2016-01-01 Mist
2016-01-01 Scattered Clouds
2016-01-01 Light Snow
2016-01-01 Light Snow Showers
2016-01-02 Light Snow
2016-01-02 Overcast
2016-01-02 Mostly Cloudy
2016-01-02 Scattered Clouds
@ndrhzn
ndrhzn / chart.js
Last active January 7, 2019 12:52
G2 - Bar Chart with Annotations
// add data
const data =
[{"letter":"а","count":129899,"share":8.8817824965317},
{"letter":"б","count":23864,"share":1.63168967811325},
{"letter":"в","count":68853,"share":4.70779120881375},
{"letter":"г","count":22280,"share":1.52338442961629},
{"letter":"ґ","count":647,"share":0.0442383180413707},
{"letter":"д","count":36900,"share":2.52301999339502},
{"letter":"е","count":65909,"share":4.50649660554668},
@ndrhzn
ndrhzn / index.html
Last active March 8, 2019 10:53
P5 - Alphabet
<!DOCTYPE html>
<html>
<head>
<title>Alphabet</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<meta charset="utf-8" />
<style media="screen">
html, body {
margin: 0;
@ndrhzn
ndrhzn / index.html
Last active March 8, 2019 10:52
P5 - Arcs With Interaction
<!DOCTYPE html>
<html>
<head>
<title>Arcs</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<meta charset="utf-8" />
<style media="screen">
html, body {
margin: 0;
@ndrhzn
ndrhzn / index.html
Last active June 16, 2019 14:51
P5 - Random
<!DOCTYPE html>
<html>
<head>
<title>Random</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet">
<meta charset="utf-8" />
<style media="screen">
html, body {
margin: 0;
@ndrhzn
ndrhzn / damn.csv
Created August 8, 2019 08:56
P5 - Jittering Word
x y
-231.19046047542068 -57.64693167439198
155.44231798998078 -95.2536241175376
204.96791640185427 -100.13339206708001
-50.002854936385376 -45.848900164411646
35.64745956430983 -100.07951328556041
-154.70533558263637 -20.349288778723718
51.303025944345165 -89.75856786095972
-155.47290247246713 -113.02130929637987
-112.80792213575644 -47.858395148908144