Skip to content

Instantly share code, notes, and snippets.

View akgnah's full-sized avatar

akgnah

  • Shenzhen, China
View GitHub Profile
@akgnah
akgnah / lmdb.tcl
Created May 12, 2023 05:19 — forked from antirez/lmdb.tcl
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!
@akgnah
akgnah / road-tree.py
Last active September 30, 2017 09:40
fanfou-py demo
# -*- coding: utf-8 -*-
import os
import re
import json
import time
import shelve
import datetime
import fanfou
curdir = os.path.dirname(os.path.abspath(__file__))