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
KEYTIMEOUT=1 | |
HISTFILE=~/.histfile | |
HISTSIZE=100000 | |
SAVEHIST=100000 | |
setopt appendhistory extendedglob interactivecomments | |
unsetopt autocd nomatch | |
unsetopt menucomplete automenu | |
bindkey -v | |
zstyle :compinstall filename "$HOME/.zshrc" |
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
Function regex(a,b,c) | |
' Attention - made by novice, so can contain bugs | |
' a - string or cell to search in | |
' b - regexp string or cell containing regexp string | |
' c - back-reference number - analogy to \n in regexp syntax | |
' prepare regexp search options |
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
import scala.util.continuations._ | |
class Generator[A] extends Iterator[A] with (A => Unit @ suspendable) { | |
private var a: Option[A] = None | |
private var k: Option[Unit => Unit] = None | |
def next = { | |
val a0 = a.get | |
val k0 = k.get | |
a = None |