Skip to content

Instantly share code, notes, and snippets.

View TomoakiNagahara's full-sized avatar

Tomoaki Nagahara TomoakiNagahara

View GitHub Profile
<?php
/**
* app.php
*
* There are web application that has been made in full scratch.
* Work in onepiece-framework.
*
* @creation 2015-11-12
* @version 1.0
* @package erabuhonyaku
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;
public class ExportAssetBundles : MonoBehaviour
{
[MenuItem("Assets/Unity 5.x Build AssetBundle")]
static void ExportResource_Unity5()
{
@TomoakiNagahara
TomoakiNagahara / file0.cs
Last active May 22, 2018 05:39
How to using UniWebView2 (UniWebView2の使用方法) ref: http://qiita.com/TomoakiNagahara/items/2785c85c7b416f88e08f
using UnityEngine;
using System.Collections;
public class Main : MonoBehaviour {
private UniWebView _webView;
private string _errorMessage;
// Use this for initialization
@TomoakiNagahara
TomoakiNagahara / file0.sh
Created May 18, 2015 06:22
pm2でプロセスを多重化しロードバランシングを行う ref: http://qiita.com/TomoakiNagahara/items/1a51bad888935c1c87f3
npm install pm2 -g
@TomoakiNagahara
TomoakiNagahara / app.js
Last active August 29, 2015 14:21
Socket.IO を PM2 でロードバランシングしたい ref: http://qiita.com/TomoakiNagahara/items/08e327e54a6f66c3fa38
var server = app.listen(3000, function() {
});
// 0.9系のsocket.io
var io = require('socket.io').listen(server);
// 0.9系のredis
var redis = require('socket.io/lib/stores/redis');
var redisConf = { host: '127.0.0.1', port: 6379 };
@TomoakiNagahara
TomoakiNagahara / file0.html
Last active August 29, 2015 14:21
oneiece-frameworkで簡単に多言語に対応しよう! ref: http://qiita.com/TomoakiNagahara/items/7340352bd3b0e700a17b
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="http://onepiece-framework.com/ja/js/i18n.js"></script>
<h1 class="i18n"><b>onepiece-framework</b> is insanely great!!</h1>
<p class="i18n">The translation was successful?</p>
@TomoakiNagahara
TomoakiNagahara / gist:060bbd7129b98aedf4bd
Last active August 29, 2015 14:11
Karabiner (Old name is Keyremap4macbook) Manipulate the mouse cursor on the keyboard.
<?xml version="1.0"?>
<root>
<item>
<name>Mouse Keys Mode Custom</name>
<appendix>You can move mouse pointer by d+hjkl keys, and scroll by d+s+hjkl keys.</appendix>
<appendix></appendix>
<appendix>Usage:</appendix>
<appendix></appendix>
<appendix>Move pointer by:</appendix>
<appendix><![CDATA[ * Left: D down -> L down -> H up ]]></appendix>
@TomoakiNagahara
TomoakiNagahara / gist:fd7910e3be8ce9999de4
Last active August 29, 2015 14:03
KeyRemap4MacBook
<?xml version="1.0"?>
<root>
<appdef>
<appname>PARALLELS</appname>
<equal>com.parallels.desktop.console</equal>
</appdef>
<appdef>
<appname>NETBEANS</appname>
<equal>org.netbeans.ide.baseide.201107282000</equal>
</appdef>