An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.
| C-M-f | sp-forward-sexp |
| C-M-b | sp-backward-sexp |
![]() | |
An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.
| C-M-f | sp-forward-sexp |
| C-M-b | sp-backward-sexp |
![]() | |
| -module(palindrome). | |
| -export([palindrome_check/1, server/1, serve/1]). | |
| -export([server_of_clients/0, serve_client/0]). | |
| -export([servers_of_clients/0,servers_balancer/3,many_serve_client/1]). | |
| rem_punct(String) -> lists:filter(fun (Ch) -> | |
| not(lists:member(Ch,"\"\'\t\n ")) | |
| end, | |
| String). |
| """Transducers in Python | |
| http://blog.cognitect.com/blog/2014/8/6/transducers-are-coming | |
| """ | |
| from functools import reduce | |
| def compose(*fs): | |
| """Compose functions right to left. |
| /******************************************************************************* | |
| * | |
| * A minimal Forth compiler in C | |
| * By Leif Bruder <[email protected]> http://defineanswer42.wordpress.com | |
| * Release 2014-04-04 | |
| * | |
| * Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial | |
| * | |
| * PUBLIC DOMAIN | |
| * |
| require 'socket' | |
| module EventEmitter | |
| def _callbacks | |
| @_callbacks ||= Hash.new { |h, k| h[k] = [] } | |
| end | |
| def on(type, &blk) | |
| _callbacks[type] << blk | |
| self |