Skip to content

Instantly share code, notes, and snippets.

View youcune's full-sized avatar

なかにしゆう youcune

View GitHub Profile
@youcune
youcune / example1.rb
Created March 25, 2014 07:51
Rubyでクラス変数の使い方の例
#!/usr/bin/env ruby
class Parent
def self.puts_var
puts self.class_variable_get(:@@CLASS_VAR)
end
def puts_var
puts self.class.class_variable_get(:@@CLASS_VAR)
end
@youcune
youcune / Lucida Grande+ヒラギノ角ゴ.xml
Created January 8, 2014 02:32
これを ~/Library/Application Support/Microsoft/Office/ユーザー テンプレート/個人用テーマ/Theme Fonts に設置すると、Mac版PowerPointでヒラギノ角ゴをデフォルトフォントにしたテーマが使えます。 参考 http://irritantis.info/2013/08/font_pattern_for_mac_powerpoint_theme/
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<a:fontScheme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Lucida Grande+ヒラギノ角ゴ"><a:majorFont><a:latin typeface="Lucida Grande"/><a:ea typeface="ヒラギノ角ゴ ProN"/><a:cs typeface=""/></a:majorFont><a:minorFont><a:latin typeface="Lucida Grande"/><a:ea typeface="ヒラギノ角ゴ ProN"/><a:cs typeface=""/></a:minorFont></a:fontScheme>
@youcune
youcune / romantable.txt
Last active April 10, 2025 05:40
AZIK配列のいつも使うGoogle日本語入力用ローマ字テーブル
~ ~
, 、
. 。
/ ・
: ー
; っ
[ 「
] 」
a あ
ba ば
@youcune
youcune / pre-commit
Last active January 1, 2016 06:49
git commitしたときに全角チルダが含まれていたらコミットを拒否する。EUC/UTF-8対応。Windowsで見ると全角チルダが化けてしまうためチェックスクリプト化しました。.git/hooks/pre-commitに設置して使います。
#!/usr/bin/env perl
# git commitしたときに全角チルダが含まれていたらコミットを拒否する
# \x8F\xA2\xB7 : EUC-JPで全角チルダ
# \xEF\xBD\x9E : UTF-8で全角チルダ
use strict;
use warnings;
our @files = `git diff-index --name-status HEAD | cut -c3-`;
@youcune
youcune / push.bas
Created April 20, 2013 07:13
Variant型の配列に要素を追加するVBA
' Variant型の配列に要素を追加する
Sub Push(ByRef v As Variant, e)
ReDim Preserve v(UBound(v) + 1)
v(UBound(v)) = e
End Sub