This file contains hidden or 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
| /// <reference path='./es6-collections.d.ts' /> | |
| declare var require: any | |
| require('es6-collections') | |
| class Caller<T> { | |
| private callers: T[] = [] | |
| constructor(init?: T) { | |
| if (init !== undefined) this.callers.push(init) | |
| } | |
| withValue(t: T): Function { |
This file contains hidden or 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
| // {{{ Information | |
| let INFO = xml` | |
| <plugin name="buftabs" version="1.0" | |
| href="" | |
| summary="Buftabs: show the tabbar in the statusline" | |
| xmlns="http://vimperator.org/namespaces/liberator"> | |
| <author email="[email protected]">s2marine</author> | |
| <license href="">GPLv3</license> | |
| <p> | |
| This is a fork from Lucas de Vries's buftabs (https://github.com/GGLucas/vimperator-buftabs). |
This file contains hidden or 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
| " ==VimperatorColorSchema== | |
| " name: Solarized Light | |
| " ==/VimperatorColorSchema== | |
| " | |
| hi Bell border: none; background-color: #586E75; | |
| hi Boolean color: #DC322F; | |
| hi CmdLine background: #EEE8D5; color: #586E75; transition: all 0.25s; | |
| hi CmdLine>* font-family: monospace; | |
| hi CmdOutput white-space: pre; |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| 2015-06-23 09:38:11,419 [DEBUG @ msgpack_stream.py:send:36] 5435 - sent [0, 1, b'vim_get_api_info', ()] | |
| 2015-06-23 09:38:11,420 [DEBUG @ base.py:send:113] 5435 - Sending 'b'\x94\x00\x01\xc4\x10vim_get_api_info\x90'' | |
| 2015-06-23 09:38:11,420 [DEBUG @ base.py:run:138] 5435 - Entering event loop | |
| 2015-06-23 09:38:11,420 [DEBUG @ msgpack_stream.py:_on_data:57] 5435 - waiting for message... | |
| 2015-06-23 09:38:11,420 [DEBUG @ msgpack_stream.py:_on_data:59] 5435 - received message: [0, 1, b'poll', []] | |
| 2015-06-23 09:38:11,420 [DEBUG @ async_session.py:_on_request:77] 5435 - received request: b'poll', [] | |
| 2015-06-23 09:38:11,420 [DEBUG @ msgpack_stream.py:_on_data:57] 5435 - waiting for message... | |
| 2015-06-23 09:38:11,420 [DEBUG @ msgpack_stream.py:_on_data:62] 5435 - unpacker needs more data... | |
| 2015-06-23 09:38:11,420 [DEBUG @ msgpack_stream.py:_on_data:57] 5435 - waiting for message... | |
| 2015-06-23 09:38:11,421 [DEBUG @ msgpack_stream.py:_on_data:59] 5435 - received message: [1, 1, None, [1, {b'types': {b'Window': {b'id': 1 |
This file contains hidden or 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
| barTask := { println("tests ran!") } | |
| barTask <<= barTask.dependsOn(test in Test) | |
| lazy val project = Project(id = "Foo", base = file("."), | |
| settings = Seq(afterTestTask1, afterTestTask2)) | |
| val afterTestTask1 = barTask := { println("tests ran!") } | |
| val afterTestTask2 = barTask <<= barTask.dependsOn(test in Test) |
This file contains hidden or 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
| block append test | |
| h1 from comp1 |
This file contains hidden or 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
| def retry(noTimes: Int)(block: ⇒Future[T]): Future[T] = { | |
| val ns: Iterator[Int] = (1 to noTimes).iterator | |
| val attempts: Iterator[Future[T]] = ns.map(_⇒ ()⇒block) | |
| val failed = Future.failed(new Exception) | |
| attempts.foldLeft(failed) | |
| ((a,block) ⇒ a recoverWith { block() }) | |
| } | |
| retry(3) { block } | |
| = unfolds to |
This file contains hidden or 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
| trait Tag | |
| class Concat[A <: Tag, B <: Tag](a: A, b: B) extends Tag | |
| trait NestTag[A <: Tag] extends Tag { | |
| val child: A | |
| } | |
| trait Inline extends Tag | |
| trait Block extends Tag | |
| case class div[T <: Tag](t :T = null) extends NestTag[T] with Block { | |
| val child = t | |
| } |
This file contains hidden or 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
| if exists("g:TSSloaded") | |
| finish | |
| endif | |
| if !has("python") | |
| echoerr "typescript_tss.vim needs python interface" | |
| finish | |
| else | |
| python <<EOF | |
| import vim |