- Generate a key in
~/.ssh
withssh-keygen
- Go to gitlab/github and add the public key.
- Update or add the
~/.ssh/config
file with:
Host gitlab.com:username
IdentityFile /home/user/.ssh/gitlab
Host github.com:username
# Add reason utils to path | |
export PATH=$PATH:"$HOME/.config/yarn/global/node_modules/reason-cli/bin" |
type observer('a, 'e) = { | |
. | |
next: 'a => unit, | |
complete: unit => unit, | |
error: 'e => unit, | |
}; | |
type subscription = { | |
. | |
unsubscribe: unit => unit |
impl<R: Iterator<Item = Result<u8, Error>>> IntoIterator for Lexer<R> { | |
type Item = Token; | |
type IntoIter = LexerIterator<R>; | |
fn into_iter(self) -> Self::IntoIter { | |
LexerIterator { lexer: self } | |
} | |
} | |
pub struct LexerIterator<R> { |
~/.ssh
with ssh-keygen
~/.ssh/config
file with:Host gitlab.com:username
IdentityFile /home/user/.ssh/gitlab
Host github.com:username
(def grid (atom [ | |
[0 0 0] | |
[0 0 0] | |
[0 0 0] | |
])) | |
(defn update-grid [row-index col-index val] | |
(swap! grid assoc-in [row-index col-index] val)) | |
(defn full-row? [row] |
Install jdk Install leinengen
lein new figwheel-main hello-world.app -- --reagent # or --rum, --om, --react or nothing see: https://github.com/bhauman/figwheel-main-template
In WSL update :open-url in dev.cljs.edn to false
const addNode = <NDS extends INodeDefinitions, K extends keyof NDS>( | |
definition: K | |
) => R.over(nodesLens, R.append(createNode<NDS, K>(definition))); |
// @flow | |
import * as R from "ramda"; | |
import { Observable, BehaviorSubject, Subject, empty, of, merge } from "rxjs"; | |
import { | |
scan, | |
tap, | |
share, | |
startWith, | |
mergeMap, |
#!/usr/bin/env bash | |
# Usage: | |
# brew install zbar | |
# run qrscan.sh, drag over qr code. | |
cd /tmp/ | |
screencapture -i zbarscreen.png | |
zbarimg -q ./zbarscreen.png || echo "No barcode found." | |
rm zbarscreen.png |
// in current branch | |
git rebase feature |