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
标题:[八卦江湖]感谢这样一个极品的朋友给我带来了这样一个悲情的国庆,深度八做留 | |
恋。 | |
作者:蓉荣 板块:娱乐八卦 | |
首发:2010-10-05 11:45:00 | |
×××××××××××××××××××××××××××××××××××××× | |
日期:2010-10-05 11:45:00 | |
首先,祝大家国庆节快乐!虽然我国庆节过的非常悲剧。 |
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
[root@vps ~]#modprobe ipv6 | |
WARNING: Error inserting xfrm_nalgo (/lib/modules/2.6.18-194.32.1.el5xen/kernel/net/xfrm/xfrm_nalgo.ko): Unknown symbol in module, or unknown parameter (see dmesg) | |
FATAL: Error inserting ipv6 (/lib/modules/2.6.18-194.32.1.el5xen/kernel/net/ipv6/ipv6.ko): Unknown symbol in module, or unknown parameter (see dmesg) | |
============================================ | |
[root@vps ~]#dmesg | |
Bootdata ok (command line is root=/dev/sda1 ro ) | |
Linux version 2.6.18-194.32.1.el5xen ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jan 5 18:44:24 EST 2011 |
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
#in handlers.py: | |
class ImHandler(BaseHandler): | |
allowed_methods = ('GET',) | |
model = Message | |
fields = ('id', | |
('from_user', ('id', 'username', 'name'),), | |
'content', | |
'post_time', | |
) |
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
/* | |
Copyright (c) 2008, Adobe Systems Incorporated | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are | |
met: | |
* Redistributions of source code must retain the above copyright notice, | |
this list of conditions and the following disclaimer. |
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
module Jekyll | |
class RenderPartialTag < Liquid::Tag | |
def initialize(tag_name, file, tokens) | |
super | |
@file = file.strip | |
end | |
def render(context) | |
site = context.registers[:site] |
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
#include <stdio.h> | |
int main() { | |
printf("%d\n", '0'/(('0'+'0')/'0')); | |
printf("%d\n", '0'>>'0'/'0'+0); | |
printf("%d\n", -~-~-~-~-~-~0-~-~-~-~-~-~0-~-~-~-~-~-~0-~-~-~-~-~-~0); | |
return 0; | |
} |
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
require 'pygments' | |
require 'fileutils' | |
require 'digest/md5' | |
PYGMENTS_CACHE_DIR = File.expand_path('../../.pygments-cache', __FILE__) | |
FileUtils.mkdir_p(PYGMENTS_CACHE_DIR) | |
module HighlightCode | |
def highlight(str, lang) | |
lang = 'ruby' if lang == 'ru' |
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
require 'pygments' | |
if !!RUBY_PLATFORM['linux'] | |
RubyPython.configure :python_exe => '/usr/bin/python2.7' | |
end |
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
<?php | |
if (strpos($_SERVER['HTTP_REFERER'], "dayanjia.com") === FALSE) { | |
header('HTTP/1.1 403 Forbidden'); | |
die("Unauthorized access forbidden!"); | |
} | |
header('Content-Type: application/json; charset=utf-8'); | |
$user = $_GET['user']; | |
$count = $_GET['count']; |
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
CREATE TABLE `test` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`col1` enum('Mike','Bob','Jack','Alice','Cathy','Ann','Betty','Cindy','Mary','Jane') NOT NULL, | |
`col2` varchar(5) NOT NULL, | |
`col3` tinyint(4) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM; |
OlderNewer