Skip to content

Instantly share code, notes, and snippets.

View JokerQyou's full-sized avatar

Joker_ JokerQyou

View GitHub Profile
@JokerQyou
JokerQyou / sudoku.py
Created June 13, 2014 07:03
A Sudoku solver in Python2, can't find the original author
#!/usr/bin/env python
#coding=utf-8
units = ([[j for j in range(81) if j%9 == i] for i in range(9)] +
[[j for j in range(81) if j/9 == i] for i in range(9)] +
[[j for j in range(81) if (j%9)/3+(j/27)*3 == i] for i in range(9)])
uindexs = [[j for j, u in enumerate(units) if i in u] for i in range(81)]
class Sudoku(object):
@JokerQyou
JokerQyou / nginx.conf
Created July 7, 2013 14:19
Nginx configuration for my selfoss site
#涉及到真实的服务器地址一律以 myselfoss.com 代替
server {
listen 80;
server_name myselfoss.com;
index index.php index.html index.htm;
root /home/wwwroot/rss;
error_log /var/log/nginx/rss.error.log;
access_log off;
location ~ \.php$
@JokerQyou
JokerQyou / github.css
Last active December 18, 2015 00:18 — forked from andyferra/github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {