Skip to content

Instantly share code, notes, and snippets.

Jon Eyrick jaggedsoft

Block or report user

Report or block jaggedsoft

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Coin_All_API.md

API概述

交易市场概况和基础信息

撮合引擎

成交价

CoinAll撮合系统撮合订单的优先级按照价格优于时间的优先级来撮合,优先撮合价格更有优势的订单。当价格一致时按照下单时间顺序撮合,先下单的先撮合。 比如深度列表中目前有3笔挂单等待成交,分别为1: 9900USDT买1BTC,2: 10100USDT买2BTC,3: 9900USDT买1.5BTC。他们是按时间顺序1-2-3进入撮合系统的,根据价格优先,系统优先撮合订单2,根据时间优先,1跟3优先撮合1。所以系统撮合顺序是2-1-3。

View keepAlive.js
const setTimeout = require('timers').setTimeout;
const clearTimeout = require('timers').clearTimeout;
const WebSocket = require('ws');
const Bluebird = require('bluebird');
const Queue = require('promise-queue');
const binance = require('../node-binance-api.js');
binance.options({
APIKEY: '<api key>',
APISECRET: '<api secret>',
@cryppadotta
cryppadotta / 001-Tradingview-Watchlist.md
Last active Oct 10, 2019
Tradingview Watchlist Import Files for Crypto Exchanges
View 001-Tradingview-Watchlist.md

Tradingview Watchlist Import Files for Crypto Exchanges

Below you'll find Tradingview import files for Bittrex and Binance BTC-base markets

Ordered by CMC's Market Cap

I use Tradingview and I like to quickly click through all coins on a particular exchange. The files below can be imported into a Tradingview watchlist.

★ ★ ★ If you use these, leave a comment or a star above ★ ★ ★

@raypulver
raypulver / order.js
Created Nov 20, 2017
creating an order with IDEX API
View order.js
const { soliditySha3 } = require('web3-utils');
const {
hashPersonalMessage,
bufferToHex,
toBuffer,
ecsign
} = require('ethereumjs-util')
const { mapValues } = require('lodash');
const contractAddress = '0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208';
@matthewzring
matthewzring / markdown-text-101.md
Last active Oct 18, 2019
A guide to Markdown on Discord.
View markdown-text-101.md

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

@malyw
malyw / index.js
Last active Oct 1, 2019
Capture DOM element screenshot using Chrome headless
View index.js
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
// Adjustments particular to this page to ensure we hit desktop breakpoint.
page.setViewport({width: 1000, height: 600, deviceScaleFactor: 1});
await page.goto('https://www.chromestatus.com/samples', {waitUntil: 'networkidle'});
@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active Oct 3, 2019
Technical guide for using YubiKey series 4 for GPG and SSH
View YubiKey-GPG-SSH-guide.md

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@btnwtn
btnwtn / 50.js
Last active Sep 18, 2019
Automat dat +50 clapping on Medium.com
View 50.js
(() => {
const up$ = new MouseEvent("mouseup", { bubbles: true });
const down$ = new MouseEvent("mousedown", { bubbles: true });
const node = document.querySelector(
`.js-postActionsFooter button[data-action="multivote"]`
);
let attempts = 0;
View image-queue.js
'use strict';
// Dependencies
const gcloud = require('google-cloud', {
projectId: 'sara-bigquery',
keyfileName: 'keyfile.json'
});
const vision = gcloud.vision();
const fs = require('fs');
const async = require('async');
@leonjza
leonjza / inject.py
Last active Mar 20, 2019
Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
View inject.py
# 2017 - @leonjza
#
# Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
# Full bug description: https://blog.sucuri.net/2017/02/content-injection-vulnerability-wordpress-rest-api.html
# Usage example:
#
# List available posts:
#
# $ python inject.py http://localhost:8070/
You can’t perform that action at this time.