Skip to content

Instantly share code, notes, and snippets.

Code of Conduct

Technical

Never use Scala. Not even then.

If you see someone using Scala, take educational measures, not punitive. Help them be better.

Communication

@mmynsted
mmynsted / layout.kbd.json
Last active July 18, 2018 15:33
Mac modification for layer two
[
[
{
"a": 7
},
"",
"",
"",
"",
"",
@mmynsted
mmynsted / layout.kbd.json
Last active October 18, 2023 20:26
blank sixty percent layout
[
[
{
"a": 7
},
"",
"",
"",
"",
"",
@mmynsted
mmynsted / layout.kbd.json
Last active May 10, 2020 13:34
Mac modification for layer one
[
[
"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
[
[
"~\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...
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.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/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"
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"