Skip to content

Instantly share code, notes, and snippets.

View JackyLiu97's full-sized avatar
:octocat:

Jacky Liu JackyLiu97

:octocat:
  • New York City
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.9.2/d3.min.js"></script>
<title>JS Bin</title>
</head>
<body>
<div id="chart"></div>
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "Lab 4",
"data": {"url": "https://raw.githubusercontent.com/hvo/datasets/master/nyc_grads.csv"},
"transform":[
{"filter": {"field": "Cohort", "oneOf": ["2002","2004","2006"]}},
{"filter": {"field": "Type", "equal": "Borough Total"}},
{"calculate": "datum.Advanced/datum.Total*100", "as": "PAdvanced"},
{"calculate": "datum.DroppedOut/datum.Total*100", "as": "PDroppedOut"}
],
@JackyLiu97
JackyLiu97 / index.html
Created October 3, 2019 05:17
Csc 59969 Visualization // source https://jsbin.com/gapunej
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://serv.cusp.nyu.edu/~hvo/files/nyc_grads.js" type="text/javascript">
</script>
<title>Csc 59969 Visualization</title>
</head>
<body>
<!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>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin<style id="jsbin-css">
.title {
font-family: Helvetica;
font-size: 20px;
fill: black;
@JackyLiu97
JackyLiu97 / index.html
Created October 21, 2019 20:23
JS Bin Lab 4 Submission // source https://jsbin.com/wayepem
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Lab 4 Submission">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin<style id="jsbin-css">
.title {
font-family: Helvetica;
font-size: 20px;
@JackyLiu97
JackyLiu97 / index.html
Created October 21, 2019 20:23
JS Bin Lab 4 with Extra Credit // source https://jsbin.com/kaxamad
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Lab 4 with Extra Credit">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin<style id="jsbin-css">
.title {
font-family: Helvetica;
font-size: 20px;
@JackyLiu97
JackyLiu97 / twitch.js
Created October 6, 2020 02:54
Hosting my own addblock for twitch
# https://github.com/uBlockOrigin/uAssets/pull/3517
twitch-videoad.js application/javascript
(function() {
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
var realFetch = window.fetch;
window.fetch = function(input, init) {
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) {
var url = new URL(arguments[0]);
url.searchParams.forEach(function(value, key) {
url.searchParams.delete(key);