Just a reminder which helps me doing responsive design's Media Query.
@media (max-width: 767px)@media (max-width: 480px)@media (min-width: 768px) and (max-width: 979px)@media (min-width: 980px)@media (min-width: 1200px)
注意 :上面的順序是有意義的 更改順序會導致CSS被蓋掉
@media (max-width: 767px)@media (max-width: 480px)@media (min-width: 768px) and (max-width: 979px)@media (min-width: 980px)@media (min-width: 1200px)
Sublime, the awesome, amazing editor.1. Get 64bit portable version
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'3. Install Packages (All from package control)
Under WINMERGE if not WINMERGE: if os.path.exists("%s\KDiff3\KDiff3.exe" % os.environ['ProgramFiles(x86)']): WINMERGE = '"%s\KDiff3\KDiff3.exe"' % os.environ['ProgramFiles(x86)'] else: WINMERGE = '"%s\KDiff3\KDiff3.exe"' % os.environ['ProgramFiles'] …… End of run_diff functionif from_file == 'from_file' or to_file == 'to_file': cmd_line = '%s "%s" "%s"' % (WINMERGE, from_file, to_file) print "KDiff3 command: " + cmd_line Popen(cmd_line)
class Git(): def __init__(self, tortoise_proc_path, root_dir): self.git_path = os.path.abspath('C:\\PATH\\git.exe')
WINMERGE = "F:\WinMerge-2.12.4\WinMergeU.exe"
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\SublimeText] @="Edit With Sublime Text2" "Icon"="D:\\WindowsApp\\Sublime\\sublime_text.exe" "Position"="Bottom" [HKEY_CLASSES_ROOT\*\shell\SublimeText\command] @="D:\\WindowsApp\\Sublime\\sublime_text.exe %1"
這篇文章我從Twitter 打到 Tumblr, 從Tumblr 打到 Blogger
昨天才看完電影,今天全憑記憶打,不知不覺就打了好多,部分英文可能有錯就不要太在意了
教育相關
政治相關
人生相關
最後一句看似簡單但卻意義非凡的話
One’s life must mean more than that.
正適合送給所有正在為自己理性/夢想打拼的人
加油!
A post to remember
Basic Java Way :
import java.io.*; |
With HttpClient, the testURL method become easier
public void testURL(String testURL, String name, String pwd) { |
Reference :
http://www.mkyong.com/java/java-https-client-httpsurlconnection-example/
http://hc.apache.org/httpcomponents-client-ga/examples.html