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
call plug#begin('~/.config/nvim/plugged') | |
" appearance | |
Plug 'altercation/vim-colors-solarized' | |
Plug 'nathanaelkane/vim-indent-guides' | |
" git | |
Plug 'tpope/vim-fugitive' | |
Plug 'vim-airline/vim-airline' | |
Plug 'airblade/vim-gitgutter' |
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
class SomeScriptableObject : ScriptableObject | |
{ | |
[SerializeField] | |
AssetReference _someAssetRef; | |
void DoSomething() | |
{ | |
Addressables.LoadAssetAsync<Object>(_someAssetRef).Completed += asset => | |
{ | |
// Do something |
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
public struct CustomVector2 | |
{ | |
public int X; | |
public int Y; | |
public CustomVector2(int x, int y) | |
{ | |
X = x; | |
Y = y; | |
} |
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 Core; | |
using Services; | |
using Sirenix.OdinInspector; | |
namespace App | |
{ | |
public class IOCContainer | |
{ | |
// Common. | |
[ShowInInspector, HideReferenceObjectPicker] |
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
local fps = 120 | |
local pangSpeed = 120 | |
local fadeDuration = 0.4 | |
local dt = 1 / fps | |
local fadePerSecond = 1 / fadeDuration | |
function easeInExpo(t, b, c, d) | |
return c * 2^(10 * (t/d - 1)) + b | |
end |
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; | |
using UnityEngine.UI; | |
/******** Result ********* | |
* TestIntConversion: .0032730 | |
* TestEnumConversion: .0029910 | |
* TestIntOp: .0027300 | |
* TestEnumOp: .0030000 <- always lose :( | |
* TestIntToString: .3037160 |
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
#if USE_UNI_LUA | |
using LuaAPI = UniLua.Lua; | |
using RealStatePtr = UniLua.ILuaState; | |
using LuaCSFunction = UniLua.CSharpFunctionDelegate; | |
#else | |
using LuaAPI = XLua.LuaDLL.Lua; | |
using RealStatePtr = System.IntPtr; | |
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; | |
#endif |
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
#!/usr/local/bin/python3 | |
import sys | |
import os | |
from glob import glob | |
from subprocess import call | |
def log(msg): | |
print('[PVR2PNG] ' + msg) | |
root = sys.argv[1] |
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
#!/bin/sh | |
if [ ! -d "$1" ]; then | |
echo Usage: $(basename "$0") BOOKDIR \> trpl.md | |
echo Then: pandoc -S -o trpl.epub trpl.md | |
exit 1 | |
fi | |
cat "$1/README.md" | |
echo |