Skip to content

Instantly share code, notes, and snippets.

@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 August 8, 2020 21:25
Mac modification for layer zero
[
[
"~\n`",
"!\n1",
"@\n2",
"#\n3",
"$\n4",
"%\n5",
"^\n6",
"&\n7",
@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 July 18, 2018 15:33
Mac modification for layer two
[
[
{
"a": 7
},
"",
"",
"",
"",
"",

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 / 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 / gist:7046872
Last active December 25, 2015 21:59
Functional Programming Glossary - please update/correct as needed

Glossary of Functional Programming Terms

Functor

A type constructor F[_] together with an operation forall A, B. (A => B) => F[A] => F[B] that satisfies FunctorLaw, i.e. that a series of maps may be freely rewritten as a single map on a composed function, and that the identity function, lifted, is a no-op.

A good example from scalaz

def map[A, B](fa: F[A])(f: (A) ⇒ B): F[B]

@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"