Skip to content

Instantly share code, notes, and snippets.

View 153's full-sized avatar
🚬
NEET

153

🚬
NEET
  • 18:32 (UTC +08:00)
View GitHub Profile
#!/bin/env python3
# Thanks Kafli!
import socketio
import requests
import datetime
import getopt
import sys
import time
class User:
#!/usr/bin/env python3
import cgi
import os.path
import sys
import math
import mistune
site_name = "4x13"
blog_title = "wlog"
pages_dir = "./wlog-pages/"
import random
def content():
print("""<head>
<title>4x13 :: me</title>
<link rel="stylesheet" type="text/css" href="/style.css">
</head>
<body style="width:250px">
<h1>me</h1><a href="/"><img src="/me.png"></a>
@153
153 / game.py
Last active August 29, 2015 14:00
Simple game which generates income. donors.txt is a csv such like "name optionalurl points"
import csv
def head():
print("""<html>
<head><title>4x13 :: game</title>
<link rel="stylesheet" type="text/css" href="/style.css"></head>
<body><h1>game</h1>
<a href="/"><img src="/game.png"></a><br>
<hr><center><table>
<tr><td colspan="3"><b>winners</b>: <i>game has no losers</i>