This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Fontmin = require('fontmin'); | |
var concat = require('fontmin-concat'); | |
// var fontmin = new Fontmin() | |
// .src('otfs/*.otf') | |
// .use(Fontmin.otf2ttf()) | |
// .dest('ttfs'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gits="git status" | |
alias gitf="git fetch --prune" | |
alias gitfm="git fetch --prune && git fetch origin master:master" | |
alias git-repush="git fetch --prune && git rebase origin/master && git push origin HEAD -f" | |
alias gitp="git push origin `git symbolic-ref -q HEAD`" | |
alias gitpf="git push origin `git symbolic-ref -q HEAD` -f" | |
alias gitrs="git reset --hard && git clean -f -d" | |
alias gitrb="git reset --hard && git rebase origin/master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
namespace AnySettings | |
{ | |
[InitializeOnLoad] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shift-JIS Kanji Table | |
81 3f | 、 。 , . ・ : ; ? ! ゛ ゜ ´ ` ¨ | |
81 4f | ^  ̄ _ ヽ ヾ ゝ ゞ 〃 仝 々 〆 〇 ー ― ‐ / | |
81 5f | \ ~ ∥ | … ‥ ‘ ’ “ ” ( ) 〔 〕 [ ] | |
81 6f | { } 〈 〉 《 》 「 」 『 』 【 】 + - ± × | |
81 80 | ÷ = ≠ < > ≦ ≧ ∞ ∴ ♂ ♀ ° ′ ″ ℃ ¥ | |
81 90 | $ ¢ £ % # & * @ § ☆ ★ ○ ● ◎ ◇ | |
81 9e | ◆ □ ■ △ ▲ ▽ ▼ ※ 〒 → ← ↑ ↓ 〓 | |
81 ae | ∈ ∋ ⊆ ⊇ ⊂ ⊃ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
text-size-adjust: 100%; | |
color: #333; | |
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif; | |
font-size: 16px; | |
line-height: 1.6; | |
word-wrap: break-word; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
namespace FarFarEast | |
{ | |
/// <summary> | |
/// Inherit from this base class to create a singleton. | |
/// e.g. public class MyClassName : Singleton<MyClassName> {} | |
/// </summary> | |
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cinttypes> | |
extern "C" { | |
__declspec(dllexport) void array_to_mat2d_byte(unsigned char* data, unsigned char** mat, size_t w, size_t h) { | |
for (size_t i = 0; i < w; ++i) { | |
mat[i] = data + h * i; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gradually changes a value towards a desired goal over time. | |
public static float SmoothDamp(float current, float target, ref float currentVelocity, float smoothTime, [uei.DefaultValue("Mathf.Infinity")] float maxSpeed, [uei.DefaultValue("Time.deltaTime")] float deltaTime) | |
{ | |
// Based on Game Programming Gems 4 Chapter 1.10 | |
smoothTime = Mathf.Max(0.0001F, smoothTime); | |
float omega = 2F / smoothTime; | |
float x = omega * deltaTime; | |
float exp = 1F / (1F + x + 0.48F * x * x + 0.235F * x * x * x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
namespace KanjiText | |
{ | |
public class KanjiText : Text | |
{ | |
public bool isKanji; |
OlderNewer