Skip to content

Instantly share code, notes, and snippets.

View ButchAnton's full-sized avatar

Butch Anton ButchAnton

  • Coto de Caza, CA USA
View GitHub Profile
@ButchAnton
ButchAnton / Gemfile
Created October 16, 2015 00:45
Gems to add to all your projects.
group :development, :test do
gem 'meta_request'
gem 'better_errors' # better error in web browser
gem 'binding_of_caller' # required for better_errors
gem 'irbtools-more', require: 'binding.repl'
gem 'terminal-notifier'
gem 'ruby_gntp'
gem 'awesome_print'
gem 'jazz_fingers'
gem 'pry-byebug' # This may or may not work with 2.1.2 either, so remove if you still get errorrs
var b = require('bonescript');
//
// Set up the starting conditions
var awPin = ["P8_13", "P9_14", "P9_21"]; // these are PWM output pins
var awValue = [0.01, 0.99, 0.50]; // starting values for the pins - 0 < pin < 1.0
var awDirection = [1, - 1, - 1]; // used to set ascending or descending values
var awStep = [0.01, 0.005, 0.015]; // step sizes for PWM change in each loop
//
// Configure pins
for (var i = 0; i < 3; i++) {
var b = require('bonescript');
b.pinMode("P8_12", b.INPUT);
setInterval(check,100);
function check() {
b.digitalRead(pin, checkButton);
}
function checkButton(x) {
if (x.value == 1) {
U-Boot SPL 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
U-Boot 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
<!DOCTYPE html>
<html>
<head>
<title>Pragprog Books Online Store</title>
<%= stylesheet_link_tag "application", media: "all",
"data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
</head>
<body class="<%= controller.controller_name %>">
#---
# Excerpted from "Agile Web Development with Rails",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training material,
# courses, books, articles, and the like. Contact us if you are in doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
#---
module ApplicationHelper
def hidden_div_if(condition, attributes = {}, &block)
U-Boot SPL 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
U-Boot 2014.04-00014-g47880f5 (Apr 22 2014 - 13:23:54)

Keybase proof

I hereby claim:

  • I am ButchAnton on github.
  • I am butch (https://keybase.io/butch) on keybase.
  • I have a public key whose fingerprint is 7922 955F CE84 6E3E C21F B10D E857 97F4 24F7 E105

To claim this, I am signing this object:

% /Applications/Nitrous.app/Contents/MacOS/Nitrous
unknown: warning: already initialized constant IOSurfaceRef
/Applications/Nitrous.app/Contents/Frameworks/MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.2/ostruct.rb:136:in `block': undefined method `table' for class `OpenStruct' (NameError)
from /Applications/Nitrous.app/Contents/Frameworks/MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.2/ostruct.rb:33:in `<main>'
from /Applications/Nitrous.app/Contents/Resources/rb_main.rb:8:in `<main>'