Skip to content

Instantly share code, notes, and snippets.

Jackson Palmer ummjackson

Block or report user

Report or block ummjackson

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
@ummjackson
ummjackson / 0_reuse_code.js
Created Jan 21, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:262c75006845d0013a1a
Verifying myself: My Bitcoin username is +ummjackson. https://onename.io/ummjackson
View orders.json
This file has been truncated, but you can view the full file.
{
"count": 1005,
"results": [
{
"available_actions": [],
"buyer_requirements": {},
"created_at": "1438125176",
"id": "SP-6QYXDIAG",
"items": [
@ummjackson
ummjackson / query.py
Last active Aug 29, 2015
Purse.io Data Spelunking
View query.py
import requests, simplejson
url = 'https://api.purse.io/api/v1/orders'
headers = {'Content-Type': 'application/json', 'Authorization': 'JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InVtbWphY2tzb250ZXN0IiwidXNlcl9pZCI6NDM5MTYsImlwIjoiMTczLjI0Ny4yMDUuOSIsInIiOiJ3Q2VhTERMVCIsImV4cCI6MTQzODMyNTM1MCwiZW1haWwiOiJuby1yZXBseUB1bW1qYWNrc29uLmNvbSJ9.jz4jAeQmEPQ8-f-Atm9XKI9hXIuh8mMmdPlMRTZNnIw'}
r = requests.get(url, headers=headers)
with open('orders.json', 'w') as output:
output.write(simplejson.dumps(simplejson.loads(r.content), indent=4, sort_keys=True))
View orders.json
This file has been truncated, but you can view the full file.
{
"count": 1005,
"results": [
{
"available_actions": [],
"buyer_requirements": {},
"created_at": "1438125176",
"id": "SP-6QYXDIAG",
"items": [
@ummjackson
ummjackson / Peach v1 API Endpoints.md
Last active Jul 11, 2019
Peach v1 API Endpoints
View Peach v1 API Endpoints.md

Peach (peach.cool) API Endpoints

Peach is hot right now so I poked around their API using https://mitmproxy.org/

As of the last update, this seems to be a fairly extensive/complete list of v1 endpoints, but feel free to submit revisions to this gist with any others you find!

Login

@ummjackson
ummjackson / social-requirements.md
Created Nov 8, 2016
Brainstorming about what Twitter could be... 🤔
View social-requirements.md

This is a WIP

Basics

  • Implement core feature set of Twitter (users, statuses, followers/friends, lists, blocking)
  • Do not implement direct messaging initially (there are already any IM clients out there)
  • Implement 1:1 replica of Twitter v1.1 API
    • Very generous limits up-front (only what's needed to avoid denial of service / spam attacks)
    • Clients must register a Client ID prior to making requests (same as Twitter)
@ummjackson
ummjackson / entities.js
Created Feb 14, 2017
nunjucks filter to add entities
View entities.js
env.addFilter('addEntities', function(body, entities) {
if (!(entities)) {
return body;
}
// This is very naive, should find a better way to parse this
var index_map = {}
$.each(entities.urls, function(i,entry) {
index_map[entry.indices[0]] = [entry.indices[1], function(text) {return "<a href='"+escapeHTML(entry.url)+"'>"+escapeHTML(text)+"</a>"}]
@ummjackson
ummjackson / chime-backup.md
Created Apr 7, 2017
chime.social data backup, prior to closure of instance.
View chime-backup.md

🔔 chime.social backup

this is a backup of tables containing non-private/sensitive data from chime.social, prior to the closure of the instance.

View data.json
{
"seriesone": [
[1,
100
],
[2,
200
]
],
"seriestwo": [
You can’t perform that action at this time.