Skip to content

Instantly share code, notes, and snippets.

View thorikawa's full-sized avatar

Takahiro "Poly" Horikawa thorikawa

View GitHub Profile
@thorikawa
thorikawa / DynamicIllusionShader.shader
Created February 8, 2017 13:58
Shader script to gradual appearance.
Shader "Custom/DynamicIllusionShader" {
Properties{
_MainTex("Base (RGB)", 2D) = "white" {}
}
SubShader{
Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
Blend SrcAlpha OneMinusSrcAlpha
Pass{
CGPROGRAM
#pragma vertex vert
@thorikawa
thorikawa / japanese.txt
Last active March 8, 2022 00:07
日本語の文字コード範囲指定(ascii・ひらがな・カタカナ・頻出漢字)
32-128,12288-12543,12448-12543,65280-65519,19968,19971,19977,19978,19979,20013,20061,20108,20116,20154,20241,20808,20837,20843,20845,20870,20986,21147,21313,21315,21475,21491,21517,22235,22303,22805,22823,22825,22899,23376,23383,23398,23567,23665,24029,24038,24180,25163,25991,26085,26089,26376,26408,26412,26449,26519,26657,26862,27491,27671,27700,28779,29356,29577,29579,29983,30000,30007,30010,30333,30334,30446,30707,31354,31435,31481,31992,32819,33457,33609,34411,35211,35997,36196,36275,36554,37329,38632,38738,38899,19975,20024,20132,20140,20170,20250,20307,20309,20316,20803,20804,20809,20844,20869,20908,20992,20998,20999,21069,21271,21320,21322,21335,21407,21451,21476,21488,21512,21516,22238,22259,22269,22290,22320,22580,22768,22770,22799,22806,22810,22812,22826,22969,22985,23460,23478,23546,23569,23721,24037,24066,24112,24195,24215,24339,24341,24351,24369,24375,24403,24418,24460,24515,24605,25144,25165,25945,25968,26032,26041,26126,26143,26149,26172,26178,26228,26332,26360,26397,26469,26481,27005,27468,274
@thorikawa
thorikawa / pepper-mixpanel.py
Created October 12, 2015 01:55
モジュール追加などなしでPepperからmixpanelにイベントデータを送るためのボックス用スクリプト
import urllib2, json, base64, calendar, time
class MyClass(GeneratedClass):
def __init__(self):
GeneratedClass.__init__(self)
def onLoad(self):
#put initialization code here
pass
@thorikawa
thorikawa / SquareScores.java
Created April 2, 2015 05:31
TopCoder SRM654 DIV1
public class SquareScores {
double dpProb[][] = new double[1010][27];
double dpExp[][] = new double[1010][27];
public double calcexpectation(int[] p, String s) {
double prob[] = new double[26];
for (int i=0; i<26; i++) {
if (i < p.length) {
prob[i] = (double)(p[i]) / 100.0;
@thorikawa
thorikawa / bingtest.cpp
Last active August 29, 2015 14:14
Test code for ObjectnessBING
#include <opencv2/opencv.hpp>
#include <opencv2/saliency.hpp>
using namespace cv;
using namespace std;
using namespace saliency;
bool myfunction (int i, int j) { return (i<j); }
int main (int argc, const char * argv[]) {
@thorikawa
thorikawa / JULIETTEY20MP.urdf
Created December 26, 2014 11:58
Pepper's urdf
<?xml version="1.0"?>
<!--
This file is the urdf description of an Aldebaran Robotics robot.
It has been generated by robot_description tool available in the simulator-sdk.
For more information about urdf, see http://www.ros.org/wiki/urdf/
-->
<robot name="Juliette">
<material name="LightGrey">
<color rgba="0.9 0.9 0.9 1.0"/>
</material>
@thorikawa
thorikawa / blob_detect.py
Last active March 2, 2018 14:47
Pepperくんの3Dセンサーを利用して写真の背景除去を行うPythonスクリプト
import math, time
class MyClass(GeneratedClass):
def __init__(self):
GeneratedClass.__init__(self)
def onLoad(self):
#put initialization code here
self.memory = ALProxy('ALMemory')
self.video = ALProxy('ALVideoDevice')
@thorikawa
thorikawa / build.gradle
Created June 29, 2014 00:25
build.gradle for wearable
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.wearapp"
minSdkVersion 20
@thorikawa
thorikawa / features.txt
Last active August 29, 2015 14:03
Samsung Gear Live available features and sensors
06-27 23:55:34.683 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.bluetooth
06-27 23:55:34.683 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.bluetooth_le
06-27 23:55:34.683 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.faketouch
06-27 23:55:34.693 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.location
06-27 23:55:34.693 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.microphone
06-27 23:55:34.693 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.screen.portrait
06-27 23:55:34.693 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.sensor.accelerometer
06-27 23:55:34.693 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.sensor.compass
06-27 23:55:34.693 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.sensor.gyroscope
06-27 23:55:34.693 1479-1479/com.polysfactory.secondwear D/TEST﹕ android.hardware.sensor.heartrate
堀川 隆弘 (ほりかわ たかひろ)
東京大学理学部数学科卒。大手SIer・モバイルコンテンツ会社勤務を経て2012年に渡米。
aeria games, 米Yahooでモバイルアプリ開発に従事し、帰国後にcuriosityを創業。テクノロジーを活用した未来のエンターテインメント創出に取り組んでいる。
過去に個人開発したソフトウェアに、携帯シミュレーター「FireMobileSimulator」や、Google Glassで映画予告編を見るアプリ「Preview for Glass」などがある。
個人Twitter: https://twitter.com/thorikawa
curiosity, inc.: https://www.curiosity-inc.jp/