Skip to content

Instantly share code, notes, and snippets.

@jdwall
jdwall / 0_reuse_code.js
Created May 24, 2016 23:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jdwall
jdwall / airlines.sql
Created August 28, 2016 22:04
Airlines
CREATE TABLE airlines(
ICAO VARCHAR(3) NOT NULL PRIMARY KEY
,IATA VARCHAR(2) NOT NULL
,Airline VARCHAR(52) NOT NULL
,Callsign VARCHAR(29)
,Country_of_Origin VARCHAR(26)
);
INSERT INTO airlines(ICAO,IATA,Airline,Callsign,Country_of_Origin) VALUES ('JOR','0B','Blue Air','Blue Transport','Romania');
INSERT INTO airlines(ICAO,IATA,Airline,Callsign,Country_of_Origin) VALUES ('AMB','1I','Deutsche Rettungsflugwacht','Civil Air Ambulance','Germany');
INSERT INTO airlines(ICAO,IATA,Airline,Callsign,Country_of_Origin) VALUES ('EJA','1I','Netjets','Execjet','USA');
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Circles</title>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
@jdwall
jdwall / world.json
Created December 20, 2016 01:56
world.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
id country state populationInThousands
3422 USA Texas 29960
3383 USA California 38800
Value Timestamp MetricId Unit Description Entity IntervalSecs
0.7 1/1/17 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
0.48 12/31/16 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
1.15 12/30/16 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
1.15 12/29/16 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
1.17 12/28/16 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
1.18 12/27/16 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
1.15 12/26/16 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
1.12 12/25/16 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
1.23 12/24/16 18:00 cpu.usage.average % CPU usage as a percentage during the interval php5_server 86400
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>11 Airports in 1 Flight</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.css' rel='stylesheet' />
<style>