July 2015
Note: the wiring-pi module for node.js is bindings around the c wiring-pi SDK, and not the same as wiring-pi
Locate the node-red root folder (where settings.js
is). You can use locate if it is installed
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
using UnityStandardAssets.ImageEffects; | |
public class ToggleImageEffect : MonoBehaviour { | |
public Toggle toggle; | |
private ImageEffectBase imageEffect; |
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
using UnityStandardAssets.ImageEffects; | |
public class ToggleImageEffect : MonoBehaviour { | |
public Toggle toggle; | |
private ImageEffectBase imageEffect; |
using UnityEngine; | |
using System.Collections; | |
public class LightToggler : MonoBehaviour { | |
[RangeAttribute(0.01f, 20.0f)] | |
public float toggleEvery = 1; | |
private float _lastToggle; | |
// Use this for initialization |
alias show_files='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' | |
alias hide_files='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app' | |
alias cls='clear' | |
alias tracert='traceroute' | |
alias lsusb='system_profiler SPUSBDataType' | |
alias server_here='sudo python -m SimpleHTTPServer 80' | |
alias git_orphan='git checkout --orphan' | |
alias ssh-nocheck='ssh -o UserKnownHostsFile=/dev/null' | |
alias subl='open -a /Applications/Sublime\ Text.app/' |
#include <functional> | |
#include <string> | |
#include <vector> | |
int main () { | |
std::string name; | |
std::vector<std::function<void(void)>> fns; |
#include <functional> | |
#include <string> | |
#include <vector> | |
int main () { | |
std::string name; | |
std::vector<std::function<void(void)>> fns; |
// Touch Board Example | |
// =================== | |
// Connects to a touch board and 'says' a word when a touch is detecte | |
// Modules | |
// ======= | |
var serialPort = require( 'serialport' ); | |
var Bacon = require( 'baconjs' ); | |
var W = require( 'w-js' ); | |
var say = require( 'say' ); |
// A most simple promise system, to explain promises | |
var p = promise( function ( resolve, reject ) { | |
// do async stuff here | |
fs.readFile( function ( err, file ) { | |
if ( err ) { | |
reject( new Error( 'it mucked up' ) ); | |
} else { | |
resolve( file ); | |
} |
#include "ThreadedCin.h" | |
#pragma mark - Lifecycle | |
ThreadedCin::ThreadedCin () { | |
latest = ""; | |
} | |
ThreadedCin::~ThreadedCin () { | |
stopThread(); |