Skip to content

Instantly share code, notes, and snippets.

View yosshi's full-sized avatar
🦍

Yoshiyuki MIYAGI yosshi

🦍
View GitHub Profile
@yosshi
yosshi / gist:229874
Created November 9, 2009 11:06 — forked from uasi/gist:214109
#
# 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
@yosshi
yosshi / gist:227791
Created November 6, 2009 07:15
意味のないコードを書きためていきたいと思う
['みかん','ともちゃん','なおちゃん'].product(['ねむい','おなかすいた','かえりたい']).shuffle.take(1).join
;;バッファ切り替え(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)
てすと
@yosshi
yosshi / Main.as
Created October 15, 2009 01:58
単純にいろんな言語でロト6の数字を決めてみる
package
{
import flash.display.Sprite;
import flash.text.TextField;
public class Main extends Sprite
{
public function Main()
{
var textField:TextField = new TextField();