Keys | Action | Description |
---|---|---|
Cmd-Shift-A | Search action by name | search for any command/menu items |
Alt-F1 | Select target | Open current file in project tree, finder, etc |
Keys | Action | Description |
---|---|---|
Cmd-O | Class search | classes, traits, objects |
;; 559e3224324a2b6e66000046 | |
(defn cart [n] | |
(let [n (+ n 1)] | |
(for [x (range 1 n) y (range 1 n)] [x y]))) | |
(defn xf [f] (map (fn [[x y]] (f x y)))) | |
(defn sumin [n] | |
(transduce (xf min) + (cart n))) |
function head(xs) { | |
return xs[0]; | |
} | |
function last(xs) { | |
return xs[xs.length - 1]; | |
} | |
function init(xs) { | |
return xs.slice(0, xs.length - 1); |
#!/bin/bash | |
machine=$1 | |
[ -z "$machine" ] && machine="default" | |
docker-machine start $machine | |
eval "$(docker-machine env $machine)" | |
echo "VM $machine running: $DOCKER_HOST" |
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Monad | |
import Data.Aeson | |
import Data.Aeson.Types | |
import qualified Data.ByteString.Lazy as B (readFile) | |
import Data.Time | |
data CrosswordType = Quick | Cryptic | |
deriving Show |
<style type="text/css"> | |
.blog-content h2 { | |
font-size: 120%; | |
font-weight: bold; | |
margin: .5em 0; | |
} | |
.blog-content ul { | |
margin: 1em 5em; | |
} |
<h1>Page title</h1> | |
<p>Intro paragraph.</p> | |
<h2>Sub-heading</h2> | |
<ul> | |
<li>First list item!</li> | |
<li>Second list item!</li> | |
</ul> | |
<h2>Another sub-heading</h2> |
data Grid a = Grid [[a]] | |
deriving Show | |
instance Functor Grid where | |
fmap f (Grid xs) = Grid (map (\ys -> map (\y -> f y) ys) xs) |
fontforge -lang=ff -c 'Open($1); SelectWorthOutputting(); foreach Export("svg"); endloop;' font.ttf |