This file contains 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
eNqzf9I9UTuBgcH+353ai5IzZ9k/j5j8My0t3f6ib8ipC7vP2D/N8rm4ACj/6/kiuU6g/AO+CW715RX2n6OSHA2A4q+UiuXV0tLsnz48pyr37p39M5GTTJONjR1YuoXl+4DiG/Yc9399bIr9p0/6/MW799ifFnQ1eQdU9/J4tsu8d+8YGBhYHThsjW5EXlK3/57yfxpbWtp/IHAQVK6aL8d20f7J+1nH7f//B6pjsv+wf1FU34VL9p83htsEMDCA1TFdj9GIkd5if1nu/uK6W5VgMdEz5Q6TMhbb33SvdywvLwfbIagzQ/zSZBP7N8Zx6puNTcDqhG3OfDROPGd/1JXrXvmRe2AxkdURCnsOs9if+LPqIlAjQ3bOYoa/GUcYrk54yeDyNYchVH8xQ9PFfwwXNvczSNZcZmB9FsZwcFkDg86xVwzGb9wZWp74MehN4mNgWG/FsOJJG9AEZgDa0qX6 |
This file contains 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 os | |
import ycm_core | |
flags = [ | |
'-Wall', | |
'-Wextra', | |
'-Werror', | |
'-Wc++98-compat', | |
'-Wno-long-long', | |
'-Wno-variadic-macros', |
This file contains 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 re | |
re.compile("(\"(\\\\\"|[^\"])*\")|('(\\\\\'|[^'])*')") # string |
This file contains 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
#!/bin/bash | |
while : | |
do | |
read TEXT | |
echo $TEXT | |
echo $TEXT > $1 | |
done |
This file contains 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
def framework(): | |
pipeline = [] | |
register = lambda test, handler: pipeline.append((test, handler)) | |
def processing(*args): | |
for test, handler in pipeline: | |
tested = test(*args) | |
if tested is not False: | |
return handler(*args) |
This file contains 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 pypeg import Symbol, parse | |
from .struct.pair import Pair | |
class ListContent(Pair): pass | |
class List(Pair): pass | |
expr = lambda: [Symbol, List, ] | |
List.grammar = '(', ListContent, ')' | |
ListContent.grammar = [(expr(), ListContent), None] |
This file contains 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
2014-05-24 15:34:27 惰性求治 | |
在吗? | |
2014-05-24 15:34:46 表弟 | |
恩 | |
2014-05-24 15:35:34 惰性求治 | |
你现在是不是觉得上课没意思,自己根本没兴趣。我之前也是这样感觉的…… | |
2014-05-24 15:36:26 表弟 |
This file contains 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 unittest | |
import logging | |
import time | |
import requests | |
import simplejson as json # simplejson 可以改成 Python 标准库 import josn | |
from Crypto.Cipher import AES # 加密模块为 pycrypto ,需要安装 | |
# 加密密钥为 1234567890123456 加密方法为 AES ECB ,字节填充方法为 PKCS#7 | |
This file contains 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
Anonymous UUID: 01D6FAAE-9E9A-87A2-4F1E-32D8C96636BC | |
Sun Aug 10 23:12:54 2014 | |
panic(cpu 0 caller 0xffffff800e6dc24e): Kernel trap at 0xffffff800e694169, type 14=page fault, registers: | |
CR0: 0x0000000080010033, CR2: 0x0000000000000030, CR3: 0x000000000ae7a011, CR4: 0x00000000001606e0 | |
RAX: 0x0000000000000000, RBX: 0x0000000000000000, RCX: 0x0000000001000000, RDX: 0x0000000000001000 | |
RSP: 0xffffff81fac1b9d0, RBP: 0xffffff81fac1ba10, RSI: 0x0000000000000000, RDI: 0xffffff803d128b60 | |
R8: 0xffffff81fac1ba68, R9: 0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000206 | |
R12: 0xffffff803d128b60, R13: 0x0000000000000a2b, R14: 0x0000000000000000, R15: 0x0000000000000a2c | |
RFL: 0x0000000000010286, RIP: 0xffffff800e694169, CS: 0x0000000000000008, SS: 0x0000000000000010 |
This file contains 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
Anonymous UUID: 01D6FAAE-9E9A-87A2-4F1E-32D8C96636BC | |
Tue Aug 12 23:26:36 2014 | |
panic(cpu 6 caller 0xffffff80018dc24e): Kernel trap at 0xffffff8001c51901, type 13=general protection, registers: | |
CR0: 0x0000000080010033, CR2: 0x00000000a1277478, CR3: 0x000000004ebfe002, CR4: 0x00000000001606e0 | |
RAX: 0xffffff802de57c00, RBX: 0x0000000000000000, RCX: 0x0000000000000000, RDX: 0x0000000000000190 | |
RSP: 0xffffff81ec7aba10, RBP: 0xffffff81ec7aba40, RSI: 0xffffff8022650590, RDI: 0x0101010101010101 | |
R8: 0x000000000000204b, R9: 0x0000000000000002, R10: 0x000000000000003e, R11: 0xffffff81a26e303e | |
R12: 0xffffff8001f03501, R13: 0x0000000000000000, R14: 0xffffff8001f034d0, R15: 0xffffff802df68900 | |
RFL: 0x0000000000010246, RIP: 0xffffff8001c51901, CS: 0x0000000000000008, SS: 0x0000000000000010 |
OlderNewer