Skip to content

Instantly share code, notes, and snippets.

@simon-lang
simon-lang / html.json
Created August 5, 2020 01:53
VSCode HTML Snippets
{
"bind": {
"prefix": "bind",
"body": [
"{{$1}}"
],
"description": ""
},
"message": {
"prefix": "message",
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+y",
"command": "redo",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "editor.action.moveLinesDownAction",
@simon-lang
simon-lang / settings.json
Last active May 23, 2019 00:37
VSCode Settings
{
"workbench.startupEditor": "newUntitledFile",
"window.zoomLevel": 2,
"editor.renderWhitespace": "boundary",
"files.exclude": {
"dist": true,
"fixtures": true,
"node_modules": true,
"static/timeline*": true
},
@simon-lang
simon-lang / WSL.md
Created May 22, 2019 06:22
Initial WSL setup

ssh

ssh-keygen
cat ~/.ssh/id_rsa.pub

git

const grouped = _.groupBy(this.state.deepAnalysisGroupedBarChart, 'color')
this.state.deepAnalysisMaxValue = max.value
const _encoding = {
x: {
field: 'value',
type: 'quantitative',
scale: {
domain: [0, max.value]
}
[
{
"author": "Jeffrey Heer",
"institution": "Stanford University",
"value": 68
},
{
"author": "Christopher D Manning",
"institution": "Stanford University",
"value": 11
@simon-lang
simon-lang / line-chart.json
Created November 28, 2018 23:24
line-chart.json
{
"$schema": "https://vega.github.io/schema/vega-lite/3.0.0-rc6.json",
"data": {
"values": [
{
"label": "2003",
"value": 1585,
"key": "pub_year",
"text": "2003 (1,585)"
},
@simon-lang
simon-lang / .block
Created September 11, 2018 00:55
fresh block
license: mit
@simon-lang
simon-lang / .block
Created September 10, 2018 04:10 — forked from NPashaP/.block
Viz - biPartite - default
license: gpl-3.0
const version = require('../../../../version.txt').trim()
class LocalStorageService {
constructor(prefix, useVersion) {
if (useVersion) {
prefix = version + ':' + prefix
}
this.prefix = prefix
this.store = {}