Skip to content

Instantly share code, notes, and snippets.

@xujenna
xujenna / LICENSE
Created August 5, 2019 17:21
This license applies to all public gists https://gist.github.com/xujenna/
Copyright 2019 Jenna Xu.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER D
@xujenna
xujenna / activities.csv
Last active May 20, 2021 18:56
highlights from data analysis
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 1.
"wave","category","sample1994_avgs","sample_avg_1","sample_avg_2","sample_avg_3","sample_avg_4","sample_avg_5","sample_avg_6","sample_avg_7","sample_avg_8","sample_avg_9","sample_avg_10","sample_avg_11","sample_avg_12","sample_avg_13","sample_avg_14","sample_avg_15","sample_avg_16","sample_avg_17","sample_avg_18","sample_avg_19","sample_avg_20","sample_avg_21","sample_avg_22","sample_avg_23","sample_avg_24","sample_avg_25","sample_avg_26","sample_avg_27","sample_avg_28","sample_avg_29","sample_avg_30","sample_avg_31","sample_avg_32","sample_avg_33","sample_avg_34","sample_avg_35","sample_avg_36","sample_avg_37","sample_avg_38","sample_avg_39","sample_avg_40","sample_avg_41","sample_avg_42","sample_avg_43","sample_avg_44","sample_avg_45","sample_avg_46","sample_avg_47","sample_avg_48","sample_avg_49","sample_avg_50","sample_avg_51","sample_avg_52","sample_avg_53","sample_avg_54","sample_avg_55","sample_avg_56","sample_avg_57","sample_avg_58","sample_avg_59","sample_avg_60","sample_avg_61","sample_avg_62","samp
@xujenna
xujenna / Midwest.geojson
Created January 19, 2019 22:50
data for d3 unconference sesh
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var config = {
apiKey: "AIzaSyAKb5zWHCkgmBlQvXu3ge_3uiQ5b8jK9g4",
authDomain: "tabcounter-3aab1.firebaseapp.com",
databaseURL: "https://tabcounter-3aab1.firebaseio.com",
projectId: "tabcounter-3aab1",
storageBucket: "",
messagingSenderId: "975979989799"
};
// The "firebase" variable is provided by the "firebase.js" script, which should
@xujenna
xujenna / analysis.txt
Created April 18, 2018 02:47
decoded bookmarklet + analysis
This bookmarklet selects all object, embed, applet, and iframe elements on a webpage, and replaces them with a div that that contains crossed-out text of the tag name that was removed.
@xujenna
xujenna / background.js
Created April 18, 2018 02:24
bookmarklet to chrome extension w3 hw
console.log('Content Script via Browser Action background page, version 1');
// Docs for 'onClicked' are here:
// https://developer.chrome.com/extensions/browserAction#event-onClicked
chrome.browserAction.onClicked.addListener(function() {
console.log('Clicked the browser action!');
chrome.tabs.executeScript({file: 'content_script.js'}, function() {
console.log('background script injected content_script');
});
@xujenna
xujenna / PB2002_boundaries.json
Last active February 9, 2023 05:38
earthquake map v2 with fault lines
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xujenna
xujenna / allday.json
Created April 6, 2018 13:02
earthquake mapping with mapbox gl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xujenna
xujenna / gaze_cleanup.csv
Last active March 21, 2018 18:09
pupil tracking while reading in a quiet environment
We can't make this file beautiful and searchable because it's too large.
gaze_point_3d_x,gaze_point_3d_y
-235.22765361289876,-19.461204695350027
-233.93348671375784,-19.200901621596863
-234.70203157326205,-20.29898065208215
-234.87120720974593,-17.481414092463623
-234.19002732382054,-18.307387070164104
-234.76415929016176,-18.61034395166685
-235.59641142009812,-19.604834605208232
-236.09892491713478,-19.499921601592646
-236.404583025989,-18.7406424403311
@xujenna
xujenna / index.html
Created March 18, 2018 17:44
Mindwandering Viz
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
/*css to go here*/
body {
font-family: monospace;
font-size: 11px;
background-size: cover;
background-color:#fff;