Skip to content

Instantly share code, notes, and snippets.

"[{\"id\":\"BTC-GBP\",\"base_currency\":\"BTC\",\"quote_currency\":\"GBP\",\"base_min_size\":\"0.01\",\"base_max_size\":\"10000\",\"quote_increment\":\"0.01\",\"display_name\":\"BTC/GBP\"},{\"id\":\"BTC-EUR\",\"base_currency\":\"BTC\",\"quote_currency\":\"EUR\",\"base_min_size\":\"0.01\",\"base_max_size\":\"10000\",\"quote_increment\":\"0.01\",\"display_name\":\"BTC/EUR\"},{\"id\":\"ETH-USD\",\"base_currency\":\"ETH\",\"quote_currency\":\"USD\",\"base_min_size\":\"0.01\",\"base_max_size\":\"1000000\",\"quote_increment\":\"0.01\",\"display_name\":\"ETH/USD\"},{\"id\":\"ETH-BTC\",\"base_currency\":\"ETH\",\"quote_currency\":\"BTC\",\"base_min_size\":\"0.01\",\"base_max_size\":\"1000000\",\"quote_increment\":\"0.00001\",\"display_name\":\"ETH/BTC\"},{\"id\":\"LTC-USD\",\"base_currency\":\"LTC\",\"quote_currency\":\"USD\",\"base_min_size\":\"0.01\",\"base_max_size\":\"1000000\",\"quote_increment\":\"0.01\",\"display_name\":\"LTC/USD\"},{\"id\":\"LTC-BTC\",\"base_currency\":\"LTC\",\"quote_currency\":\"BTC\",\"bas
[
{
"product_id": "test-product",
"sequence": 1,
"public_sequence": 1,
"timestamp": "1478568687.424000",
"user_id": "quick-place-user",
"profile_id": "899423c5-30dd-44ce-be75-a95f1d03dfd9",
"order_id": "f2e622b7-915f-4e93-afac-6a116e636482",
"order_type": "limit",
@loriopatrick
loriopatrick / .tmux.conf
Created September 24, 2016 19:42
dotenv
set -g default-terminal "xterm"
set -sg escape-time 0
# Use C-a as prefix
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
[{"msg":"hello","seq":1},
{"msg":"hello","seq":2},
{"msg":"hello","seq":3},
{"msg":"hello","seq":4},
{"msg":"hello","seq":6},
{"msg":"hello","seq":8},
{"msg":"hello","seq":7},
{"msg":"hello","seq":8},
{"msg":"hello","seq":9},
{"msg":"hello","seq":12},
0012f3a5-9107-4790-bd86-719372cb6ab0
069b6679-9e02-42e0-8dd0-6e1ff8ff09de
08715709-80c9-4b15-9523-be0bf2ebafaa
0ca03b89-006d-49e7-9d7f-ea1c1620bb92
24ba40a1-1438-4831-abb3-950a213802d5
3678879f-d1e7-440a-9a4e-d91b099712a7
3a61ad78-7ca0-4e68-8513-6b87b774d899
50cc6f1f-a48d-4805-8bb8-bdda9815ec42
6eb05d02-6991-4733-aeed-ce81ce766146
7416f2a9-9daa-4e9c-96a5-c0a7406239ef

Keybase proof

I hereby claim:

  • I am loriopatrick on github.
  • I am plorio (https://keybase.io/plorio) on keybase.
  • I have a public key whose fingerprint is 7519 1963 9F67 B412 A192 9356 183F 16DF E649 0629

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am loriopatrick on github.
  • I am plorio (https://keybase.io/plorio) on keybase.
  • I have a public key whose fingerprint is CD62 C033 CFF3 478A CE60 C48A 9518 BA65 5338 15C2

To claim this, I am signing this object:

@loriopatrick
loriopatrick / commands.sh
Created April 15, 2015 05:49
Test gitlet with bash
# execute commands
gitlet init
echo 'a init' > a_other_change.txt
echo 'b init' > b_master_change.txt
echo 'c init' > c_other_remove.txt
echo 'd init' > d_master_remove.txt
echo 'e init' > e_both_remove.txt
echo 'f init' > f_both_change.txt
@loriopatrick
loriopatrick / textr
Created October 12, 2014 07:36
TextureRegion
TextureRegion[][] parts = TextureRegion.split(new Texture("path.png"), 15, 23);
boolean[][] used = new boolean[parts.length][parts[0].length];
Random random = new Random();
int ix = random.nextInt(used.length);
int iy = random.nextInt(used[0].length);
while (used[ix][iy]) {
// todo: pick new
}
@loriopatrick
loriopatrick / Amazon.java
Created June 4, 2014 11:07
A helper class to make requests to Amazon's product api.
import org.joda.time.DateTime;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import javax.xml.bind.DatatypeConverter;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Iterator;