Skip to content

Instantly share code, notes, and snippets.

Max Goldstein mgold

Block or report user

Report or block mgold

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
@mgold
mgold / .block
Last active Jun 14, 2017
Wheat Plot
View .block
license: mit
View .block
license: mit
@mgold
mgold / .block
Last active Jan 5, 2017
Zukei Puzzle Solver
View .block
license: mit
@mgold
mgold / .block
Last active Dec 2, 2016
Ellipse Interpolation
View .block
license: mit
@mgold
mgold / .block
Created Jul 22, 2016
Basis Vectors
View .block
license: gpl-3.0
@mgold
mgold / README.md
Last active Apr 17, 2016
Brady Campaign vs. the NRA on Senators
View README.md

This scatterplot shows how the pro-gun NRA and the pro-gun-control Brady Campaign rank U.S. senators. The size of the dot is proportional to the number of senators; hover over to see them. Not surprisingly, there's a strong negative correlation.

Each scatter dot is actually a pie chart, but I am saved from the wrath of the datavis gods by political polarization: there are no Democrats and Republicans that share a stance.

The data were surpringly hard to come by but were sourced from VoteSmart (Brady) and The Washington Post (NRA).

Built with blockbuilder.org.

@mgold
mgold / elmpackager.rb
Created Mar 24, 2016
A script to help installing elm packages.
View elmpackager.rb
require "json"
require "net/http"
require "uri"
def download(name)
puts "Installing " + name
`elm package install #{name} --yes`
end
def prompt(instructions)
@mgold
mgold / Main.elm
Created Feb 22, 2016
Toggle in Elm
View Main.elm
module Main (..) where
import Color
import Date exposing (Date)
import Task exposing (Task)
import Json.Decode
import Html exposing (Html, div, tr, td, th)
import Html.Attributes as Attrs exposing (class)
import Html.Events exposing (onClick, on)
import StartApp exposing (start)
@mgold
mgold / SuperTimer.elm
Created Feb 12, 2016 — forked from shamrin/SuperTimer.elm
Restartable timer
View SuperTimer.elm
module SuperTimer where
import Html exposing (..)
import Html.Events exposing (onClick)
import Time exposing (Time)
import Signal exposing (Address)
type Action = Tick Time | Toggle Bool | NoOp
type alias Model = { running: Bool, count: Float}
@mgold
mgold / .block
Last active May 26, 2018
65 Years
View .block
license: mit
You can’t perform that action at this time.