粗體為現在有安裝的軟體,一般則為已移除或是未安裝的軟體。
- Alfred 2 - 熱鍵、Spotlight
- coconutBattery - 電池記錄
- iTerm - 比Terminal更好用的Console
- Keka - 解壓縮軟體
- TeamViewer - 遠端控制。
| javascript: var jQueryScriptSourceURL='//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'; var jQueryScript=document.createElement('script'); jQueryScript.setAttribute('src',jQueryScriptSourceURL); if(document.getElementsByTagName('head').item(0)==null) document.getElementsByTagName('html').item(0).appendChild(document.createElement('head')); jQueryScript=document.getElementsByTagName('head').item(0).appendChild(jQueryScript); varjQueryScriptLoadCompleted=function(){}; jQueryScript.onload=function(jQueryScriptLoadEvent){ try{ console.log('Self test ...$("head").html()=\n'+$("head").html()); console.log("jQueryScript loaded!"); jQueryScriptLoadCompleted(); }catch(exception){ console.log('Fatal Error:'+exception.message); if(!jQueryScriptLoadEvent.returnValue) console.log('Loading jQueryScript was failed!'); } }; jQueryScriptLoadCompleted=function(){ console.log("要執行的JS和jQuery請定義在jQueryScriptLoadCompleted裡\n同時也請注意在網址上加入要執行的JS是不能加註解的\nLet's party!!!"); }; |
| function loadJS(url,loadFinished){ | |
| if(typeof loadFinished != 'function') | |
| loadFinished=function(){}; | |
| rs_nav.message("JS from "+url+" start to load..."); | |
| var JS = document.createElement('script'); | |
| JS.setAttribute('src', url); | |
| if (document.getElementsByTagName('head').item(0) == null) | |
| document.getElementsByTagName('html').item(0).appendChild(document.createElement('head')); |
| // For browsers that dont have getElementsByClassName | |
| if(!document.getElementsByClassName){ | |
| document.getElementsByClassName = function(className, element){ | |
| var children = (element || document).getElementsByTagName('*'); | |
| var elements = new Array(); | |
| for (var i=0; i<children.length; i++){ | |
| var child = children[i]; | |
| var classNames = child.className.split(' '); | |
| for (var j=0; j<classNames.length; j++){ | |
| if (classNames[j] == className){ |
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/User/PastLeoFaviColor1.tmTheme", | |
| "detect_indentation": true, | |
| "draw_minimap_border": true, | |
| "draw_white_space": "all", | |
| "ensure_newline_at_eof_on_save": true, | |
| "font_size": 12, | |
| "highlight_line": true, |
| #!/bin/bash | |
| process_bar() | |
| { | |
| for (( i = 0; i < 50; i++ )); do | |
| printf "\r[" | |
| for (( j = 0; j < 50; j++ )); do | |
| if [ "$i" -ge "$j" ]; then | |
| printf "#" | |
| else | |
| printf " " |
There is a super image converter for commandline: ImageMagick,it has a lot of image convertion tools.
You can install it using brew,just brew install ImageMagick (if you are using mac with brew) ^_^
mogrify -resize 640x480 *.jpg