Skip to content

Instantly share code, notes, and snippets.

View mattak's full-sized avatar
👨‍💻
working

Takuma Maruyama mattak

👨‍💻
working
View GitHub Profile
@mattak
mattak / GeoHexPerformanceTest.cs
Last active May 29, 2016 05:25
Utility function for calculating performance.
using System;
using NUnit.Framework;
namespace GeoHex
{
[TestFixture]
public class GeoHexPerformanceTest
{
[Test]
public void Pow3Test()
@mattak
mattak / JsonPerformanceTest.cs
Created May 26, 2016 03:20
Json deserialization performance test in Unity3D.
using System;
using System.IO;
using Newtonsoft.Json;
using UnityEngine;
using UnityEditor;
using NUnit.Framework;
public class JsonPerformanceTest
{
[Serializable]
using UnityEngine;
namespace App
{
public class CameraFinder : MonoBehaviour
{
public Camera DisposeCamera;
private Canvas _canvas;
// Use this for initialization
@mattak
mattak / HelloPlugin.cs
Created March 18, 2016 02:56
UnityView transparent & touchable on Unity 5.3.3f1
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
public class HelloPlugin : MonoBehaviour
{
[DllImport ("__Internal")]
private static extern void hello_ ();
[DllImport ("__Internal")]
@mattak
mattak / dht11.c
Created March 13, 2016 15:22
dht11 datadog post sample
/*
* dht11.c:
* Simple test program to test the wiringPi functions
* DHT11 test
*/
#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
@mattak
mattak / Anchoko.md
Last active January 26, 2016 01:17
report for meetup.

キーワード

  • 非同期処理
  • 状態管理
  • UIとドメインレイヤーの分離
  • エコシステム
  • 言語
  • テスト
  • iOS / Androidのトレンド、これまでこれから
package me.mattak.example;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import rx.Observer;
import rx.Subscription;
import rx.subjects.PublishSubject;
@mattak
mattak / pem
Created September 15, 2015 04:20
create pem
#!bash -e
P12_FILE=${1}
BASE_FILE=${P12_FILE%.p12}
PEM_FILE=${BASE_FILE}.pem
PEM_KEY_FILE=${BASE_FILE}_key.pem
PEM_NOPASS_KEY_FILE=${BASE_FILE}_nopass_key.pem
PEM_CERT_FILE=${BASE_FILE}_cert.pem
@mattak
mattak / uninstallapp
Created July 23, 2015 23:37
uninstall apk
#!/usr/bin/env ruby
def peco(lines)
IO.popen('peco', 'r+') do |io|
lines.each { |line| io.puts line }
io.close_write
io.gets
end
end
@mattak
mattak / installapp
Created July 23, 2015 23:28
install apk from command line
#!/bin/bash -e
function _adb_install_devices() {
_APK=$1
for _device in $(adb devices | grep '\tdevice' | awk '{print $1}' | xargs echo)
do
echo adb -s $_device install -r $_APK
adb -s $_device install -r $_APK
done
}