# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
void setup () { | |
Serial.begin(57600); | |
Serial.println("\n[lipoVolt]"); | |
} | |
void loop () { | |
int millivolt = map(analogRead(6), 0, 1023, 0, 6600); | |
Serial.println(millivolt); | |
delay(1000); | |
} |
/** | |
* Illustrating correct & wrong inner border-radius | |
*/ | |
.outer { | |
padding: 10px; | |
margin: 50px; | |
border: 1px solid silver; | |
box-shadow: 0 0 10px gray; | |
border-radius: 20px; |
#!/bin/sh | |
SOURCE="" | |
if [ $# -gt 1 ] | |
then | |
SOURCE="--source ADF -l 3" | |
outname=$2 | |
pbreak=$1 |
/** | |
* Read Linux mouse(s) in node.js | |
* Author: Marc Loehe ([email protected]) | |
* | |
* Adapted from Tim Caswell's nice solution to read a linux joystick | |
* http://nodebits.org/linux-joystick | |
* https://github.com/nodebits/linux-joystick | |
*/ | |
var fs = require('fs'), |
guard 'rspec', :version => 2 do | |
watch(%r{^spec/.+_spec\.rb$}) | |
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch('spec/spec_helper.rb') { "spec" } | |
# Rails example | |
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | |
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } | |
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] } | |
watch(%r{^spec/support/(.+)\.rb$}) { "spec" } |
bash -c ' | |
<% if knife_config[:bootstrap_proxy] -%> | |
( | |
cat <<'EOP' | |
<%= "proxy = #{knife_config[:bootstrap_proxy]}" %> | |
EOP | |
) > ~/.curlrc | |
<% end -%> | |
if [ ! -f /usr/bin/chef-client ]; then |
First you need to ensure that VirtualBox is installed. Current vagrant release is not working with VirtualBox 4.x, so get a previous 3.2.x version (currently 3.2.10 which updates to 3.2.12) from http://www.virtualbox.org/wiki/Download_Old_Builds_3_2.
Next install the vagrant gem and download the Ubuntu 10.10 32-bit vagrant box I built up:
gem install vagrant
vagrant box add maverick32 http://dl.dropbox.com/u/2297268/maverick32.box
set :sync_directories, ["public/assets", "public/galleries"] | |
set :sync_backups, 3 |
set :sync_directories, ["public/assets", "public/galleries"] | |
set :sync_backups, 3 |