This file contains 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
#define DATAOUT 11//MOSI | |
#define DATAIN 12//MISO | |
#define SPICLOCK 13//sck | |
#define SLAVESELECT 10//ss | |
#define REGISTERSET 9 | |
// opcodes | |
#define CLR 1 | |
#define HOME 2 |
This file contains 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
def mock_uploader(file, type = 'image/png') | |
filename = "%s/%s" % [ File.dirname(__FILE__), file ] | |
uploader = ActionController::UploadedStringIO.new | |
uploader.original_path = filename | |
uploader.content_type = type | |
def uploader.read | |
File.read(original_path) | |
end | |
def uploader.size | |
File.stat(original_path).size |
This file contains 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
begin | |
gem 'ci_reporter' | |
rescue | |
$: << File.dirname(__FILE__) + "/../lib" | |
end | |
require 'ci/reporter/rake/rspec' | |
require 'ci/reporter/rake/test_unit' | |
module HudsonCompatibility |
This file contains 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
#define SHIFT_DATA 8 | |
#define SHIFT_CLK 9 | |
#define SHIFT_OUT 10 | |
#define LED 13 | |
#define PATTERN 0x5555 | |
unsigned int image[] = { | |
0x55AA, | |
0xAA55, | |
0x55AA, |
This file contains 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
# MySpace libs | |
%w( connection object | |
album detail friends friendship | |
interest mood photo profile status user video | |
).each(&method(:require)) | |
# Base libraries | |
%w( pp net/http cgi ).each(&method(:require)) |
This file contains 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
require 'autotest/fsevent' | |
require 'autotest/growl' | |
require 'redgreen/autotest' | |
# sudo gem install portmidi term_ansicolor | |
require 'launchpad/device' | |
require 'term/ansicolor' |
This file contains 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 :compass do | |
desc "Validate the sass files" | |
task :check do | |
require 'tmpdir' | |
FileUtils.rm_rf "public/stylesheets/compiled" | |
FileUtils.rm_rf "app/stylesheets/.sass-cache" | |
err_filename = File.join(Dir.tmpdir, 'compass_err.txt') | |
system "compass >/dev/null 2>#{err_filename}" | |
if (File.exist?(err_filename)) | |
err = File.read(err_filename) |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>JS1k, 1k demo submission [ID]</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<canvas id="c"></canvas> | |
<script> |
This file contains 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
"x[y][z]=1" # => {"x" => {"y" => {"z" => "1"}}} | |
"x[y][z][]=1" # => {"x" => {"z" => ["1"]} | |
"x[y][z]=1&x[y][z]=2" # => {"x" => {"z" => ["1", "2"]} | |
"x[y][z][]=1&x[y][z][]=2" # => {"x" => {"y" => {"z" => ["1", "2"]}} | |
"x[y][][z]=1" # => {"x" => {"y" => [{"z" => "1"}]}} |
This file contains 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
RestKitObjectMapping | |
/Users/jankrutisch/cocoa/RestKitTest/RestKit/Code/ObjectMapping/RKObjectPolymorphicMapping.m | |
/Users/jankrutisch/cocoa/RestKitTest/RestKit/Code/ObjectMapping/RKObjectPolymorphicMapping.m:69: error: no declaration of property 'delegateBlock' found in the interface | |
/Users/jankrutisch/cocoa/RestKitTest/RestKit/Code/ObjectMapping/RKObjectPolymorphicMapping.m:108:171: error: macro "NSAssert" passed 3 arguments, but takes just 2 | |
/Users/jankrutisch/cocoa/RestKitTest/RestKit/Code/ObjectMapping/RKObjectPolymorphicMapping.m:108: error: 'NSAssert' undeclared (first use in this function) | |
/Users/jankrutisch/cocoa/RestKitTest/RestKit/Code/ObjectMapping/RKObjectPolymorphicMapping.m:130: error: request for member 'delegateBlock' in something not a structure or union |
OlderNewer