Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@natdempk
natdempk / .bashrc
Last active August 29, 2015 14:01
dotfiles
# colors
export TERM='xterm-256color'
# aliases
alias ls="ls --color" # color ls
alias sl="ls --color" # fix typo
alias mkdir='mkdir -pv' # automake parent dirs
# useful python aliases
alias pyperf="python -m cProfile"
# color greps
@natdempk
natdempk / Lamu-setup.md
Last active August 29, 2015 14:01 — forked from tevin/Lamu-setup.md
fix numbering
  1. #####Clone repo

         ```git clone --recursive https://github.com/ushahidi/Lamu```
    
  2. #####Initialize/Update submodules

         ```git submodule update --init --recursive```
    
  3. #####Use composer to install dependencies You can get composer here

@natdempk
natdempk / Apple-vs-Google.md
Last active September 29, 2015 00:57 — forked from golf1052/Apple-vs-Google.md
I need a new phone

I got paid to do this

Ecosystem

Apple iOS as a platform and what it offers vs. Android. Now lets throw Microsoft into the mix.
Basically this is the experience that you buy into

Category Apple Google Microsoft
Development Easier to develop for. (Swift/Obj-C is not as verbose) Heh Java lol, windows phone

Keybase proof

I hereby claim:

  • I am natdempk on github.
  • I am natdempk (https://keybase.io/natdempk) on keybase.
  • I have a public key ASB542QV6iumvYZ5Kb2TEK3m4p7qHUyEYUU7H4VtpxJllQo

To claim this, I am signing this object:

import com.google.common.collect.ImmutableList;
import io.reactivex.Observable;
import io.reactivex.schedulers.Schedulers;
import java.util.concurrent.ExecutionException;
import java.util.stream.Stream;
public class TestMain {
public static void main(String[] args) throws ExecutionException, InterruptedException {
import java.util.concurrent.ExecutionException;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
import io.reactivex.Flowable;
import io.reactivex.schedulers.Schedulers;
public class TestMain {
@natdempk
natdempk / manyObserveOns.java
Created October 5, 2017 03:10
many vs. one call to observeOn
Flowable.range(1, 10)
.observeOn(Schedulers.io())
.doOnNext(x -> System.out.println(Thread.currentThread().getName()))
.observeOn(Schedulers.io())
.doOnNext(x -> System.out.println(Thread.currentThread().getName()))
.observeOn(Schedulers.io())
.doOnNext(x -> System.out.println(Thread.currentThread().getName()))
.observeOn(Schedulers.io())
.doOnNext(x -> System.out.println(Thread.currentThread().getName()))
↪ ponyc
Building builtin -> /usr/local/Cellar/ponyc/0.20.0/packages/builtin
Building . -> /Users/natdempk/Repos/pony-test/helloworld/color
Error:
/Users/natdempk/Repos/pony-test/helloworld/color/color.pony:14:28: couldn't find 'values' in 'ColorList'
env.out.print(ColorList.values())
^
Error:
/Users/natdempk/Repos/pony-test/helloworld/color/color.pony:15:27: couldn't find 'values' in 'ColorList'
for color in ColorList.values() do
Jay Daniel - Paradise Valley
Poolside - Feel Alright
Motion Graphics - Lense
Nils Frahm - Spells
Black Moth Super Rainbow - Twin of Myself (Original)
Tycho, Beacon - See (feat. Beacon)
Destroyer - Chinatown
Lone - Jaded
Grizzly Bear - Yet Again
Bing & Ruth - Starwood Choker