Skip to content

Instantly share code, notes, and snippets.

View coc.md
@mmynsted
mmynsted / layout.kbd.json
Last active July 18, 2018 15:33
Mac modification for layer two
View layout.kbd.json
[
[
{
"a": 7
},
"",
"",
"",
"",
"",
@mmynsted
mmynsted / layout.kbd.json
Last active August 8, 2020 19:41
blank sixty percent layout
View layout.kbd.json
[
[
{
"a": 7
},
"",
"",
"",
"",
"",
@mmynsted
mmynsted / layout.kbd.json
Last active May 10, 2020 13:34
Mac modification for layer one
View layout.kbd.json
[
[
"Esc",
"F1",
"F2",
"F3",
"F4",
"F5",
"F6",
"F7",
@mmynsted
mmynsted / layout.kbd.json
Last active August 8, 2020 21:25
Mac modification for layer zero
View layout.kbd.json
[
[
"~\n`",
"!\n1",
"@\n2",
"#\n3",
"$\n4",
"%\n5",
"^\n6",
"&\n7",
@mmynsted
mmynsted / ShowItem.java
Created February 13, 2017 01:16
Simple example of getting an item on an interval, filtering, taking, and printing...
View ShowItem.java
package rxExample;
import io.reactivex.Observable;
import io.reactivex.schedulers.TestScheduler;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.TimeUnit;
@mmynsted
mmynsted / 0_reuse_code.js
Created December 22, 2015 22:16
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View prepare-commit-msg
#!/bin/sh
#.git/hooks/prepare-commit-msg
original="$1"
temp=`mktemp /tmp/git-XXXXX`
ticket=`git branch | grep '^\*' |sed -e 's@.*/@@'`
(printf "\n\n$ticket"; cat "$original") > "$temp"
cat "$temp" > "$original"
View gitconfig alias
co = checkout
br = branch
ci = commit
st = status -sb
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ls = log --stat --oneline
ld = log --pretty=format:'%C(auto) %h [%C(green)%ar%C(reset)] %C(blue) %cn %C(reset)%C(auto) %d %<|(5) %s' --graph --decorate --all
f = "!git ls-files | grep -i"
dl = "!git ll -1"