Sublime 2 Plgugins

//Settings - User { "font_size": 13, "translate_tabs_to_spaces": truem "trim_trailing_white_space_on_save": true } //Key Bindings - User [ { "keys": ["ctrl+shift+c"], "command": "open_terminal" } { "keys": ["alt+/"] "command": "auto_complete" } ] Package control Ctrl + ` import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation' Zen Coding SublimeLinter AdvancedNewFile ( Ctrl + Alt + N ) SideBarEnhancements PHPUnit jQuery

字體的念法

Verdana http://www.howjsay.com/index.php?word=verdana Arial http://www.howjsay.com/index.php?word=arial Helvetica http://www.howjsay.com/index.php?word=helvetica

在命令提示字元底下格式化顯示 JSON 內容

當我們需要在命令提示字元下顯示 JSON 字串的時候,通常得到的是一串沒有縮排的內文。 不過利用 python -mjson.tool 的協助,可以將內容格式化後顯示,看起來漂亮多了! 安裝

檢測大陸身份證字號 for PHP

PHP 版本的檢測大陸身份證字號 <?php $id = trim($id); //長度檢查 $string_length = strlen($id); if ( $string_length != 18) { return false; } //數字檢查 //前17碼必須為數字 for ($i = 0; $i &lt; $string_length - 1; $i++) { if ( ! is_numeric($id[$i]) ) { return

Monitoring JBoss logfile with Chainsaw v2

Chainsaw 可以用來監控 JBoss 所使用的 Log4j,透過以下的設定,讓開啟 Chainsaw 的時候自動監聽。 設定 JBoss 首先找到 {JBOSS_HOME}server{YOUR_SERVER_FOLDER}confjboss-log4j.xml 開啟之後在 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> ... </log4j:configuration> 之間增加一個 appender <appender name="SOCKET" class="org.apache.log4j.net.SocketHubAppender"> <param name="Port" value="8888"/> </appender>