Skip to content

Instantly share code, notes, and snippets.

View lingyielia's full-sized avatar
🍉

Lingyi Zhang lingyielia

🍉
  • @quantumblack
  • Washington, D.C.
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#map {
width: 650px;
height: 650px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>data vis</title>
<style id="jsbin-css">
.y-axis path {
display: none;
}
@lingyielia
lingyielia / index.html
Created April 17, 2018 03:32
Working with Altair
<!DOCTYPE html>
<html>
<head>
<style>
.vega-actions a {
margin-right: 12px;
color: #757575;
font-weight: normal;
font-size: 13px;
@lingyielia
lingyielia / DV_Lab7.vg.json
Created April 17, 2018 03:17
Working with Vega-lite
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://raw.githubusercontent.com/hvo/datasets/master/nyc_restaurants_by_cuisine.json",
"format": { "type": "json" }
},
"transform": [
{"filter": "datum._vgsid_<=25"}
],
"selection": {
@lingyielia
lingyielia / conda_virtualenv_cheatsheet.txt
Last active April 6, 2018 09:12
Cheatsheet for create new virtualenv, install packages, add kernels to jupyter notebook
===================================
#create env
conda create --name myenvname
#delete a env
conda env remove --name myenv
===================================
#install package
conda install -n myenv scipy=0.15.0
@lingyielia
lingyielia / .block
Last active April 29, 2018 20:50
NYC Cuisine Map
license: gpl-3.0
height: 1700
scrolling: no
border: yes
@lingyielia
lingyielia / .block
Last active March 21, 2018 05:18
NYC 311 Rodent Complaints of 2016
license: gpl-3.0
height: 700
scrolling: no
border: yes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://serv.cusp.nyu.edu/~hvo/files/nyc_grads.js" type="text/javascript"></script>
</head>
<body>
<div id="chart"></div>