atom.packages.requirePackages = (packages...) -> | |
new Promise (resolve, reject) -> | |
required = [] | |
promises = [] | |
failures = [] | |
remains = packages.length | |
solved = -> | |
remains-- |
Copy and paste the swift code below into a playground to experiment.
This is a very close emulation of Functor and Monad typeclasses in swift. However, it is very fragile (i.e. easy to crash the compiler).
For example, instance methods of fmap
will run fine, but attempting to use a globally defined fmap
that acts on Functor
types will cause a crash. Similarly for bind
. Unfortunately this means we cannot define the nice infix operator versions of these functions.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
ok = (ok) -> console.log if ok then 'ok' else 'FAIL' | |
FnError = (message) -> | |
@name = 'FnError' | |
@message = message | |
@stack = (new Error).stack | |
FnError:: = new Error |
- 更新
2014-11-20
- バージョン
0.0.5
- 作者
@voluntas
- URL
概要
" buffer書き換え前 | |
let s:mychangedtick = b:changedtick | |
" buffer書き換えて操作 | |
" ... | |
" 書き換え後に | |
" for tpope/vim-repeat | |
if exists('g:repeat_tick') | |
if g:repeat_tick == s:mychangedtick |
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', |
- メインスピーカー:マシューさん(@matthewmccull)
- サブスピーカー:ジョンさん(@johndbritton)
従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。
"" Option parser. | |
"" | |
"" Arguments | |
"" [ | |
"" { | |
"" \ 'short': 'X', | |
"" \ 'long': '--xxx', | |
"" \ 'output': 'name', | |
"" \ 'has_value': 1, | |
"" \ 'default': 'some_value', |