Skip to content

Instantly share code, notes, and snippets.

import sequtils
from strutils import join
proc toRna*(dna: string): string =
result = toSeq(dna)
.map(c => (
case c:
of 'A':
return "U"
of 'T':
import sequtils
from strutils import join
proc toRna*(dna: string): string =
var chars = toSeq(dna).map do (c: char) -> char:
case c:
of 'A':
return 'U'
of 'T':
return 'A'
import sequtils
from strutils import join
proc toRna*(dna: string): string =
result = toSeq(dna)
.map(c =>
case c:
of 'A':
return 'U'
of 'T':
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
↪ 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
@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()))
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 {
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 {

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:

@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