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 / .gitignore
Created May 1, 2018 14:58
My .gitignore of ~/Library/Preferences/Rider2017.3
port
port.lock
resharper-host/UsageStatistics/
rider.key
disabled_plugins.txt
tasks/
# options
options/recentSolutions.xml
options/recentSolutionsConfiguration.xml
//==============================================================================
//
// Emoji Filtering: unicode magic
#if FILTER_EMOJIS_IOS_KEYBOARD
static bool StringContainsEmoji(NSString *string)
{
__block BOOL returnValue = NO;
[string enumerateSubstringsInRange:NSMakeRange(0, string.length)
@mattak
mattak / Dockerfile
Created February 21, 2017 12:12
dockerfile for tileserver-mapnik
FROM buildpack-deps:xenial
MAINTAINER Takuma Maruyama <mattak.me@gmail.com>
# Based on work by Petr Sloup
# node setup
# ------------------
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
{
"name": "tessera-sample",
"version": "0.0.1",
"description": "tessera example",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "mattak",
"license": "MIT",
using System;
using Unidux;
namespace App.Business
{
[Serializable]
public class State : StateBase<State>
{
public LocationState Location;
public LogState Log;
using UniRx;
using UnityEngine;
namespace App.UI
{
public class GoalSeRenderer : MonoBehaviour
{
public AudioSource AudioSource;
void Start()
using System.Diagnostics;
using App.Business;
using Unidux;
using UniRx;
namespace App.UI
{
public partial class Unidux : SingletonMonoBehaviour<Unidux>
{
private Store<State> _store;
Shader "Custom/IntensiveLine"
{
Properties
{
_LineWidth("LineWidth", Range(0,1)) = 0.5
_CenterRadius("CenterRadius", Range(0,1)) = 0.5
}
SubShader
{
@mattak
mattak / run-editor-test.sh
Last active July 28, 2016 00:09
Unity test runner
#!/bin/bash
CMD=/Applications/Unity/Unity.app/Contents/MacOS/Unity
LOG=/tmp/unity.log
PROJECT_DIR=`pwd`
$CMD \
-batchmode \
-logfile $LOG \
@mattak
mattak / LazyResource.cs
Created July 27, 2016 09:00
Lazy load for Unity Resource
using UnityEngine;
public class LazyResource<T> where T : UnityEngine.Object
{
public T _value;
public T Value
{
get
{
if (_value == null)