Skip to content

Instantly share code, notes, and snippets.

Stuart Lynn stuartlynn

  • Adler Planetarium
  • Brooklyn
Block or report user

Report or block stuartlynn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@stuartlynn
stuartlynn / script.js
Created Jul 31, 2019
OpenJSCad data vis tutorial
View script.js
data = {"1880": [-0.3, -0.21, -0.18, -0.27, -0.14, -0.29, -0.24, -0.08, -0.17, -0.16, -0.19, -0.22], "1881": [-0.1, -0.14, 0.01, -0.03, -0.04, -0.28, -0.07, -0.03, -0.09, -0.2, -0.26, -0.16], "1882": [0.09, 0.08, 0.01, -0.2, -0.18, -0.25, -0.11, 0.03, -0.01, -0.23, -0.21, -0.25], "1883": [-0.34, -0.42, -0.18, -0.25, -0.26, -0.13, -0.09, -0.14, -0.19, -0.12, -0.21, -0.19], "1884": [-0.18, -0.13, -0.36, -0.36, -0.32, -0.38, -0.35, -0.27, -0.24, -0.22, -0.3, -0.3], "1885": [-0.66, -0.3, -0.24, -0.45, -0.42, -0.5, -0.29, -0.27, -0.19, -0.2, -0.22, -0.07], "1886": [-0.43, -0.46, -0.41, -0.29, -0.27, -0.39, -0.16, -0.31, -0.19, -0.25, -0.26, -0.25], "1887": [-0.66, -0.48, -0.32, -0.37, -0.33, -0.21, -0.19, -0.28, -0.19, -0.32, -0.25, -0.38], "1888": [-0.43, -0.43, -0.47, -0.28, -0.22, -0.2, -0.1, -0.11, -0.07, 0.01, 0.0, -0.12], "1889": [-0.21, 0.14, 0.04, 0.04, -0.03, -0.12, -0.05, -0.18, -0.18, -0.22, -0.32, -0.31], "1890": [-0.48, -0.48, -0.41, -0.38, -0.48, -0.27, -0.3, -0.36, -0.36, -0.23, -0.37, -0.3], "1891"
@stuartlynn
stuartlynn / script.js
Last active Jul 31, 2019
Temperature Anomaly sculpture
View script.js
// title : OpenJSCAD.org Logo
// author : Rene K. Mueller
// license : MIT License
// revision : 0.003
// tags : Logo,Intersection,Sphere,Cube
// file : logo.jscad
data = {"1880": [-0.3, -0.21, -0.18, -0.27, -0.14, -0.29, -0.24, -0.08, -0.17, -0.16, -0.19, -0.22], "1881": [-0.1, -0.14, 0.01, -0.03, -0.04, -0.28, -0.07, -0.03, -0.09, -0.2, -0.26, -0.16], "1882": [0.09, 0.08, 0.01, -0.2, -0.18, -0.25, -0.11, 0.03, -0.01, -0.23, -0.21, -0.25], "1883": [-0.34, -0.42, -0.18, -0.25, -0.26, -0.13, -0.09, -0.14, -0.19, -0.12, -0.21, -0.19], "1884": [-0.18, -0.13, -0.36, -0.36, -0.32, -0.38, -0.35, -0.27, -0.24, -0.22, -0.3, -0.3], "1885": [-0.66, -0.3, -0.24, -0.45, -0.42, -0.5, -0.29, -0.27, -0.19, -0.2, -0.22, -0.07], "1886": [-0.43, -0.46, -0.41, -0.29, -0.27, -0.39, -0.16, -0.31, -0.19, -0.25, -0.26, -0.25], "1887": [-0.66, -0.48, -0.32, -0.37, -0.33, -0.21, -0.19, -0.28, -0.19, -0.32, -0.25, -0.38], "1888": [-0.43, -0.43, -0.47, -0.28, -0.22, -0.2, -0.1, -0.11, -0.07, 0.01, 0.0, -0.12
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Add layer | CARTO</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<!-- Include CARTO VL JS -->
<script src="http://libs.cartocdn.com/carto-vl/v0.7.0/carto-vl.js"></script>
<!-- Include Mapbox GL JS -->
<script src="https://libs.cartocdn.com/mapbox-gl/v0.48.0-carto1/mapbox-gl.js"></script>
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>DiviBikes</title>
<script src="https://cartodb.github.io/carto-vl/dist/carto-vl.js"></script>
<script src="https://cartodb.github.io/carto-vl/vendor/mapbox-gl-dev.js"></script>
<link href="https://cartodb.github.io/carto-vl/vendor/mapbox-gl-dev.css" rel="stylesheet" />
<style type="text/css" media="screen">
View gist:917134f00520468968416dc301788815
https://drive.google.com/a/cartodb.com/file/d/17A_2lnY6C1x18Wl26R_Tb4lh1lKmaswM/view?usp=sharing
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- Bootstrap -->
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
@stuartlynn
stuartlynn / GettingStarted.ipynb
Created Sep 7, 2017
CartoFramesGettingStarted
View GettingStarted.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View zappa_settings.json
{
"dev": {
"app_function": "plotter.app",
"s3_bucket": "zappa-888fe0qlm",
"slim_handler": true
}
}
View setup_venv.sh
virtualenv env
source env/bin/activate
pip install zappa requests pandas matplotlib flask
You can’t perform that action at this time.