Skip to content

Instantly share code, notes, and snippets.

View haiatto's full-sized avatar

haiatto

View GitHub Profile
@haiatto
haiatto / ReadMe.md
Last active August 22, 2019 18:33
M5Stack connect M5StickV

M5StickV == JPG => M5Stack

  • Grove Cable Serial 1.25Mbps で通信してみるコードの断片です(PlatformIOとかで動かすと簡単です)
  • 時々画像が壊れるのですが原因はよくわかってません。
  • qualityを下げるとFPSが上がります。(ボトルネックは通信速度)

google translate ==>

  • This is a code fragment that tries to communicate with Grove Cable Serial 1.25Mbps (it is easy to move with PlatformIO)
@haiatto
haiatto / ForceBuildHoloToolkit_NotWSA.cs
Created May 1, 2017 16:11
HololensToolkitを置いておくだけで他の環境がビルドエラーになるのをとりあえずダーティーな方法で防いでみるコード
#if !UNITY_EDITOR && !UNITY_WSA //#if !UNITY_WSA
using System;
using UnityEngine.Scripting;
namespace UnityEngine.VR.WSA.Input
{
public enum InteractionSourceKind
{
Other = 0,
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
#config.vm.box = "ubuntu/trusty64"
@haiatto
haiatto / app.js
Created July 17, 2014 01:00
前にWebSocketで通信のテストした時のコード
var http = require('http');
var fs = require('fs');
var WSServer = require('websocket').server;
var url = require('url');
var clientHtml = require('fs').readFileSync('client.html');
var plainHttpServer = http.createServer( function(req, res) {
res.writeHead(200, { 'Content-Type': 'text/html'});
res.end(clientHtml);