Skip to content

Instantly share code, notes, and snippets.

View simongle's full-sized avatar

Simon Glenn-Gregg simongle

View GitHub Profile
@simongle
simongle / index.html
Last active June 6, 2016 22:58
d3 - Class 1
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
/*css to go here*/
svg {
border: 2px solid #000;
}
@simongle
simongle / .gistup
Created June 7, 2016 02:39
Class 2
gistup
@simongle
simongle / index.html
Last active July 17, 2017 18:28
Map of AirBnB hosts with multiple listings in NYC, made with D3js
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
.neighbourhoods {
stroke: grey;
fill: #e5c494;
fill-opacity: 0.2;
}
@simongle
simongle / index.html
Created July 15, 2016 15:09
Turkey General Elections 2007-2015
<!DOCTYPE html>
<html>
<head>
<title>Turkey Election Results 2007 - 2015</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
@simongle
simongle / index.html
Last active August 15, 2016 19:40
Diversity of Morris Township, NJ
<!DOCTYPE html>
<html>
<head>
<title>Morristown Diversity | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
@simongle
simongle / program.js
Last active May 19, 2017 19:54
Learnyounode exercises
console.log("HELLO WORLD");
@simongle
simongle / chapter_post.sh
Created July 23, 2017 20:06
Bash script for reading data from JSON and posting it to a CMS using automated cURL requests
#!/bin/bash
length=$(jq 'length' new_ids.json)
for i in `seq $length`; do
name=$(jq '.['"$i"'].name' new_ids.json | sed 's/.$//' | sed 's/^.//')
password=$(jq '.['"$i"'].password' new_ids.json | sed 's/.$//' | sed 's/^.//')
email=$(jq '.['"$i"'].email' new_ids.json | sed 's/.$//' | sed 's/^.//')
chapter_id=$(jq '.['"$i"'].chapter_id' new_ids.json | sed 's/.$//' | sed 's/^.//')
@simongle
simongle / SettingupPGPandGit.md
Last active September 18, 2023 13:38
A guide for PGP and Git

Setting up PGP with Git

#PGP

If you are reading this, you have taken the first step towards encryption self-righteousness. The steps below are my preferred method for configuration after years of suffering through alternative, more archaic/byzantine steps.

Note, if you already have a PGP key, skip to step #4. Second note: I know UNIX best, so I’m not going to embarrass myself by attempting to write a windows guide. The good people over at EFF have your back: How to: Use PGP for Windows | Surveillance Self-Defense

[A point of clarification: PGP stands for pretty good privacy and is the original underlying protocol, GPG stands for Gnu Privacy Guard, and is an open source program that is compliant with PGP; the two acronyms are often used interchangeably.]

  1. Download your GPG client

Keybase proof

I hereby claim:

  • I am simongle on github.
  • I am simongle (https://keybase.io/simongle) on keybase.
  • I have a public key ASDj8jmaWQwPbDWZQFTeJPiaYC0BTBcJJEwYfjM8EaVTGQo

To claim this, I am signing this object: