Skip to content

Instantly share code, notes, and snippets.

View Terit's full-sized avatar
💭
🎉 🍁

Andy Theriault Terit

💭
🎉 🍁
View GitHub Profile
// Keyboard - Version: Latest
#include <Keyboard.h>
#include <Encoder.h>
// Change these pin numbers to the pins connected to your encoder.
// Best Performance: both pins have interrupt capability
// Good Performance: only the first pin has interrupt capability
// Low Performance: neither pin has interrupt capability
Encoder knobOne(5, 6);
#!/bin/sh
# Download Mirth installer
curl https://s3.amazonaws.com/downloads.mirthcorp.com/connect/3.9.0.b2526/mirthconnect-3.9.0.b2526-unix.sh \
--silent \
--output mirthconnect-3.9.0.b2526-unix.sh
# Make it runnable
chmod +x mirthconnect-3.9.0.b2526-unix.sh

Keybase proof

I hereby claim:

  • I am terit on github.
  • I am terit (https://keybase.io/terit) on keybase.
  • I have a public key ASD4vU3wsfQfbDtatVVXh0DlULkutEL2bAFrZbq-MHpGUQo

To claim this, I am signing this object:

@Terit
Terit / readme.md
Created November 3, 2014 18:46
RSpec Legacy fix

Insert your code into any spec_helper.rb file to remove this legacy error:

Deprecation Warnings:

Using should from rspec-expectations' old :should syntax without explicitly enabling the syntax is deprecated. Use the new :expect syntax or explicitly enable :should instead. Called from /Users/andrewtheriault/lighthouse/week_1/day_6/rspec/spec/book_spec.rb:10:in `block (3 levels) in <top (required)>'.

If you need more of the backtrace for any of these deprecations to identify where to make the necessary changes, you can configure config.raise_errors_for_deprecations!, and it will turn the

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@Terit
Terit / gist:3ac1f00bdb648897fcdb
Created October 28, 2014 18:19
Interactive Ruby(Practice)
vagrant [ruby_fun]> irb
2.1.3 :001 > def say_hi
2.1.3 :002?> name = gets.chomp
2.1.3 :003?> "Hi, #{name}"
2.1.3 :004?> end
=> :say_hi
2.1.3 :005 > def say_hi(name)
2.1.3 :006?> "Hi, #{name}"
2.1.3 :007?> end
=> :say_hi