Skip to content

Instantly share code, notes, and snippets.

@jbroadway
jbroadway / Slimdown.md
Last active February 20, 2025 13:00
Slimdown - A simple regex-based Markdown parser.
@scturtle
scturtle / gist:2575752
Created May 2, 2012 10:23
game theory note

Game Theory Class on Coursera

chapter 1

  • stable pair of pure strategies
  • constant-sum game
  • strictly(weakly) dominant strategy
  • best response
  • pure strategy Nash equilibrium (if $a_i$ a best response to $a_{-i}$ for all i)
@sontek
sontek / snowjob.sh
Last active May 5, 2025 11:13
Make your terminal snow
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear
@scturtle
scturtle / ftpserver.py
Created June 20, 2011 16:03
simple ftp server by python
#!/usr/bin/env python2
# coding: utf-8
import os,socket,threading,time
#import traceback
allow_delete = False
local_ip = socket.gethostbyname(socket.gethostname())
local_port = 8888
currdir=os.path.abspath('.')