Initially found a script to install gradle, but later on found out that script is not required because groovy environment manager can also install gradle.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/bin/bash # installs to /opt/gradle # existing versions are not overwritten/deleted # seamless upgrades/downgrades # $GRADLE_HOME points to latest *installed* (not released) gradle_version=1.12 gradle_path=~/gradle wget -N http://services.gradle.org/distributions/gradle-${gradle_version}-all.zip -P /tmp/ sudo unzip -q /tmp/gradle-${gradle_version}-all.zip -d ${gradle_path} sudo ln -sfn gradle-${gradle_version} ${gradle_path}/gradle sudo printf "export GRADLE_HOME=${gradle_path}/gradle/\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh . /etc/profile.d/gradle.sh # check installation gradle -v |
GVM – Groovy enVironment Manager official webpage: http://gvmtool.net/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
## install gvm $ curl -s get.gvmtool.net | bash ## isstall groovy on default version $ gvm install groovy ## see avaliable version of gradle $ gvm list gradle $ gvm install gradle 1.12 ## verify $ gvm current Using: gradle: 1.12 groovy: 2.3.6 |
https://play.google.com/store/apps/details?id=com.google.android.launcher&hl=zh-HK 主要功能: • 在主螢幕上顯示 Google 即時資訊:及時取得個人所需資訊,便利程度更勝以往。 • 直接說出「Ok Google」:您只要在主螢幕上說出「Ok Google」啟動語音輸入,隨後即可接著說出搜尋查詢,或是對手機下達操作指令,例如傳送簡訊、規劃路線或播放歌曲。 • 加快搜尋速度:輕按搜尋框便可立即輸入查詢。 • 輕鬆存取您愛用的 Google 產品和服務,例如 Gmail、YouTube 和地圖。 • 加大檢視區域:狀態列和導覽列現已設計成半透明狀態,讓桌布的顯示效果更加清晰,即使展開應用程式導覽匣 (如果裝置支援的話),仍可看見桌布。 • 簡單易用的桌布挑選器:您可以選擇儲存在裝置或雲端上的任何圖片,然後調整位置並預覽畫面,最後再設為桌布。 Some commands: General Commands “Search for [chicken recipes]?” “Say [where is the supermarket] in [Spanish]?” “What is [Schrodinger’s cat]?” “Who invented [the internet]?” “What is the meaning of [life]?” “Who is married to [Ben Affleck]?” “Stock price of [Apple]” “Author of [Game of Thrones]” “How old is [Michael Jordan]?” “Post to Google+ [feeling great]” Notes & Reminders “Remind me to [buy milk] at [5 PM]” “Remind me [when I get / next time I’m at] [home / work / other location] [to send an email to John]” “Wake me up in [5 hours]” “Note to self: [I parked my car in section D]” “Set alarm for [8 PM]” Time & Date “What time is it in [Tokyo]?” “When is the sunset [in Chicago (optional)]” ”What is the time zone of [Berlin]” “Time at home” “Create a calendar event: [Dinner in New York] [Saturday at 8 PM]” Communication “Call [Daniel]” “Call [mum / dad / wife / uncle / aunt …]” “Send [email] to Daniel, [Subject: Meeting], [Message: Will be there in 5]” “Send [SMS] to Philipp mobile, don’t forget to buy milk” ”[Contact name]” Weather “Weather” “Is it going to rain [tomorrow / Monday]” “What’s the weather in [Boston]?” “How’s the weather in [Portland] on [Wednesday] going to be?” Maps & Navigation “Map of [Flagstaff]” “Show me the nearby [restaurant] on map” “Navigate to [Munich] on car” “How far is [Berlin] from [Munich]?” “Directions to [address / business name / other destination]” Conversions & Calculations “What is the tip for [125] dollars?” “Convert [currency / length …] to [currency / length …]” “How much is [18] times [48]?” “What is [45] percent of [350]?” “Square root of [81]” “….. equals” Sports “How are [the New York Yankees] doing?” “When is the next [Los Angeles Lakers] game?” “Show me the [Premier League] table” “Did [Bayern Munich] win their last game?” Flight Information “Flight [AA 125]?” “Flight status of [AA 125]” “Has [LH 210] landed?” “When will [AA 120] land / depart?” Web Browsing “Go to [Huffington Post]?” “Open [xda.com]” “Show me [android.com]” “Browse to [reddit.com]” Entertainment “Listen to / play [Intro] by [The XX]?” “YouTube [fail compilation]?” “Who acted in [Ocean’s 11]?” “Who is the producer of [Gladiator]?” “When was [Alien] released?” “Runtime of [Avatar]” “Listen to TV” “What’s this song?” Easter Eggs “Do a barrel roll” “What’s the loneliest number?” “Make me a sandwich!” “Sudo make me a sandwich!” “When am I?” “Okay Jarvis, …” (Instead of “Okay Google, …”) “Who are you?” “How much wood could a woodchuck chuck if a woodchuck could chuck wood.” “Beam me up, Scotty!” “Tilt” or “Askew” “What is your favorite color?” “Up up down down left right left right” “Tea, Earl Grey, hot” (That’s a tricky one) “Go go gadget [app name]” “When does the narwhal bacon?” “What is the Bacon number of [random actor]?” “What does the fox say?” other examples http://www.addictivetips.com/android/google-now-commands-smart-cards-list/ http://phandroid.com/2014/05/29/google-now-voice-commands/
今早回到公司, 係pantry有個強國同事問我知唔知雲南地震. 其實我係有D 老派, 我lunch time 有時間就睇下appledaily 個apps, 放工回家or 臨訓係床上先掃下副刊財經港聞. instant news 反而係fb news feed. 突發野朋友間share / like 已經會知道. 今晚回家後再check 多一次news feed, 高雄有朋友RIP, 雲南真係冇, 唔知係因為強國天災人禍太多已經麻目, 又或者係fb 白痴既filter 冇display 個d 相關news feed. 不過強國咁勁, 抄左周老虎家都夠震災有突, 而且他們相信災難興邦, 又實在沒有什麼好擔心的.