Skip to content

Instantly share code, notes, and snippets.

View chargify-smartystreets.js
$.getScript( "" )
.done(function( script, textStatus ) {
console.log( "liveaddress loaded " + textStatus );
var liveaddress = $.LiveAddress({
key: "01234567890",
debug: true,
autocomplete: 5,
autoVerify: false,
wsmoak / MyColors.elm
Last active Mar 15, 2016
Elm StartApp skeleton
View MyColors.elm
module MyColors where
import StartApp
import Html exposing (Html, Attribute, text, div)
import Html.Attributes exposing (style)
import Effects exposing (Effects, Never)
app =
StartApp.start { init = init, view = view, update = update, inputs = inputs }
wsmoak / minty.ex
Last active Feb 14, 2016
Minty - parse and summarize transactions.csv from Mint
View minty.ex
# Read the transactions.csv file from Mint and summarize it
defmodule Minty do
@amt 3
@drcr 4
@category 5
def read_it do!("/Users/wsmoak/Downloads/transactions.csv")
wsmoak /
Last active Apr 24, 2019
Turning a stepper motor with Elixir

Turny is an Elixir port of the Adafruit Python Library for DC + Stepper Motor HAT, which is a Python library for interfacing with the Adafruit Motor HAT for Raspberry Pi to control DC motors with speed control and Stepper motors with single, double, interleave and microstepping, designed specifically to work with the Adafruit Motor Hat


Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried for Adafruit Industries. MIT license, all text above must be included in any redistribution

The MIT License (MIT)

wsmoak /
Last active May 20, 2017
Blink an external LED with elixir_ale
wsmoak /
Last active Mar 6, 2019
Spinning a servo with elixir_ale
wsmoak / gist:c967f757851076fe71e9
Created Sep 27, 2015
Building the Elixir docs
View gist:c967f757851076fe71e9
Building the documentation requires ExDoc to be installed and built in the same containing folder as Elixir.
# After cloning and compiling Elixir
git clone git://
cd ex_doc && ../elixir/bin/mix do deps.get, compile
cd ../elixir && make docs
wsmoak / gist:299c81607dcd1306a048
Last active Sep 7, 2015
elixir test failure with different version number
View gist:299c81607dcd1306a048
PROBLEM: Changing the version number makes a bunch of tests fail
SOLUTION: Avoid adding a newline to the VERSION file. Edit with `vim -b VERSION`.
$ git remote -v
origin (fetch)
origin (push)
$ git log | head
commit 1660d7d5c910e479d2db8963c3b9766183a89b64
wsmoak / gist:f5fd090df809e87a13fb
Last active Sep 7, 2015
Example.Rmd showing executable Elixir code in Tufte Handout RMarkdown format
View gist:f5fd090df809e87a13fb
title: "Executable Elixir in Tufte Handout"
author: "Wendy Smoak"
date: "September 1, 2015"
output: rmarkdown::tufte_handout
```{r setup, echo=FALSE}
# Adapted from
# Licensed CC-BY-SA
You can’t perform that action at this time.