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
// 最新HOSTS法去除优酷、爱奇艺等视频网站广告 http://www.oschina.net/code/snippet_1262919_27114 | |
#优酷 | |
127.0.0.1 atm.youku.com | |
127.0.0.1 Fvid.atm.youku.com | |
127.0.0.1 html.atm.youku.com | |
127.0.0.1 valb.atm.youku.com | |
127.0.0.1 valf.atm.youku.com | |
127.0.0.1 valo.atm.youku.com |
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 | |
// http://www.9lessons.info/2009/03/generate-xml-rss-feed-with-php.html | |
$items = array( | |
array('title' => 'aaa', 'link' => 'www.google.com', 'description' => 'aaaaaaaaaaa'), | |
array('title' => 'bbb', 'link' => 'www.yahoo.com', 'description' => 'bbbbbbbbbbb'), | |
); | |
header("Content-type: text/xml"); | |
echo "<?xml version='1.0' encoding='UTF-8'?> |
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
raspistill -o photo%04d.jpg -w 800 -h 600 -q 10 -t 99999999 -tl 600000 & | |
raspistill -o photo%04d.jpg -q 100 -t 99999999 -tl 600000 & | |
# 照片见微云 | |
total 6.7M | |
drwxr-xr-x 2 pi pi 4.0K Dec 3 19:50 . | |
drwxr-xr-x 7 pi pi 4.0K Dec 3 19:56 .. | |
-rw-r--r-- 1 pi pi 44K Dec 2 21:39 photo0001.jpg | |
-rw-r--r-- 1 pi pi 44K Dec 2 21:49 photo0002.jpg |
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
var ids = document.querySelectorAll(".member_id"); | |
var names = document.querySelectorAll(".member_name"); | |
var output = "", length = ids.length; | |
for(var i=0; i<length; i++){ | |
output += ids[i].innerHTML.slice(1,-1) + ":" + names[i].innerHTML + "\n"; | |
} | |
console.log(output); |
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
([]+[])[ ([][(![ ] | |
+[])[+[ ]]+([![ ]]+[][ []])[+ | |
!+[]+[+ []]]+(! []+[]) [!+[]+!+[ | |
]]+(!![ ]+[])[+ []]+(! ![]+[])[ | |
!+[]+!+ []+!+[] ]+(!![ ]+[])[+! | |
+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+ |
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 | |
if [ $(id -u) != "0" ]; then | |
printf "Error: You must be root to run this tool!\n" | |
exit 1 | |
fi | |
clear | |
printf " | |
#################################################### | |
# # |
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
<HTML><HEAD> | |
<!-- codz by LANKER(QQ:18779569) 2005/1/1--> | |
<META content="text/html; charset=gb2312" http-equiv=Content-Type> | |
<META content="MSHTML 5.00.2614.3500" name=GENERATOR> | |
<style> | |
<!-- | |
td {font-size:8pt; color: #666666;font-family:Verdana} | |
INPUT {font-size:9pt;BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #ffffff} | |
textarea {font-size:9pt;BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #ffffff} | |
select {font-size:9pt;BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #ffffff} |
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 | |
// 转载自: http://blog.csdn.net/mypc2010/article/details/7771592 | |
/***************************************************************************** | |
===================== 请误用于非法用途,造成一切后果与本人无关。==================== | |
发布此版本是为了纪念安全天使曾经的辉煌。 | |
感谢你们与我一同走过:Sniper\Super·Hei\kEvin1986\saiy\wofeiwo。 | |
感谢所有的朋友们、兄弟们。多谢你们的关心和支持! | |
选择在1月7日发布是为了纪念我老婆的生日,预祝我在本命年里。咸鱼翻身! | |
====================== 最后预祝安全天使的每一位朋友飞黄腾达 ======================= | |
Codz by angel(4ngel) |
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 | |
// 用PHP迭代器来实现一个斐波纳契数列 | |
// 转载自: http://www.nowamagic.net/librarys/veda/detail/2164 | |
class Fibonacci implements Iterator { | |
private $previous = 1; | |
private $current = 0; | |
private $key = 0; | |
public function current() { | |
return $this->current; |
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 | |
//授权回调页面,即配置文件中的$callback_url | |
session_start(); | |
require_once('config.php'); | |
require_once('qq.php'); | |
if(isset($_GET['code']) && trim($_GET['code'])!=''){ | |
$qq=new qqPHP($qq_k, $qq_s); | |
$result=$qq->access_token($callback_url, $_GET['code']); | |
} |