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
p神注销了!从此对我来说豆瓣就是一个没有男神的地方的。现在我能做的,就是让p神的神迹在新注册的友邻中流传“从前豆瓣上有一个p神,他读过了cs领域每一本书,当然,他很不喜欢(formal) semantics ... | |
p神真正地神格化了,它已经与CS类书评数据合为一体,融入了推荐系统的AI里,活在了每一次豆瓣猜中。而我永远怀念的,却是他那品味算不高的AV番号…… | |
许多年之后,面对豆瓣猜,X君准会想起那个P神注销的遥远的上午。 | |
想起评论区曾经一度被p神所支配的恐怖,还有被囚禁于p神阅读面里的那份屈辱 - |
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
"""How to crash syslog.syslog | |
File: crash_syslog.py | |
Running this will product this output: | |
Traceback (most recent call last): | |
File "./crash_syslog.py", line 12, in <module> | |
syslog(LOG_INFO, base64.b64decode(b64)) | |
TypeError: [priority,] message string |
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
#download the JDK | |
#oracle's rpm.bin gets pulled down as corrupt..zzz | |
#wget --no-cookies --header "Cookie: gpw_e24=xxx" "http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64-rpm.bin" -O jdk-7-linux-x64-rpm.bin | |
#updated for version 7u11 | |
wget --no-cookies --header "Cookie: gpw_e24=xxx" http://download.oracle.com/otn-pub/java/jdk/7u11-b21/jdk-7u11-linux-x64.rpm -O jdk-7u11-linux-x64.rpm | |
sudo rpm -ivh jdk-7u11-linux-x64.rpm | |
sudo alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 |
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
import QtQuick 1.1 | |
Item { | |
width: 200 | |
height: 300 | |
ListView { | |
anchors.fill: parent | |
model: nestedModel | |
delegate: categoryDelegate |
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/python | |
# borrowed from https://github.com/lbolla/dotfiles/blob/master/githooks/pre-commit | |
import os | |
import sys | |
import re | |
import subprocess | |
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
from geventwebsocket.handler import WebSocketHandler | |
from gevent.pywsgi import WSGIServer | |
from flask import Flask, request, render_template | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return render_template('index.html') |
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
grammar SQL | |
rule statement | |
select_statement <Veritas::SQL::Select> | |
| set_operation_statement <Veritas::SQL::SetOperation> | |
| "(" [\s]* statement [\s]* ")" | |
end | |
rule set_operation_statement | |
"(" [\s]* left:select_statement <Veritas::SQL::Select> [\s]* ")" | |
[\s]* set_operator ([\s]+ distinct:`DISTINCT`)? [\s]* |
NewerOlder