This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#涉及到真实的服务器地址一律以 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$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
NewerOlder