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:

@loriopatrick
loriopatrick / sdl2_opengl_example.c
Last active December 30, 2015 05:19
A simple SDL2/OpenGL demo
#include <stdio.h>
#include <stdlib.h>
#include "SDL2/SDL.h"
#include "SDL2/SDL_opengl.h"
int main(int argc, char** argv) {
// init
SDL_Init(SDL_INIT_EVERYTHING);
SDL_Window* window = SDL_CreateWindow("SDL2/OpenGL Demo", 0, 0, 640, 480, SDL_WINDOW_OPENGL|SDL_WINDOW_RESIZABLE);
@loriopatrick
loriopatrick / Physics Exam 1 Study Guide.md
Last active December 26, 2015 11:19
My study guide for ch23-25 in physics.

Physics Exam 1 Study Guide

Coulomb's Law / Electric Field ch.23

equation (units= N)

@loriopatrick
loriopatrick / factor.c
Created February 15, 2013 01:18
An attempt to factor numbers using binary multiplication and bitwise operators.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
// note, in binary 0x80 = [10000000], 0x7F = [011111111]
#define CHARS(BITS) (int)(((BITS) - (((BITS) - 1) % 8)) / 8) + 1
#define BIT(DATA, POS) ((DATA[(int)((POS) / 8)] & (0x80 >> ((POS) % 8))) != 0)
#define SET0(DATA, POS) DATA[(int)((POS) / 8)] &= (0x7F >> ((POS) % 8) | 0x7F << (8 - ((POS) % 8)))
@loriopatrick
loriopatrick / ezcrpyt.c
Created February 14, 2013 01:02
Something I created a long time ago while familiarizing myself with bitwise operators.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void encrypt (char * msg, int msg_len, char * key, int key_len) {
int i, p;
char c;
for (i = 0; i < msg_len; i++) {
c = msg[i];