Skip to content

Instantly share code, notes, and snippets.

View apauley's full-sized avatar

Andreas Pauley apauley

View GitHub Profile

Is “blockchain technology a scourge on society”?

Emile Silvis recently shared an article he wrote on a pro-cryptocurrency forum, and asked for feedback.

This was brave, given that his title is “Blockchain technology is a scourge on society” :-)

But because he is a friendly guy and geniunely seemed to want feedback from pro-cryptocurrency people, I took part in the discussion.

I like that he highlighted his background and some of his assumptions at the start (and throughout) the article.

@apauley
apauley / update-pricedb.py
Last active February 25, 2020 08:23 — forked from keegancsmith/update-pricedb.py
Maintain .pricedb file for ledger3 for gbp/usd to zar
#!/usr/bin/env python3
# A script by Keegan Carruthers-Smith, with some small modifications
# https://gist.github.com/keegancsmith/0ac3542481b90cab3d6d421be14fe33e
from html.parser import HTMLParser
import datetime
import itertools
import os.path, glob
import urllib.request
Verifying that +apauley is my blockchain ID. https://onename.com/apauley
import scalaz._
import Scalaz._
object FizzBuzz {
def fizz(n: Int): Option[String] = if (n % 3 == 0) some("fizz") else None
def buzz(n: Int): Option[String] = if (n % 5 == 0) Some("buzz") else None
def fizzbuzz(n: Int): String = (fizz(n) |+| buzz(n)).getOrElse(n.toString)
}

Keybase proof

I hereby claim:

  • I am apauley on github.
  • I am apauley (https://keybase.io/apauley) on keybase.
  • I have a public key ASBGyHLXlf-TbFPYMLAXzf-p35T1VHbdt67lK4twvnQm9wo

To claim this, I am signing this object:

-module(sleepsort).
-export([test/0,
sort/1]).
test() ->
[1,2,3] = sort([1,2,3]),
[1,2,3] = sort([2,1,3]),
[] = sort([]),
[2,4,8,12,19] = sort([19,8,4,12,2]),
@apauley
apauley / Transmogrify.java
Created June 10, 2012 20:13
Example list processing in Java
import java.util.*;
public class Transmogrify {
public static void main (String[] args) {
ArrayList<Integer> input = range(1, 10);
ArrayList<Integer> doubled = double_each(input);
ArrayList<Integer> complexified = complexify_each(input);
System.out.println(input);
System.out.println(doubled);
System.out.println(complexified);