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
package | |
{ | |
import flash.display.Sprite; | |
import flash.text.TextField; | |
public class Main extends Sprite | |
{ | |
public function Main() | |
{ | |
var textField:TextField = new TextField(); |
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
てすと |
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
;;バッファ切り替え(C-x b) | |
(iswitchb-mode t) | |
(iswitchb-default-keybindings) | |
(add-hook 'iswitchb-define-mode-map-hook | |
'iswitchb-my-keys) | |
(defun iswitchb-my-keys () | |
"Add my keybindings for iswitchb." | |
(define-key iswitchb-mode-map [right] 'iswitchb-next-match) |
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
['みかん','ともちゃん','なおちゃん'].product(['ねむい','おなかすいた','かえりたい']).shuffle.take(1).join |
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
# | |
# Show branch name in Zsh's right prompt | |
# | |
autoload -Uz VCS_INFO_get_data_git; VCS_INFO_get_data_git 2> /dev/null | |
function rprompt-git-current-branch { | |
local name st color gitdir action | |
if [[ "$PWD" =~ '/¥.git(/.*)?$' ]]; then | |
return |
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
# ランダムな文字列を生成する。 | |
# 引数 _length_ を指定すると生成桁数を指定することができます(デフォルト 8 桁)。 | |
def getRandomString (length = 8) | |
if length == 0 | |
length = 8 | |
end | |
source=("a".."z").to_a + ("A".."Z").to_a + (0..9).to_a + ["_","-","."] | |
key="" | |
length.times{ key+= source[rand(source.size)].to_s } | |
return key |
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 | |
rm -rf `find ~/ -name "*\~"` |
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 | |
for file in $* | |
do | |
if [ -f $file ]; then | |
nkf --utf8 $file > tmpfile | |
mv tmpfile $file | |
fi | |
done | |
exit |
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
■材料 | |
ベース油(食用油を模索中、ごま油がベター):欲しい量 | |
白ネギ(の青い部分):適量 | |
ニンニク:適量 | |
唐辛子:適量 | |
容器:ベース油が入る容積をもった容器 | |
■作成方法 | |
1.ニンニクと白ネギをみじん切りにする。 | |
2.ベース油を鍋に入れる。 |
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/ruby | |
# | |
require 'sendgmail.rb' | |
require 'yaml' | |
@LOG_DIR = "/path/to/log" | |
@CHANNEL = %w{#xxxxx@freenode #xxxxx@twitter} | |
@FILE_NAME = Time.now.strftime("%Y.%m.%d.txt") | |
@KEYWORDS = "key1|key2|key3" | |
replys = Array.new |
OlderNewer