Skip to content

Instantly share code, notes, and snippets.

@yuratomo
yuratomo / .bashrc
Last active August 29, 2015 14:03
c.bat
# my git log
alias gitl='git log --date=short --pretty=format:"%h [%ad] : %s <%an>"'
# ディレクトリをpecoで選択
_ll() {
echo .. ; find . -maxdepth 1 -type d
}
ll() {
local DIR=$(_ll | peco | head -n 1)
if [ -n "$DIR" ] ; then
@yuratomo
yuratomo / ContextMenuService
Created June 28, 2012 10:41
C#でContextMenuService
ContextMenu cm = new ContextMenu();
cm.Items.Add(new MenuItem()
{
Header = "編集",
Command = viewmodel.EditCommand,
CommandParameter = ListItem_ViewModel.EDIT_STRING
});
cm.Items.Add(new Separator());
ContextMenuService.SetContextMenu(datagridrow, cm);
@yuratomo
yuratomo / afxselect.vbs
Created March 18, 2012 02:14
afxscript - あふwで指定した単位でファイルを選択する(奇数番目を選択等)
'&SCRIPT afxselect.vbs x y
' x: 単位
' y: 選択位置
'
' 例) 奇数を選択
' &SCRIPT afxselect.vbs 2 1
' wscript.exe afxselect.vbs 2 1
'
Set ao = CreateObject("afxw.obj")
Set fso = CreateObject("Scripting.FileSystemObject")
あああ