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
<?xml version="1.0" encoding="UTF-8" ?> | |
<rss version="2.0" xmlns:wf="http://www.microsoft.com/schemas/webfilter/2008"> | |
<channel> | |
<title>rules</title> | |
<description>Export of InPrivate Filtering</description> | |
<item><description>tiao.mxmxhaohaozhuan.com</description><wf:blockRegex><![CDATA[tiao.mxmxhaohaozhuan.com]]></wf:blockRegex></item> | |
</channel></rss> |
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
<!DOCTYPE html> | |
<html><body> | |
<script type="text/javascript"> | |
(function(){ | |
function genYUVColor(input){ | |
var Y,U,V; | |
var R,G,B; | |
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
<!DOCTYPE html> | |
<html><body> | |
<script type="text/javascript"> | |
(function(){ | |
function genYUVColor(input){ | |
var Y,U,V; | |
var R,G,B; | |
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
function genYUVColor(input){ | |
var Y,U,V; | |
var R,G,B; | |
Y = Math.floor(input / 65536); | |
U = Math.floor(input % 65536 / 256); | |
V = Math.floor(input % 256); | |
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 RGB2YUV(input): | |
(R, G, B) = input | |
Y = int(0.299 * R + 0.587 * G + 0.114 * B) | |
U = int(-0.147 * R + -0.289 * G + 0.436 * B) | |
V = int(0.615 * R + -0.515 * G + -0.100 * B) | |
return (Y, U, V) | |
def YUV2RGB(input): | |
(Y, U, V) = input |
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
int* return_pointer(){ | |
return (int*)malloc(sizeof(int)); | |
} | |
void modify_pointer(int **p){ | |
*p = (int*)malloc(sizeof(int)); | |
} |
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
/* | |
* Taken from http://sower.com.au/2011/06/jquery-multilevel-accordion-in-10-lines-of-code/ | |
*/ | |
$(document).ready(function() { | |
$('.menu li ul').hide(); | |
$('.menu li a').click( | |
function(evt) { | |
evt.preventDefault(); | |
evt.stopPropagation(); | |
var openMe = $(this).next(); |
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
<?php | |
class BindParam{ | |
private $values = array(), | |
$names = array(), | |
$types = '', | |
$question_marks = array(), | |
$table_name; | |
public function __construct($table){ | |
$this->table_name = $table; |
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
<?php | |
/** | |
* ext/mysqli不像PDO支持命名的变量绑定 | |
* 因此这里弄了个helper类来生成mysqli_stmt::bind_param所需的调用参数 | |
* 关于ext/mysqli可参考[http://codular.com/php-mysqli] | |
*/ | |
class BindParam{ | |
private $values = array(), | |
$names = array(), | |
$types = '', |
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
/** | |
** [email protected] | |
** 2013-3-14 | |
** 关于复合常量可参考[http://www.waikinq.com/the-c99s-new-characteristics/] | |
**/ | |
#define UNICODE | |
#include <windows.h> | |
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam){ | |
switch(uMsg){ | |
case WM_DESTROY: |
OlderNewer