Skip to content

Instantly share code, notes, and snippets.

@wsmoak
wsmoak / LICENSE.md
Last active June 12, 2022 00:57
Spinning a servo with elixir_ale
@wsmoak
wsmoak / README.md
Last active May 20, 2017 03:02
Blink an external LED with elixir_ale

Blinky

@wsmoak
wsmoak / LICENSE.md
Last active January 9, 2016 14:22
Cat Feeder - moved from gist to https://github.com/wsmoak/cat_feeder
@wsmoak
wsmoak / LICENSE.md
Last active April 24, 2019 07:11
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

----> https://www.adafruit.com/product/2348

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
wsmoak / minty.ex
Last active February 14, 2016 13:37
Minty - parse and summarize transactions.csv from Mint
# Read the transactions.csv file from Mint and summarize it
defmodule Minty do
@amt 3
@drcr 4
@category 5
def read_it do
File.stream!("/Users/wsmoak/Downloads/transactions.csv")
@wsmoak
wsmoak / MyColors.elm
Last active March 15, 2016 12:52
Elm StartApp skeleton
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 }
$(document).ready(function(){
$.getScript( "https://d79i1fxsrar4t.cloudfront.net/jquery.liveaddress/2.8/jquery.liveaddress.min.js" )
.done(function( script, textStatus ) {
console.log( "liveaddress loaded " + textStatus );
var liveaddress = $.LiveAddress({
key: "01234567890",
debug: true,
autocomplete: 5,
autoVerify: false,