Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"hconcat": [
{
"layer": [
{
"data": {"name": "data-9440ce88e774664b59fdc5f999bff375"},
"mark": "bar",
"encoding": {
"color": {
@danielgavrilov
danielgavrilov / spec.json
Created December 20, 2020 15:39
Vega-Lite spec from Sun Dec 20 2020
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {"url": "data/cars.json"},
"vconcat": [
{
"selection": {"brush": {"type": "interval"}},
"mark": "point",
"encoding": {
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Miles_per_Gallon", "type": "quantitative"}
This file has been truncated, but you can view the full file.
{
"config": {"view": {"continuousWidth": 400, "continuousHeight": 300}},
"vconcat": [
{
"layer": [
{
"data": {"name": "data-a2ba9265154cc221e303d5d07df2a195"},
"mark": {"type": "line", "color": "rgba(0,0,0,.2)", "size": 1},
"encoding": {
"x": {"type": "temporal", "field": "date"},
@danielgavrilov
danielgavrilov / .block
Last active April 8, 2017 16:24
Solar Path
license: gpl-3.0
height: 960
scrolling:
@danielgavrilov
danielgavrilov / .block
Created March 4, 2017 17:29
Pan & Zoom SVG + HTML in sync
license: mit

Keybase proof

I hereby claim:

  • I am danielgavrilov on github.
  • I am gavrilov (https://keybase.io/gavrilov) on keybase.
  • I have a public key ASAfcXpWqTToARDoERqg3Fq676VoJ4hE_nRVvaMq6HqILwo

To claim this, I am signing this object:

EMPTY = " "
RIGHT = "→"
LEFT = "←"
class color:
PURPLE = '\033[95m'
CYAN = '\033[96m'
DARKCYAN = '\033[36m'
BLUE = '\033[94m'
GREEN = '\033[92m'
<html>
<head>
<title>Test</title>
<style>
body {
display: flex;
margin: 0;
padding: 0;
}