This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
func install_yamlfmt { | |
# Check the machine architecture | |
arch=$(uname -m) | |
# Set the URL based on the machine architecture | |
if [[ $arch == "x86_64" ]]; then | |
url="https://github.com/google/yamlfmt/releases/download/v0.10.0/yamlfmt_0.10.0_Linux_x86_64.tar.gz" | |
elif [[ $arch == "arm64" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
@import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300|Josefin+Slab|Arvo|Lato|Vollkorn|Abril+Fatface|Old+Standard+TT|Droid+Sans|Lobster|Inconsolata|Montserrat|Playfair+Display|Karla|Alegreya|Libre+Baskerville|Merriweather|Lora|Archivo+Narrow|Neuton|Signika|Questrial|Fjalla+One|Bitter|Varela+Round); | |
.background { | |
fill: #eee; | |
pointer-events: all; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you are working in multiple computers, you might want to keep and apply the same Settings for SublimeText across these computers. | |
# We can set this up with the help of Dropbox (and a small tweak). | |
# Credit: http://www.hongkiat.com/blog/sublime-text-tips/ | |
# First, run the following command in Terminal. | |
DROPBOX_PATH=$HOME/Dropbox/settings/sublime-text-3/ | |
mkdir -p $DROPBOX_PATH | |
mv "$HOME/Library/Application Support/Sublime Text 3/Packages" "$DROPBOX_PATH" | |
mv "$HOME/Library/Application Support/Sublime Text 3/Installed Packages" "$DROPBOX_PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ["es2015"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Calendar } from '@nivo/calendar'; | |
<Calendar | |
data={[ | |
{ "day": "2016-02-05", "value": 397 }, | |
{ "day": "2015-09-17", "value": 283 }, | |
]} | |
from="2015-04-01" | |
to="2016-12-12" | |
emptyColor="#eeeeee" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Chart } from '@antv/g2'; | |
const data = [ | |
{country: "China", population: 131744}, | |
{country: "India", population: 104970}, | |
{country: "US", population: 29034}, | |
]; | |
const chart = new Chart({ container: 'container', autoFit: true, height: 500 }); | |
chart.data(data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
"description": "A simple bar chart with embedded data.", | |
"data": { | |
"values": [ | |
{"country": "China", "population": 131744}, | |
{"country": "India", "population": 104970}, | |
{"country": "US", "population": 29034} | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import p5 from 'p5'; | |
const p = new p5(function(sketch) { | |
sketch.setup = () => { | |
sketch.createCanvas(200, 200); | |
}; | |
sketch.draw = () => { | |
sketch.background(0); | |
sketch.fill(255); | |
sketch.rect(100, 100, 50, 50); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const myRadarChart = new Chart(ctx, { | |
type: 'radar', | |
data: data, | |
options: options | |
}); |
NewerOlder