Skip to content

Instantly share code, notes, and snippets.

@cupof-github
cupof-github / base58.py
Last active Mar 1, 2019
base58 encoder and decoder with Python.
View base58.py
"""
Foked from ( * Javascript ) :
inflammable/base58.js : ( https://gist.github.com/inflammable/2929362 )
Description:
- Base58 encoder and decoder, but re-written with Python. This is very covenient to generating 'shorting URL' from integer value ( like, article or post ID based database).
- you can encode to base58 string from Integer value.
- you can decode to Integer from base 58 String value.
Usage:
@cupof-github
cupof-github / guetzli.py
Last active May 8, 2017
Guetzli wrapper for Python
View guetzli.py
import os
import sys
class GuentzliWrapper:
""" This Class is wrapper for the guentzli, google develped.
You can encode multiple (jpeg || png) file via guentzli on CLI.
( Tested: Python 3.6, 2.7.13, pypy 5.7.0)