Skip to content

Instantly share code, notes, and snippets.

View mardlin's full-sized avatar

John Mardlin mardlin

View GitHub Profile
@mardlin
mardlin / md-anchors.md
Created October 24, 2016 12:57
markdown anchor test
  • a
  • m

a

@mardlin
mardlin / 10189.js
Created March 24, 2016 19:24
works for me :)
var Client = require('./coinbase-node').Client;
var client = new Client({
'apiKey': 'bTSRsOipbMgBfYb6',
'apiSecret': 'lzAsP0prLfpGruFBbJPZM1XtBZiD9R5D',
'baseApiUri': 'https://api.sandbox.coinbase.com/v2/',
});
client.getAccounts({}, function(err, accounts) {
#!/usr/bin/env node
// npm install crypto
var crypto = require('crypto');
// npm install request
var request = require('request');
// Set these in your ENVironment, or replace them with the actual string
// sandbox:
Verifying that +jjmardlin is my blockchain ID. https://onename.com/jjmardlin
## In response to https://community.coinbase.com/t/exchange-api-order-placement-results-in-a-missing-product-id/6818
import json, hmac, hashlib, time, base64, requests
from requests.auth import AuthBase
# Sandbox credentials and code. Key has all permissions.
API_KEY = ''
API_SECRET = ''
API_PASS = ''
@mardlin
mardlin / coinbaseAuthUrlGenerator.js
Last active May 10, 2025 08:59
A simple script for building a Coinbase Connect Authorization URL
/*
* A simple script for building an authorization redirect URL for your Coinbase Connect app.
* Follow the ##STEPS
*/
/* ##STEP1**: To generate an Authorization URI for a Sandbox App, set this to TRUE
* Hint: If you're using this script, you probably want to start on the Sandbox
*/
var useSandbox = true;

Keybase proof

I hereby claim:

  • I am mardlin on github.
  • I am jjmardlin (https://keybase.io/jjmardlin) on keybase.
  • I have a public key whose fingerprint is C367 AA4F 5404 3A31 9434 70D1 7818 71A6 1E12 924D

To claim this, I am signing this object: