Skip to content

Instantly share code, notes, and snippets.

View shiwano's full-sized avatar
💭
😇

Shogo Iwano shiwano

💭
😇
View GitHub Profile
@shiwano
shiwano / AngleGetter.cs
Created July 15, 2015 10:19
Getting 360 angle between two 3d vectors for Unity3D.
public static class Utility
{
public static float CalculateAngle(Vector3 from, Vector3 to)
{
return Quaternion.FromToRotation(Vector3.up, to - from).eulerAngles.z;
}
}
@shiwano
shiwano / convert_to_spaced.py
Created March 1, 2018 03:10
Japanese wikipedia corpus modification tools
import glob
import os
import re
import unicodedata
import codecs
import MeCab
class Sentence(object):
def __init__(self, root):
@shiwano
shiwano / vimgirl.txt
Last active April 25, 2017 06:55
Vim Girl の AA。 等幅。M+フォントかM+フォント合成フォントでの閲覧推奨。
メ __-─-,-- _
,イ >:::::::::::< ヽ〟
ヽ─イ /,::::,::::::::\ >─r
ヾ〟//:!:::ハ::::::|:!:ヽ ,丿
ソ r:リヤ ハ::::::ハ:ハ::|rヘ〟
Ⅲ:|:| V―ヘ::::/-ル゙|/ ハリ\ あらぶる
!|:ハ:|,-=〟ヽ/,-=.ソハリ H Vim の
!ヽriゾUソゾ "ハUソノ゙hNノソ ぽーず♡
|!ハヾヾ` `´ノlリ´
ノ:ノハ ハ 丶 クハ ____
NAME = ca
SRC_DIR = $(CURDIR)/src
CLI_DIR = $(CURDIR)/cli
TEST_DIR = $(CURDIR)/test
BIN_DIR = $(CURDIR)/bin
LIB_DIR = $(CURDIR)/lib
OBJ_DIR = $(CURDIR)/obj
CXX = clang
@shiwano
shiwano / _grab.scss
Created July 21, 2012 12:41
grab cursor scss mixins
@charset "UTF-8";
@mixin grab-cursor {
// http://www.google.com/intl/en_ALL/mapfiles/openhand.cur
cursor: url('data:image/vnd.microsoft.icon;base64,AAACAAEAICACAAcABQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAgAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAA/AAAAfwAAAP+AAAH/gAAB/8AAA//AAAd/wAAGf+AAAH9gAADbYAAA2yAAAZsAAAGbAAAAGAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////gH///4B///8Af//+AD///AA///wAH//4AB//8AAf//AAD//5AA///gAP//4AD//8AF///AB///5A////5///8='), all-scroll;
// cursor: -webkit-grab;
cursor: -moz-grab;
cursor: -o-grab;
cursor: -ms-grab;
cursor: grab;
@shiwano
shiwano / UnityPath.mel
Created May 13, 2016 00:15
UnityPath.mel
optionVar -remove "UnityPath";
optionVar -sv "UnityPath" "/Applications/Unity/Unity.app";
@shiwano
shiwano / openssl_sha256.sh
Created January 24, 2016 06:04
openssl_sha256.sh
openssl dgst -sha256 pkg/dist/master_darwin_amd64
Process: MacVim [3688]
Path: /Applications/MacVim.app/Contents/MacOS/MacVim
Identifier: org.vim.MacVim
Version: 7.4 (20131023)
Code Type: X86-64 (Native)
Parent Process: launchd [252]
Date/Time: 2013-10-24 12:29:34.989 +0900
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9
javascript:(function(){document.styleSheets[1].addRule('#cookieShower','background-image:url("https://dl.dropboxusercontent.com/u/34494006/cookie_clicker/cookieShower3.png") !important');document.styleSheets[1].addRule('#bigCookie','background-image:url("https://dl.dropboxusercontent.com/u/34494006/cookie_clicker/nakachan.png")');document.styleSheets[1].addRule('.cookieParticle','background-image:url("https://dl.dropboxusercontent.com/u/34494006/cookie_clicker/small_steels.png")');})();