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
Process: iWebInspector [83536] | |
Path: /Applications/iWebInspector.app/Contents/MacOS/iWebInspector | |
Identifier: mobi.firt.iWebInspector | |
Version: 0.9 (1) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [300] | |
Date/Time: 2012-02-25 12:28:36.535 -0800 | |
OS Version: Mac OS X 10.7.3 (11D50b) | |
Report Version: 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
#include "Time.h" | |
#include "SD.h" | |
#define SAMPLE_TIME 40 | |
#define ENTRIES_PER_FILE 25000 | |
#define DELAY_BETWEEN_FILES 2000 | |
#define BUTTON_PIN 9 | |
int running = 0; | |
int entries = 0; | |
File file; |
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 "Time.h" | |
#include "SD.h" | |
#define SAMPLE_TIME 40 | |
#define MAX_ENTRIES 100 | |
#define MAX_ENTRIES_PER_FILE 25000 | |
#define BUTTON_PIN 9 | |
int running = 0; | |
int entries = 0; | |
int entries_in_file = 0; |
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
# First, delete all the other bhrobotics directories. | |
# Then copy and paste these commands in order: | |
git clone [email protected]:CapnKernul/bhrobotics.com.git | |
cd bhrobotics.com | |
gem install bundler | |
gem install rails | |
bundle install | |
bundle exec rake db:migrate | |
rails server |
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
module God | |
module Contacts | |
class WebhookCallbacks < Webhook | |
def notify(message, time, priority, category, host) | |
data = { | |
:message => message, | |
:time => time, | |
:priority => priority, | |
:category => category, | |
:host => host |
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
# Install homebrew | |
ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)" | |
# Install git | |
brew install git | |
# Update homebrew | |
brew update | |
# Install homebrew packages |
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
# Let's assume that google has a Location header like the following: (It does) | |
# Location: http://www.google.com/ | |
# Let's create a new Response using RestClient. | |
response = Webbed::Response.new(RestClient.get 'http://google.com') | |
# Now, we can do this: | |
response.location # => "http://www.google.com/" | |
# Let's follow that URL. |
NewerOlder