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 <SoftwareSerial.h> | |
#include <Adafruit_NeoPixel.h> | |
SoftwareSerial softSerial(3, 4); // RX, TX | |
#define BUFFER_SIZE 50 |
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
//box length | |
length = 104; | |
//breadth | |
breadth = 30; | |
//box height | |
height = 30; | |
// top height |
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 <SoftwareSerial.h> | |
#define DST_IP "192.168.1.2" | |
#define DST_PORT 8888 | |
SoftwareSerial serial(3, 4); // RX, TX | |
int blinkPin = 0; | |
int vibrationDetectorPin = A1; |
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
config = require '../config' | |
config.setEnvironment 'development' | |
fs = require 'fs' | |
path = require 'path' | |
colors = require 'colors' | |
github = require 'octonode' | |
client = github.client | |
id : config.GITHUB_CLIENT_ID |
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
$(-> | |
address_from = params['from'] | |
address_to = params['to'] | |
map = null | |
latlngFrom = null | |
latlngTo = null | |
animLatLng = null | |
currStatus = 'zoomOut' | |
intervalId = -1 |
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
inline bool isPointInsideBox(const ofPoint &p, ofBoxPrimitive& c){ | |
ofPoint tp = p - c.getPosition(); | |
tp = tp * c.getGlobalTransformMatrix().getInverse().getRotate(); | |
if (fabs(tp.x) > c.getWidth()*0.5 | |
|| fabs(tp.y) > c.getHeight()*0.5 | |
|| fabs(tp.z) > c.getDepth()*0.5){ | |
return false; | |
} | |
return true; | |
} |
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
import bpy | |
from mathutils import Vector | |
from mathutils import Quaternion | |
from bpy.types import ToolSettings | |
from OSC import OSCServer | |
import types | |
# this method of reporting timeouts only works by convention | |
# that before calling handle_request() field .timed_out is | |
# set to False |
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
cmake_minimum_required(VERSION 2.6 FATAL_ERROR) | |
project(correspondence_grouping_openni) | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../bin/") | |
set(PCL_DIR "/Users/kikko/Dev/kinect/pcl/pcl-trunk/build/") | |
find_package(PCL 1.5 REQUIRED) | |
include_directories(${PCL_INCLUDE_DIRS}) |
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
# DESCRIPTION: | |
# A simple zsh configuration that gives you 90% of the useful features that I use everyday. | |
# | |
# AUTHOR: | |
# Geoffrey Grosenbach http://peepcode.com | |
############ | |
# FUNCTIONS | |
############ |
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
package; | |
import flash.display.Shape; | |
import flash.events.Event; | |
import flash.events.IOErrorEvent; | |
import flash.display.Sprite; | |
import flash.events.MouseEvent; | |
import flash.external.ExternalInterface; | |
import flash.text.TextField; | |
import flash.text.TextFieldAutoSize; |