Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
/* | |
A trivial Arduino sketch to mimic iRobot Virtual Wall for Roomba | |
---------------------------------------------------------------- | |
Based on information found at: | |
http://sites.google.com/site/irobotcreate2/createanirbeacon | |
Uses "A Multi-Protocol Infrared Remote Library for the Arduino": | |
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
package test; | |
import javafx.scene.*; | |
import javafx.scene.control.*; | |
public class FXUtils { | |
/** | |
* Find a {@link Node} within a {@link Parent} by it's ID. | |
* <p> |
Tricks to add encrypted private SSH key to .travis.yml file | |
To encrypt the private SSH key into the "-secure: xxxxx....." lines to place in the .travis.yml file, generate a deploy key then run: (to see what the encrypted data looks like, see an example here: https://github.com/veewee-community/veewee-push/blob/486102e6f508214b04414074c921475e5943f682/.travis.yml#L21 | |
base64 --wrap=0 ~/.ssh/id_rsa > ~/.ssh/id_rsa_base64 | |
ENCRYPTION_FILTER="echo \$(echo \"-\")\$(travis encrypt veewee-community/veewee-push \"\$FILE='\`cat $FILE\`'\" | grep secure:)" | |
split --bytes=100 --numeric-suffixes --suffix-length=2 --filter="$ENCRYPTION_FILTER" ~/.ssh/id_rsa_base64 id_rsa_ | |
#include <IRremote.h> | |
/* | |
Send infrared commands from the Arduino to the iRobot Roomba | |
by probono | |
2013-03-17 Initial release | |
//viewDidload | |
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { | |
// iOS 7 | |
[self prefersStatusBarHidden]; | |
[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)]; | |
} else { | |
// iOS 6 | |
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide]; | |
} |
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Insets; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.HBox; | |
import javafx.scene.text.Text; | |
import javafx.stage.Stage; |
buildscript { | |
repositories { | |
maven { | |
url "https://plugins.gradle.org/m2/" | |
} | |
} | |
dependencies { | |
classpath "com.gradle.publish:plugin-publish-plugin:0.9.1" | |
} | |
} |
import com.sun.javafx.scene.control.skin.ButtonSkin; | |
import com.sun.javafx.scene.control.skin.TextFieldSkin; | |
import javafx.application.Application; | |
import javafx.application.Platform; | |
import javafx.beans.property.*; | |
import javafx.embed.swing.SwingNode; | |
import javafx.scene.Node; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.*; |
/* | |
Read optical incremental rotary encoder output. | |
Serial output columns: | |
1. Absolute encoder position (pulses, integer) | |
2. Change in encoder position (pulses, integer) | |
3. Time since Arduino start in (microseconds, integer) | |
4. Change in time (microseconds, integer) | |
5. Speed (pulses per second, float) |