Skip to content

Instantly share code, notes, and snippets.

View elliotthilaire's full-sized avatar

Elliott Hilaire elliotthilaire

View GitHub Profile
@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)

@albertstill
albertstill / deploy_to_staging.sh
Last active February 17, 2018 15:43
Build a static site from a Rails app using Wget and AWS S3
# precomile the static assets the HTML pages link to such as the .js, .css and .jpg files
RAILS_ENV=production bundle exec rake assets:precompile
# circleci has RAILS_ENV & RACK_ENV env variables set to test need to override. -d runs
# the server as a daemon.
RAILS_ENV=production RACK_ENV=production bundle exec rails s -d
# wait for server to load
sleep 10
@wsmoak
wsmoak / LICENSE.md
Last active June 12, 2022 00:57
Spinning a servo with elixir_ale
@Grathio
Grathio / gist:1210546
Created September 12, 2011 03:51
Nikon Arduino Remote
// ----- C -------
/**
* arduino Nikon IR remote
* @license Creative commons: Attribution-Noncommercial-Share Alike 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
* @author Aurelien ANTOINE
* version 1
* date 20081217
*
*
* This version modified by Steve Hoefer September 12, 2011
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')