Skip to content

Instantly share code, notes, and snippets.

var appendEntry = function(selector, entry) {
if (entry != undefined && entry.yt.length > 0) {
var $dl = $('<dl/>', {class: 'entry'});
$dl.append($('<dt/>', {class: 'title'}))
$dl.children("dt").append($('<a/>', {href: entry.url, text: entry.title}))
$dl.append($('<dd/>'));
$dl.children("dd").append("<ul/>");
for (i in entry.yt) {
var $li = $('<li/>');
@yuitowest
yuitowest / _hg
Created December 3, 2011 09:51
Zsh completion script for mercurial
#compdef hg
# Zsh completion script for mercurial. Rename this file to _hg and copy
# it into your zsh function path (/usr/share/zsh/site-functions for
# instance)
#
# If you do not want to install it globally, you can copy it somewhere
# else and add that directory to $fpath. This must be done before
# compinit is called. If the file is copied to ~/.zsh.d, your ~/.zshrc
# file could look like this:
@yuitowest
yuitowest / gist:4064453
Created November 13, 2012 07:18
sublime text2 sidebar keymap
{ "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["k"], "command": "move", "args": {"by": "lines", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["l"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["h"], "command": "move", "args": {"by": "characters", "forward": false}, "context":
@yuitowest
yuitowest / install_vagrant_vmware_fusion.md
Last active December 15, 2015 20:19
Vagrantが1.1でVMware Fusion向けプラグインを公開したので試した。

Vagrantの最新版をインストール

$ vagrant -v
Vagrant version 1.1.5
@yuitowest
yuitowest / create_vagrant_box_for_vmware_fusion.md
Last active December 15, 2015 21:59
Vmware Fusion用のVagrant BOXファイルの作成のやりかたメモ
@yuitowest
yuitowest / remap.vim
Created October 9, 2013 05:21
新人研修用 vim キーマップ
noremap <Up> :<C-u>echohl WarningMsg \| echo "Don't use Up key!!! Press [k]" \| echohl None<CR>
noremap! <Up> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use Up key!!! Press [ESC][k]" \| echohl None<CR>
noremap <Down> :<C-u>echohl WarningMsg \| echo "Don't use Down key!!! Press [j]" \| echohl None<CR>
noremap! <Down> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use Down key!!! Press [ESC][j]" \| echohl None<CR>
noremap <Left> :<C-u>echohl WarningMsg \| echo "Don't use Left key!!! Press [l]" \| echohl None<CR>
noremap! <Left> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use Left key!!! Press [ESC][l]" \| echohl None<CR>
noremap <Right> :<C-u>echohl WarningMsg \| echo "Don't use Right key!!! Press [h]" \| echohl None<CR>
noremap! <Right> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use Right key!!! Press [ESC][h]" \| echohl None<CR>
noremap <BS> :<C-u>echohl WarningMsg \| echo "Don't use BackSpace key!!! Press [ctrl-h]" \| echohl None<CR>
noremap! <BS> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use BackSpace key!

Build 'vmware' errored

packer build で下記のようなエラーがでた

Build 'vmware' errored: Couldn't find VMware tools for 'linux'! VMware often downloads these
tools on-demand. However, to do this, you need to create a fake VM
@yuitowest
yuitowest / README
Created October 14, 2014 05:36
git-flow-completion.zsh 読み込んでも補完が効かない場合
~/.zsh/site-functions/_git を作成
$FPATH に~/.zsh/site-functions を追加する
$ export FPATH=~/.zsh/site-functions:$FPATH
@yuitowest
yuitowest / vim-erlang.md
Created May 5, 2015 16:01
Vim で Erlang してみた