Skip to content

Instantly share code, notes, and snippets.

View MKelber's full-sized avatar

Mason Kelber MKelber

View GitHub Profile

FoodFight Iframe Integration Guide

Overview

This document outlines the technical requirements and implementation details for third-party developers who wish to integrate the FoodFight ordering system within their applications using iframes.

Responsibility Legend

  • 🔵 FoodFight Team - Changes/configurations required on our end
  • 🟢 External Developer - Implementation required by third-party developers
  • 🟣 Both Teams - Collaborative implementation required
@MKelber
MKelber / minePYTHON36.py
Created November 9, 2020 02:35 — forked from turunut/minePYTHON36.py
Example of how a Bitcoin block is mined by finding a successful nonce
import hashlib, struct, codecs
ver = 2
prev_block = "000000000000000117c80378b8da0e33559b5997f2ad55e2f7d18ec1975b9717"
mrkl_root = "871714dcbae6c8193a2bb9b2a69fe1c0440399f38d94b3a0f1b447275a29978a"
time_ = 0x53058b35 # 2014-02-20 04:57:25
bits = 0x19015f53
# https://en.bitcoin.it/wiki/Difficulty
exp = bits >> 24