Mostly for grins, and partly to get a feel
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
atom.packages.requirePackages = (packages...) -> | |
new Promise (resolve, reject) -> | |
required = [] | |
promises = [] | |
failures = [] | |
remains = packages.length | |
solved = -> | |
remains-- |
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
Elixir/Mix入門 | |
## 概要 | |
- elixir / erlang vm へコンパイルされる言語。コンパイラ。 | |
- mix / elixirのプロジェクト管理ツール。elixirインストール時に入る | |
```diff:aaaaaa | |
aaaa | |
``` |
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
let s:id_counter = 0 | |
let s:klass = {'_class_': ['Klass'], '_id_': 0} | |
" クラスの作成 | |
function! s:klass.create(...) dict | |
let object = deepcopy(self) | |
let class = copy(self._class_) | |
for c in get(a:1, '_class_', []) | |
call add(class, c) | |
endfor |
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/bash | |
true=":" | |
false="/bin/false" | |
success=0 | |
failure=1 | |
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 | |
setopt prompt_subst | |
function rprompt-git-current-branch { | |
local name st color gitdir action |
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
class Application | |
def call(request, response) | |
response.write(request, "hello", 200, {}) | |
10.times do |body| | |
response.write(request, body) | |
end | |
response.close | |
end |
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
function! s:BundleGet() "{{{ | |
let bundle_dir = expand('~/.vim/bundle') | |
try | |
let org_cwd = getcwd() | |
silent lcd `=bundle_dir` | |
let repo = matchstr(getline('.'), 'BUNDLE:\s\+\zs.*') | |
if repo != '' | |
let local_name = substitute(fnamemodify(repo, ':t'), | |
\ '^\%\(vim-\)\?\(.*\).git','\1', '') | |
if isdirectory(local_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
"" Option parser. | |
"" | |
"" Arguments | |
"" [ | |
"" { | |
"" \ 'short': 'X', | |
"" \ 'long': '--xxx', | |
"" \ 'output': 'name', | |
"" \ 'has_value': 1, | |
"" \ 'default': 'some_value', |
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
let g:ezbar = {'separator_L': '', 'separator_R': ''} | |
let g:ezbar.active = [ | |
\ 'winbufnum', 'dir', | |
\ 'filename', | |
\ {'chg_color': {'gui': ['SlateGray', 'white', 'bold']}}, | |
\ 'filetype', | |
\ 'modified', | |
\ 'currentfuncrow', | |
\ {'__SEP__': 'StatusLine'}, | |
\ 'cfi', |
OlderNewer