Skip to content

Instantly share code, notes, and snippets.

View vio1etus's full-sized avatar
🏠
Working from home

Heyi Zhang vio1etus

🏠
Working from home
  • 21:34 (UTC +08:00)
View GitHub Profile
(* RapidChain: Scaling Blockchain via Full Sharding *)
(* OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding https://eprint.iacr.org/2017/406.pdf *)
(* ida, kademlia, cross-verify, reshard, bootstrap *)
(* opt: batch, pipeline, sparsify *)
type state (* utxo state: transaction id, row *)
type signature (* public-key signature *)
@greyli
greyli / app.py
Last active February 25, 2024 03:04
Photo upload and manage with Flask and Flask-Uploads (Multiple file upload support!).
# -*- coding: utf-8 -*-
import os
import uuid
from flask import Flask, render_template, redirect, url_for, request
from flask_uploads import UploadSet, configure_uploads, IMAGES, patch_request_class
from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileRequired, FileAllowed
from wtforms import SubmitField