BQ; <blockquote><cite></cite></blockquote>
BR; <br />
CODE; <code></code>
HR; <hr />
MORE; <!--more-->
I; 愛妳啾^3^
IMG; <img src="" />
P; <p></p>
REF; <ref></ref>
SEP; <div class="sep">我是分隔線</div>
SPF;
SPAN; <span></span>
標籤
.net
(
17
)
工作
(
29
)
面試
(
2
)
筆記
(
2
)
筆記倉庫
(
1
)
嘸蝦米
(
2
)
繪圖
(
1
)
Add-on
(
4
)
Android
(
39
)
AngularJS
(
1
)
ASP.NET
(
14
)
AutoHotKey
(
20
)
AutoIt
(
3
)
batch
(
24
)
Blogger Hack
(
3
)
Bookmarklet
(
18
)
C#
(
16
)
Chrome
(
1
)
cmd
(
22
)
CSS
(
6
)
CSS3
(
6
)
D855
(
1
)
DOM
(
17
)
DragOnIt
(
5
)
EmEditor
(
1
)
English
(
1
)
ffmpeg
(
1
)
Firefox
(
25
)
flo
(
2
)
GIMP
(
1
)
gist
(
144
)
Graphviz
(
1
)
hardware
(
1
)
HDD
(
1
)
HTML5
(
4
)
i18n
(
1
)
IIS
(
4
)
ImageMagick
(
5
)
Java
(
1
)
JavaScript
(
92
)
jhead
(
1
)
jQuery
(
6
)
JSBin
(
19
)
jsFiddle
(
4
)
JSON
(
1
)
JustDoubleClick
(
1
)
Kindle
(
1
)
MSSQL
(
26
)
MySQL
(
2
)
Network
(
1
)
node.js
(
12
)
php
(
1
)
PowerShell
(
6
)
ramdisk
(
1
)
Reg
(
3
)
RegExp
(
3
)
rpi3
(
3
)
SJ2000
(
1
)
SQLite
(
3
)
SSD
(
1
)
Stylish
(
1
)
SublimeText
(
2
)
tips
(
6
)
userChrome.js
(
3
)
userscript
(
40
)
VB.net
(
9
)
VBScript
(
2
)
VisualStudio
(
2
)
Vue.js
(
3
)
Win
(
5
)
Win2008
(
1
)
Win7
(
29
)
WinAPI
(
1
)
Winform
(
1
)
WinXP
(
3
)
XML
(
1
)
FDZ Direct External Link
標籤:
userscript
// ==UserScript==
// @name FDZ Direct External Link
// @description FDZ Direct External Link
// @run-at document-end
// @include http://forum.fdzone.org/viewthread.php?tid=*
// @include http://forum.*.fdzone.org/viewthread.php?tid=*
// ==/UserScript==
var links=document.querySelectorAll("a[href*='j.php?u']");
for(var i=0;i<links.length;i++)
links[i].href=decodeURIComponent(links[i].href.replace(/.*j.php\?u=/,''));
快速複製PasteCopy.NET全部清單
標籤:
EmEditor
快速複製PasteCopy.NET全部清單
加速整理Wretch相簿連結 XD
EmEditor Help: Macro Reference
加速整理Wretch相簿連結 XD
editor.OpenFile("D:\\軟體\\PasteCopy\\Clipboard.txt",eeEncodingUTF8,eeOpenAllowNewWindow);
document.selection.Replace("^(Nt,)","",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("R\\+,新類別\\n","",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace("(http://.*)$\\n","<a target=\"blank\" href=\"\\1\">\\1</a><br />\\n",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);
document.selection.SelectAll();
document.selection.Copy(eeCopyUnicode);
document.close();
- 開啟ClipBoard.txt
- RegExp取代
^(Nt,)
- RegExp取代
R\+,新類別\n
- 把網址替換成超連結>
- 全選
- 複製
- 關閉檔案
EmEditor Help: Macro Reference
查詢硬碟剩餘空間(using WinAPI)
using System.Runtime.InteropServices;
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool GetDiskFreeSpaceEx(string lpDirectoryName,
out ulong lpFreeBytesAvailable,
out ulong lpTotalNumberOfBytes,
out ulong lpTotalNumberOfFreeBytes);
string drive = "D:\\"; // 要查詢剩餘空間的磁碟
ulong FreeBytesAvailable;
ulong TotalNumberOfBytes;
ulong TotalNumberOfFreeBytes;
bool success = GetDiskFreeSpaceEx(drive, out FreeBytesAvailable, out TotalNumberOfBytes, out TotalNumberOfFreeBytes);
if (!success) throw new System.ComponentModel.Win32Exception();
double free_kilobytes = (double)(Int64)TotalNumberOfFreeBytes / 1024.0;
double free_megabytes = free_kilobytes / 1024.0;
double free_gigabytes = free_megabytes / 1024.0;
//取得Server IP
System.Net.IPAddress sever_ip = new System.Net.IPAddress(System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName()).AddressList[0].Address);
Response.Write(sever_ip.ToString() + " 剩餘 " + free_gigabytes.ToString("0.00") + " GB");
[C#]查詢硬碟剩餘空間(透過WinAPI) - .NET菜鳥自救會- 點部落
C# 如何取得本機(Server)的IP @ R~福氣拉! :: 隨意窩 Xuite日誌
Firefox tete009 PGO 安裝流程
標籤:
Firefox
雖然步驟很簡單,但是還是筆記一下,免得老來失憶。
Software - Tete's Atelier
Firefox想要更快?升級PGO+CPU指令集加速版 :: 綠色工廠 Easylife Blog
- 先到tete009官網下載最新版的Firefox和Module binder for Private Build
- 上述兩樣檔案,都解壓縮至目前Firefox所安裝的資料夾
- 執行tbind.exe(依照你的系統環境優化模組)
- 第一次執行後,安裝Language packs
- 網址列輸入about:config
- Filter欄位輸入general.useragent.locale,修改語系成zh-TW
- 重新啟動Firefox
- 收工
Software - Tete's Atelier
Firefox想要更快?升級PGO+CPU指令集加速版 :: 綠色工廠 Easylife Blog
[FireGestures] Browser Position
使用寬螢幕(1920 x 1280)時,快速切換Browser位置至左、中、右,寬度為1280,高度為screen.availHeight
FireGestures :: Make Scripts
FireGestures :: Get Scripts -> [Popup] Resize Window
FireGestures.BrowserPosition = function (x) {
window.resizeTo(1280, screen.availHeight);
window.screenX = x;
window.screenY = 0;
};
FireGestures.generatePopup(event,
[
{ label: "Left" ,oncommand: "this.BrowserPosition(0);" },
{ label: "Center" ,oncommand: "this.BrowserPosition((screen.width - 1280)/2);" },
{ label: "Right" ,oncommand: "this.BrowserPosition(screen.width-1280);" }
]
);
FireGestures :: Make Scripts
FireGestures :: Get Scripts -> [Popup] Resize Window
[FireGestures] Copy Page URL to Clipboard (CLS URL)
改寫官方提供的Copy Page Title and URL to Clipboard,並加入多餘參數清除功能,方便貼在MSN
目前支援:
FireGestures :: Get Scripts
相關文章:
delicious URL Clean
目前支援:
- Youtube
- RSS Source
- Mobile01
- Mobile01 貼圖區
const AS_HTML = true;
function htmlEscape(s) {
s = s.replace(/&/g, "&");
s = s.replace(/>/g, ">");
s = s.replace(/</g, "<");
s = s.replace(/"/g, """);
return s;
}
var l=window.content.location, tmp=l.href;
if(/(\?|&)utm_source.*/.test(tmp)) tmp=tmp.replace(/(\?|&)utm_source.*/i,'');
if((l.href.indexOf('youtube.com')!=-1) && (/(v=.{11})/.test(l.search))) tmp='http://www.youtube.com/watch'+l.search.replace(/.*(v=.{11}).*/i,'?$1');
if(/www\.mobile01\.com/.test(tmp)) tmp=tmp.replace(/&last=.*/,'');
if(/www\.mobile01\.com/.test(tmp) && /gallerydetail\.php/.test(tmp)) tmp=tmp.replace(/&fp=(\d{1})/,'');
var title = window.content.document.title;
var txt = AS_HTML ? '<a href="' + htmlEscape(tmp) + '">' + htmlEscape(title) + '</a>' : title + "\n" + tmp;
var clipboard = Cc["@mozilla.org/widget/clipboardhelper;1"].getService(Ci.nsIClipboardHelper);
clipboard.copyString(txt);
FireGestures :: Get Scripts
相關文章:
delicious URL Clean
delicious URL Clean
標籤:
userscript
加入delicious時,自動清除Youtube、Mobile01、RSS Source多餘參數
相關文章:
[FireGestures] Copy Page URL to Clipboard (CLS URL)
// ==UserScript==
// @name delicious URL Clean
// @description delicious URL Clean
// @author NKid
// @version 2012-06-08
// @run-at document-end
// @include http://delicious.com/save?url=*
// ==/UserScript==
var argUrl=/url=(.*)&title/.exec(decodeURIComponent(location.search))[1], tmp;
if(argUrl.indexOf('utm_source')!=-1){
tmp=argUrl.replace(/(\?|&)utm_source.*/i,'');
}
else if((argUrl.indexOf('youtube.com')!=-1) && (/(feature|hd|NR|playnext|list|p)=.*?/.test(argUrl))){
tmp='http://www.youtube.com/watch?' + argUrl.replace(/.*(v=.{11}).*/i,'$1');
}
else if(/www\.mobile01\.com/.test(argUrl) && /&fp=/.test(argUrl)) {
tmp=argUrl.replace(/&fp=(\d{1})/,'');
}
else if((argUrl.indexOf('mobile01.com')!=-1) && (/&last=/.test(argUrl))){
tmp=argUrl.substring(0,argUrl.indexOf('&last'));
}
if(tmp.length != 0) location.assign(location.pathname+'?url='+encodeURIComponent(tmp)+'&title'+location.search.replace(/\?url.*?&title/,''));
相關文章:
[FireGestures] Copy Page URL to Clipboard (CLS URL)
Improve your jQuery - 25 excellent tips
標籤:
jQuery
- Load the framework from Google Code
- Use a cheat sheet
- Combine all your scripts and minify them
- Use Firebug's excellent console logging facilities
- Keep selection operations to a minimum by caching
- Keep DOM manipulation to a minimum
- Wrap everything in a single element when doing any kind of DOM insertion
- Use IDs instead of classes wherever possible
- Give your selectors a context
- Use chaining properly
- Learn to use animate properly
- Learn about event delegation
- Use classes to store state
- Even better, use jQuery's internal data() method to store state
- Write your own selectors
- Streamline your HTML and modify it once the page has loaded
- Lazy load content for speed and SEO benefits
- Use jQuery's utility functions
- Use noconflict to rename the jquery object when using other frameworks
- How to tell when images have loaded
- Always use the latest version
- How to check if an element exists
- Add a JS class to your HTML attribute
- Return 'false' to prevent default behaviour
- Shorthand for the ready event
Improve your jQuery - 25 excellent tips
Create Shortcut URL
標籤:
AutoHotKey
簡化下載檔案時,常會使用的動作流程
;建立URL(Win + V)
#v::
if WinActive("ahk_class CabinetWClass") ;Explorer才執行
{
strlen:=StrLen(Clipboard) ;取得剪貼簿字串長度
if(strlen > 0)
{
URL=%Clipboard% ;從剪貼簿取得URL
Send !d ;焦點移至網址列 Alt + D
Send ^c ;Ctrl + C
ClipWait 1 ;等待OS 1秒
Send +{Tab} ;取消焦點
FileAppend,[InternetShortcut]`nURL=%URL%`nIconFile=`nIconIndex=1,%Clipboard%\URL.url
}
}
Return
;複製URL(Win + C)
#c::
if WinActive("ahk_class CabinetWClass") ;Explorer才執行
{
Send !{Enter} ;開啟內容
WinWaitActive, 內容, , 1
Send ^c ;Ctrl + C
ClipWait 1 ;等待OS 1秒
Send !{F4} ;關閉內容
}
Return
;反向選取(Win + A)
#a::
if WinActive("ahk_class CabinetWClass") ;Explorer才執行
{
Send {Alt}
Send e
Send i
}
Return
;滑鼠左右鍵切換視窗
~LButton & RButton::AltTab
;關閉主程式(Win + X)
#x::
ExitApp
訂閱:
文章
(
Atom
)