Skip to content

Instantly share code, notes, and snippets.

View pohmelie's full-sized avatar
🐗

Nikita Melentev pohmelie

🐗
  • Tbilisi, Georgia
View GitHub Profile
@pohmelie
pohmelie / aio.lua
Last active November 16, 2015 11:09
aio — primitive asyncio-like coroutines scheduler
local M = {}
M.tasks = {}
function M.yield(...)
return coroutine.yield({args=table.pack(...)})
end
@pohmelie
pohmelie / rubattle-D2-online.md
Last active August 29, 2015 14:15
PG (rubattle.net) diablo II players online

PG (rubattle.net) diablo II players online

Grabs snapshots of rubattle.net from «wayback machine» (thanks for API ;) and gets the online of Diablo II LOD server. Split results by UTC time of snapshot (don't forget UTC+4 cause moscow) by three groups. Build some nice graph to svg via pygal.

Requirements

  • python3
  • requests
  • beautifulsoup4
  • pygal

Result

result