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
/** | |
* To class Observable | |
* | |
*/ | |
function Observable() {} | |
Observable.prototype = { | |
/** | |
* |
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
#ifndef _NEOCOS | |
#define _NEOCOS | |
#include "ofMain.h" | |
#include "ofxOpenNI.h" | |
#include "myDepthGenerator.h" | |
class neocos : public ofBaseApp{ |
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
#!/bin/bash | |
sudo locale-gen ja_JP.UTF-8 | |
sudo update-locale LANG=ja_JP.UTF-8 | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo apt-get -y install zsh | |
sudo apt-get -y install screen | |
sudo apt-get -y install vim |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var rpcMethods = require('./methods.js'); | |
var app = module.exports = express.createServer(); | |
// Configuration |
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
-(NSString*)locationString:(CLLocation *)newLocation { | |
NSDateFormatter * formatter = [[[NSDateFormatter alloc] init] autorelease]; | |
[formatter setTimeStyle:NSDateFormatterMediumStyle]; | |
return [NSString stringWithFormat:@"(%@) Location %.06f %.06f %@", ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) ? @"bg" : @"fg", newLocation.coordinate.latitude, newLocation.coordinate.longitude, [formatter stringFromDate:newLocation.timestamp]]; | |
} | |
- (void)locationManager:(CLLocationManager *)manager | |
didUpdateToLocation:(CLLocation *)newLocation | |
fromLocation:(CLLocation *)oldLocation | |
{ |
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
// For node-mongodb-native (npm install mongodb) | |
var mongodb = require('mongodb'); | |
var MongoTransaction = function(db) { | |
this.db = db; | |
this.queue = []; | |
this.running = false; | |
this.failureFn = function(){}; | |
} |
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
`--> sudo npm install mongodb | |
npm info it worked if it ends with ok | |
npm info using [email protected] | |
npm info using [email protected] | |
npm info preinstall [email protected] | |
npm info install [email protected] | |
uname: illegal option -- o | |
usage: uname [-amnprsv] | |
Not building native library for cygwin | |
make -C ./external-libs/bson |
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
chsh -s /opt/local/bin/zsh | |
mkdir dev | |
cd dev | |
hg clone https://bitbucket.org/hagino_3000/confs | |
cd confs | |
./pull.sh |
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
#include <stdlib.h> | |
#include <stdexcept> | |
#include <iostream> | |
#include <XnCppWrapper.h> | |
#include <XnUSB.h> | |
#define VID_MICROSOFT 0x45e | |
#define PID_NUI_MOTOR 0x02b0 | |
XN_USB_DEV_HANDLE dev; |
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> | |
<meta charset="UTF-8"> | |
<title>HTML file template</title> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.8.0/build/reset/reset-min.css" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> | |
</head> | |
<body> | |
</body> |
OlderNewer