C-x (
to start recording; C-x )
to end; then M-x call-last-kbd-macro
to call it. I have that last one bound to M-'
and you may find something similarly bound for the RN emacs config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PromiseKeeper { | |
constructor(executor) { | |
this.state = 'pending', | |
this.callbacks = []; | |
const resolve = value => { | |
if (this.state !== 'pending') return; | |
this.state = 'fulfilled'; | |
this.value = value; | |
for (const cb of this.callbacks) { | |
cb.onFullfilled(value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\([^[:ascii:]]+\) \([[:ascii:]]+\) \1 | \2| - Finding non english words and english words |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
#git rev-list --no-merges "${1:-HEAD}" | \ | |
# while read rev; do | |
# if [ $(git show -s --format='%b' $rev | wc -w) -gt 300 ]; then | |
# echo "$(git show -s --format='%b' $rev | wc -w) words: $rev" | |
# fi |
2/11/2016
JWT and key signing with RSA
2/10/2016
Today I learned about a vim plugin called "ctrlp". This plugin can be found here..o The interesting thing about this plugin is that it adds fuzzy searching to vim.
Installed it the following ways:
cd ~/.vim
git clone https://github.com/kien/ctrlp.vim.git bundle/ctrlp.vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var logLines []string | |
type logMock struct{} | |
func (l *logMock) Write(p []byte) (int, error) { | |
logLines = append(logLines, string(p)) | |
return 0, nil | |
} | |
//CaptureLogOutput A utility to capture the log output of a function and pass it along |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"unicode/utf8" | |
) | |
func main() { | |
str := "\u0928" + "\u093F" | |
fmt.Println(len(str)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns markov-elear.core) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwdwbChV5rzyvarkmQEynFj/YNWrC/S0e5M8gM20ZM49ZTv9ysIDf7feF3I+/B2F626hPQykHHYaa7MTtA3RiVq4EfkGRc5vV/hjjePzaETZy09ZOdJj2ZUUyhPkfdf1LrLkeGaytkT5OaRxS92fWj09riFQwCtlX/ksbQiW5sy+cJNP81z3PZqO2yhUs22gHs+Ck7jJpb0V6VLwekFs/GnbXWm6Y/Oq4aEgXo8mNeMxKw2LzBATiz3owUmMFiMAUNVBDKAcfQctSYSX3y/QLeIYJ0Vsz7YyY+Jmmg3CDQYaP/CgbySkVc1n7avEwIJ0grZB/gv7i6/nsqoaQlQdt/Q== [email protected] |
NewerOlder