Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
commit ea830e03d4d4562b1ff225940f65bceddd9cad6c | |
Author: Hayaki Saito <[email protected]> | |
Date: Sun Jun 11 23:46:45 2017 +0900 | |
Add sixel graphics support | |
Signed-off-by: Hayaki Saito <[email protected]> | |
diff --git a/Makefile b/Makefile | |
index d8595fe..a25d040 100644 |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.(.) :: (b -> c) -> (a -> b) -> (a -> c) -- functions | |
(.) :: cat b c -> cat a b -> cat a c -- categories | |
(++) :: String -> String -> String -- strings | |
(<>) :: a -> a -> a -- monoids | |
(<>) :: cat a a -> cat a a -> a a -- categories | |
(++) :: [a] -> [a] -> [a] -- lists | |
(<|>) :: f a -> f a -> f a -- alternatives | |
(<|>) :: cat a a -> cat a a -> a a -- categories |
(* GADT list that exposes the type of the head element *) | |
type _ hlist = | |
| Nil: 'a hlist | |
| Cons: ('a * 'b hlist) -> 'a hlist | |
(* let rec len = function *) | |
(* let rec len (type a) (l: a hlist): int = match l with *) | |
(* both of the above result in a "type constructor would escape its scope" error *) | |
(* correct version: *) | |
let rec len : type a. a hlist -> int = function |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
elem.clientLeft
, elem.clientTop
, elem.clientWidth
, elem.clientHeight
elem.getClientRects()
, elem.getBoundingClientRect()
type scalar = float | |
type 'a one = [`one of 'a] | |
type 'a z = [`zero of 'a] | |
type 'a two = [`two of 'a] | |
type 'a three = [`three of 'a] | |
type 'a four = [`three of 'a] | |
let map2 f x y = Array.init (min (Array.length x) (Array.length y)) | |
(fun n -> f x.(n) y.(n)) |
#!/usr/bin/env sh | |
# Works with merlin version 2.5.4. Using protocol described at | |
# https://github.com/ocaml/merlin/blob/master/doc/dev/OLD-PROTOCOL.md#type-checking | |
usage () | |
{ | |
echo Usage: either of the following will work: | |
echo | |
echo ' sig module.ml' |
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
module AssocList where | |
import Data.List (List(..)) | |
import Data.Record (delete, get) | |
import Data.Symbol (class IsSymbol, SProxy(..), reflectSymbol) | |
import Data.Tuple (Tuple(..)) | |
import Type.Row (class RowLacks, class RowToList, Cons, Nil, RLProxy(RLProxy), kind RowList) | |
class RLToList | |
(rl :: RowList) |