This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| #include "Adafruit_LEDBackpack.h" | |
| #include "Adafruit_GFX.h" | |
| #include <SPI.h> | |
| #include <Adafruit_BLE_UART.h> | |
| #define ADAFRUITBLE_REQ 10 | |
| #define ADAFRUITBLE_RDY 3 | |
| #define ADAFRUITBLE_RST 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef __PACKET_H__ | |
| #define __PACKET_H__ | |
| #include <stdint.h> | |
| /* IMPORTANT!! | |
| This file defines the constants and packet structure for the communication | |
| between the router and the dispensers. These values are duplicated in | |
| the python code in ui/bartendro/router/driver.py. This should be improved | |
| at some point. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Call this from casperjs cli like this | |
| # casperjs pge_scrape.coffee --user=<your_username> --password=<your_password> | |
| # Works on Phantom 1.98 and Casper 1.1 beta | |
| casper = require('casper').create | |
| viewportSize: {width: 800, height: 600}, | |
| pageSettings: {webSecurityEnabled: false} | |
| user = casper.cli.get('user') | |
| password = casper.cli.get('pass') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe "actions on rails init" do | |
| # Tiffany should hook in to the rails init in development | |
| # mode and generate the specification | |
| before(:all) do | |
| # Generate a rails application | |
| @app_location = File.join(FileUtils.pwd,'spec') | |
| FileUtils.cd(@app_location) | |
| `rails test_app` | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'RMagick' | |
| include Magick | |
| class BoothPhoto | |
| IMAGES_ROWS = 2 | |
| BORDER = 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugin_root = File.expand_path("../../..", __FILE__) | |
| self.instance_eval File.read("#{plugin_root}/Gemfile") #Copying in the gem file from the parent | |
| gem 'the_name_of_the_gem_goes_here', :path => plugin_root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace "testbed" do | |
| RAPPNAME = "test_app" #This is also hardcoded in the spec/spec_helper.rb and gitignore file. Change it there too... | |
| desc "Install rails base app in spec dir" | |
| task :build_app do | |
| directory "spec" | |
| chdir("spec") do | |
| sh "rails #{RAPPNAME}" | |
| puts "Put a test_app in the spec folder" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Don't change this file! | |
| # Configure your app in config/environment.rb and config/environments/*.rb | |
| RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) | |
| module Rails | |
| class << self | |
| def boot! | |
| unless booted? | |
| preinitialize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To go in base of gem spec folder | |
| begin | |
| require "rubygems" | |
| require "bundler" | |
| rescue LoadError | |
| raise "Could not load the bundler gem. Install it with `gem install bundler`." | |
| end | |
| if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24") |
OlderNewer