Skip to content

Instantly share code, notes, and snippets.

View asus4's full-sized avatar
:octocat:
Working from home

Koki Ibukuro asus4

:octocat:
Working from home
View GitHub Profile
@akisute
akisute / NetworkInformation.h
Created November 4, 2010 07:28
NetworkInformation.h Objective-C class to retrieve network information. Licensed under MIT License.
//
// NetworkInformation.h
//
// Created by akisute on 10/10/07.
// Copyright 2010 株式会社ビープラウド.
/*
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@inspirit
inspirit / HomographyDecomposition.as
Created December 14, 2010 19:57
Decompose Homography into Rotation matrix & Translation vector
var intrinsic:Vector.<Number> = new Vector.<Number>(9, true);
var intrinsicInverse:Vector.<Number> = new Vector.<Number>(9, true);
var R:Vector.<Number> = new Vector.<Number>( 9, true );
var t:Vector.<Number> = new Vector.<Number>( 3, true );
// SVD routine
var svd:SVD = new SVD();
// input homography[9] - 3x3 Matrix
@TonnyXu
TonnyXu / include.h
Created September 18, 2011 06:22
the #include directive
// Refer to http://msdn.microsoft.com/en-us/library/36k2cdd4(v=vs.80).aspx
/* Tonny's NOTE
* ------------
* Sep 18, 2011
*
* 1. このファイルが存在しているフォルダ ->
* 2. "header.h"をインクルードしたその他のファイルが存在しているフォルダ ->
* 3. コンパイラの /I に指定したフォルダ ->
* 4. 環境関数のINCLUDEに指定したフォルダ
@keijiro
keijiro / AndroidManifest.xml
Created November 25, 2011 04:56
Development Player Android Manifest file (Unity 3.4.2)
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
#!/usr/local/bin/macruby
require 'rubygems'
require 'xcodeproj'
projpath = ARGV[0] + "/Unity-iPhone.xcodeproj"
proj = Xcodeproj::Project.new(projpath)
proj.targets.each do |target|
next unless target.name == "Unity-iPhone"
target.buildConfigurations.each do |config|
@mash
mash / index.tx
Created December 14, 2011 05:17
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
</head>
<body>
<script>
$( function() {
$.getScript("http://platform.twitter.com/widgets.js", function(){
@jstanden
jstanden / gist:1489447
Last active February 21, 2023 20:56
Simplex Noise in C# for Unity3D - Adapted from James Livingston's MinePackage: http://forum.unity3d.com/threads/minepackage-minecraft-starter-package.69573/
using UnityEngine;
using System.Collections;
public class SimplexNoiseGenerator {
private int[] A = new int[3];
private float s, u, v, w;
private int i, j, k;
private float onethird = 0.333333333f;
private float onesixth = 0.166666667f;
private int[] T;
@dnpp73
dnpp73 / xcode4shortcut.md
Created March 20, 2012 12:16
Xcode 4 で俺がよく使うショトカまとめ

作業エリアのショトカなど


  • 左のエリアのアレ切り替え
    Cmd + [0-7]

  • 右のエリアのアレ切り替え
    Cmd + Option + [0-2]

  • 右のエリアのアレ切り替えその二

@asus4
asus4 / CreateTool.cs
Last active October 6, 2015 09:08
Editor Utility Tool
using UnityEngine;
using UnityEditor;
using System.Collections;
/// <summary>
/// Editor Utility tool.
/// author koki ibukuro
/// </summary>
public class CreateTool : ScriptableObject {