Skip to content

Instantly share code, notes, and snippets.

View watiko's full-sized avatar
馃幆
Focusing

watiko watiko

馃幆
Focusing
View GitHub Profile
@staltz
staltz / introrx.md
Last active July 7, 2025 10:24
The introduction to Reactive Programming you've been missing
@nlinker
nlinker / SCombinator.scala
Created October 12, 2012 03:44 — forked from folone/SCombinator.scala
Y-Combinator in Scala
/**
* <b>Fixed Point Combinator is:</b>
* Y = 位f.(位x.f (x x)) (位x.f (x x))
*
* <b>Proof of correctness:</b>
* Y g = (位f . (位x . f (x x)) (位x . f (x x))) g (by definition of Y)
* = (位x . g (x x)) (位x . g (x x)) (尾-reduction of 位f: applied main function to g)
* = (位y . g (y y)) (位x . g (x x)) (伪-conversion: renamed bound variable)
* = g ((位x . g (x x)) (位x . g (x x))) (尾-reduction of 位y: applied left function to right function)
* = g (Y g) (by second equality) [1]
@kidd
kidd / emvil.el
Created February 14, 2012 18:31
'perfect' combination of emacs+evil
;;; https://lists.ourproject.org/pipermail/implementations-list/2012-February/001513.html
(add-to-list 'load-path "~/programmingStuff/evil/")
(require 'evil)
;; remove all keybindings from insert-state keymap
(setcdr evil-insert-state-map nil)
;; but [escape] should switch back to normal state
(define-key evil-insert-state-map [escape] 'evil-normal-state)
(define-key evil-insert-state-map (kbd "jk") 'evil-normal-state)
(define-key evil-insert-state-map (kbd "jj") 'insert-jay)
@valpackett
valpackett / 1_WTF.md
Created February 3, 2012 18:32
Kindle dictionary template

Kindle dictionary template

Use it with KindleGen

kindlegen dic.opf