像是C語言中的;
bash中沒有do nothing的語法
* touch /dev/null [Keystrokes: 15. Runtime: 0.02s]
* sleep 0 [Keystrokes: 7. Runtime: 0.03s]
* A=0 [Keystrokes: 3. Runtime: 0.00s]
interesting
* touch /dev/null [Keystrokes: 15. Runtime: 0.02s]
* sleep 0 [Keystrokes: 7. Runtime: 0.03s]
* A=0 [Keystrokes: 3. Runtime: 0.00s]
tag: linux
// ==UserScript==
// @name yahoo username & password filler
// @namespace http://birdegg.tw
// @description 懶人的工具
// @inclue http://tw.login.yahoo.com/
// @inclue http://login.yahoo.com/
// ==/UserScript==
window.addEventListener(
'load',
function() {
var login = document.getElementsByName('login')[0];
var passwd = document.getElementsByName('passwd')[0];
login.value = "username";
passwd.value = "passwd";
},
false
);
<META HTTP-EQUIV="refresh" CONTENT="0;URL=http://us.imdb.com/title/tt0414387">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-2022-JP">
<META HTTP-EQUIV="Window-target" CONTENT="_top">
<META NAME="ROBOTS" CONTENT="NOINDEX,FOLLOW">
<META NAME="keywords" CONTENT="oranges, lemons, limes">
#!/bin/bash
user="birdegg1108"
passwd=""
#sort -n 以數字排序
datas=`cat active.account|grep 3322.org|sort -n -t's' -k2|uniq`
for data in $datas
do
number=`echo $data|cut -d'.' -f1|cut -d'f' -f2`
if [ "$passwd" == "" ]; then
echo "$number \"ftp://$user@$data\""
else
echo "$number \"ftp://$user:$passwd@$data\""
fi
done
1: public static int binarySearch(int[] a, int key) {
2: int low = 0;
3: int high = a.length - 1;
4:
5: while (low <= high) {
6: int mid = (low + high) / 2;
7: int midVal = a[mid];
8:
9: if (midVal < key)
10: low = mid + 1;
11: else if (midVal > key)
12: high = mid - 1;
13: else
14: return mid; // key found
15: }
16: return -(low + 1); // key not found.
17: }
6: int mid = low + ((high - low) / 2);
6: mid = ((unsigned) (low + high)
/* (C) 2003 - 2004 www.chedong.com
* Free for all users, but leave in this header
* click based user analysis:
* usage: touch a empty click.gif or create a static page on at server
* including following script into your html page
*/
document.onclick = clickStat;
function clickStat() {
// create a new empty element
var image = document.createElement("<img src="" />");
// record client screen size and mouse coordinate
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
image.src = "http://www.chedong.com/click_stats.php?width=" + screen.width + "&x="
+ tempX + "&y=" + tempY;
image.height = 0;
image.width = 0;
//send request to stat server
document.body.insertBefore(image);
return true;
}
<form action=http://www.google.com/search name=f>
<input type=hidden name=hl value=zh-TW>
<input maxlength=2048 size=55 name=q title="Google 搜尋">
<input type=submit value="Google 搜尋" name=btnG>
</form>
// ==UserScript==
// @name google at yahoo
// @namespace http://birdegg.tw
// @description add a search box at http://tw.yahoo.com
// @include http://tw.yahoo.com/
// @include http://localhost/*
// ==/UserScript==
var hotsch = document.getElementById('hotsch');
hotsch.innerHTML = "";
var googlediv = document.createElement("DIV");
googlediv.innerHTML = "
<form action=\"http://www.google.com/search\" name=f>
<input type=hidden name=hl value=zh-TW><
input maxlength=2048 size=39 name=q title=\"Google\">
<input type=submit value=\"Google\"
name=btnG></form>"
hotsch.appendChild(googlediv);