This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 因為臉書會把 GIF 圖片轉成 MP4 影片,所以可以用書籤小程式指定要停在哪一格。 | |
| Bookmarklet (書籤小程式):(function(){var w=window,v=document.getElementsByTagName('video')[0],l='playing',f=function(){var t=w.prompt('總秒數: '+this.duration+',在幾秒停格?',0);v.removeEventListener(l,f);v.addEventListener(l,function(){var o=this;o.currentTime=t;o.pause()});};v.addEventListener(l,f);w.alert('執行完成,請點GIF圖片。')})() | |
| PS. 存成書籤網址開頭要加上 javascript: | |
| 首先找到停格秒數。 | |
| document.getElementsByTagName('video')[0].currentTime; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Basic Shell cmd: | |
| ctrl + r | |
| ctrl + a / ctrl + e | |
| ctrl + c | |
| ctrl + w | |
| ctrl + p / ctrl + n | |
| tab-tab | |
| # Useful tool | |
| grep |
Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.
If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.
http://www.apple.com/osx/elcapitan-preview/
- split view - two apps side by side on full screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <!-- google's material design colours from | |
| http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
| <!--reds--> | |
| <color name="md_red_50">#FFEBEE</color> | |
| <color name="md_red_100">#FFCDD2</color> | |
| <color name="md_red_200">#EF9A9A</color> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // _oo0oo_ | |
| // o8888888o | |
| // 88" . "88 | |
| // (| -_- |) | |
| // 0\ = /0 | |
| // ___/`---'\___ | |
| // .' \\| |// '. | |
| // / \\||| : |||// \ | |
| // / _||||| -:- |||||- \ |