Skip to content

Instantly share code, notes, and snippets.

View JT5D's full-sized avatar
πŸ’­
Multiversing...

JT5D JT5D

πŸ’­
Multiversing...
View GitHub Profile
@JT5D
JT5D / gist:b190cd5f25f01edbaa13
Last active March 7, 2017 06:10 — forked from eklimcz-zz/gist:9973c7b97d4930d827c9
basic node app for ble scanner
var express = require('express');
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var scanner = io.of('/scanner');
scanner.on('connection', function(socket) {
console.log('Scanner Connected');
@JT5D
JT5D / gist:7c02b8ece5aa6cf39351
Last active August 29, 2015 14:27 — forked from eklimcz-zz/gist:225d4617cc10e40b3053
Basic scanning with Noble
var noble = require('noble');
//replace localhost with your server's IP;
var socket = require('socket.io-client')('http://localhost/scanner');
//replace with your hardware address
var addressToTrack = '7c669d9b2dda';
socket.on('connect', function(){
console.log('connected to server');
@JT5D
JT5D / gist:bf93052580234b21004c
Last active August 29, 2015 14:27 — forked from eklimcz-zz/gist:b37c05b29d9ac7cdd040
Noble basic scan
noble.startScanning();
noble.on(β€˜discover’, function(peripheral) {
var macAddress = peripheral.uuid;
var rss = peripheral.rssi;
var localName = advertisement.localName;
console.log('found device: ', macAdress, ' ', localName, ' ', rss);
}
@JT5D
JT5D / AI.cs
Last active August 29, 2015 14:25 — forked from yunojy/AI.cs
Unity Yome AI (Web Speech API、Docomo Dialogue API、Voice Text APIοΌ‰ http://2vr.jp/2014/12/23/unity-assets/
using UnityEngine;
using WebSocketSharp;
using System.Collections;
public class AI : MonoBehaviour {
private WebSocket ws_;
public string docomoAPIkey = "";
public string oreSay = "";
@JT5D
JT5D / pebble2.js
Last active August 29, 2015 14:25 — forked from hecomi/pebble2.js
simply.title('TSUBAKUMI');
simply.subtitle('Loading...');
var DEVICE_API_URL = 'http://192.168.0.6:23456';
var API_LIST_URL = 'http://192.168.0.6:23457/apis/pebble';
var apis = ['NO DATA'];
var index = parseInt(localStorage.getItem('index')) || 0;
var available = false;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Uniduino;
public class Accelerometer : MonoBehaviour
{
private Arduino arduino_;
public Transform target;
public Vector3 basePinValues = Vector3.zero;
using UnityEngine;
using System.Collections;
using System.IO.Ports;
using System.Threading;
public class SerialHandler : MonoBehaviour
{
public delegate void SerialDataReceivedEventHandler(string message);
public event SerialDataReceivedEventHandler OnDataReceived;
@JT5D
JT5D / ShapeRecognizer.cs
Last active August 29, 2015 14:25 — forked from hecomi/Detector.cs
ε›³ε½’γ‚’θͺθ­˜γ™γ‚‹γƒ€γƒ„
/*
The MIT License (MIT)
Copyright (c) 2014 hecomi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@JT5D
JT5D / server.js
Last active August 29, 2015 14:25 — forked from hecomi/server.js
SimSimi API と Web Speech API と Unity を぀γͺげるや぀
var http = require('http');
var https = require('https');
var querystring = require('querystring');
var fs = require('fs');
var ws = require('ws').Server;
var wss = [];
var HTTPS_PORT = 23456;
var UNITY_PORT = 12345;
var HTML_PATH = 'index.html';
@JT5D
JT5D / topkeywords.js
Last active August 29, 2015 14:25 — forked from elliotbonneville/topkeywords.js
Find top keywords associated with a Google search with this Node.js application.
var request = require("request"),
cheerio = require("cheerio"),
url = "https://www.google.com/search?q=data+mining",
corpus = {},
totalResults = 0,
resultsDownloaded = 0;
function callback () {
resultsDownloaded++;