Skip to content

Instantly share code, notes, and snippets.

View thomasdavis's full-sized avatar

Thomas Davis thomasdavis

View GitHub Profile
@thomasdavis
thomasdavis / prod_postgres.md
Created March 14, 2017 07:09 — forked from selenamarie/prod_postgres.md
An Ideal Postgres Environment

Ideal Postgres environment

Documentation

  • Documented replication topology
  • Documented network topology
  • Documented interface topology - including users, passwords, connection estimates, load balancers, connection proxies
  • Documented procedure, schedule for failover and testing
  • Documented procedure, schedule for disaster recovery and testing
onWheel (e) {
e.stopPropagation();
const node = ReactDOM.findDOMNode(this.refs.panes);
if (e.nativeEvent.deltaY + node.scrollTop < 0) {
node.scrollTop = 0;
e.preventDefault();
}
if (e.nativeEvent.deltaY + node.scrollTop > node.scrollHeight - node.clientHeight) {
node.scrollTop = node.scrollHeight - node.clientHeight;
e.preventDefault();
@thomasdavis
thomasdavis / aasd
Created September 13, 2017 00:45
asd
asdads
backend:
name: github
repo: rolandnsharp/rolandsharp.com
media_folder: static/assets
public_folder: assets
collections:
- name: blog
label: Blog
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDUDlIxvCqS/eiZmLBDVIdxkF+Cgj74YnU+Me42FFKt+LeVfDYHcrVpLz/X6xp2/40EDm2hplTERgCjc9ljcrzsX0a6K0OAu5XK3gGqig+kI5g46nEgWxbyAiNo0QcEm9POxUD68d2vI9q1+7sKVdRTnVquVUXrRGr8dgZwZvPs4gCreJc/C0tBE21k4kuiMI0sySGI0OSUHvZs6c44v3rlEoA1zl104gdbWBbseY12EXBf2lmijfKuEbkM+C4eExmQeGS0p2CkmoZfN0ZCG9lGVcW/2KlOYBEpso/lStSUsmMSt9PLQOSJD8ZPF+DbX6iCTuCy9bnEsWKJKg6keSdv ajax@love
openapi: '3.0.0'
info:
version: 1.0.0
title: BlockBid API Gateway
license:
name: MIT
servers:
- url: https://api.blockbid.io
paths:
/healthz:
openapi: '3.0.0'
info:
version: 1.0.0
title: BlockBid API Gateway
license:
name: MIT
servers:
- url: https://api.blockbid.io
paths:
/healthz:
# -*- coding: utf-8 -*-
import os
import sys
# -----------------------------------------------------------------------------
this_folder = os.path.dirname(os.path.abspath(__file__))
root_folder = os.path.dirname(os.path.dirname(this_folder))
sys.path.append(root_folder + '/python')
const key = "zzz";
const secret = "aaa";
const payload = {
orders: [
{ volume: "0.000001", orderType: "limit", price: "0.000001", side: "buy" }
],
market: "btctusd"
import { Component } from "react";
import styled from "styled-components";
const Layout = styled.div`
background: red;
width: 200px;
height: 200px;
`;
const Input = styled.input`