Search

5/09/2014

Quill - An Open Source Rich Text Editor with an API

Quill - An Open Source Rich Text Editor with an API

Quill is an open source editor built for the modern web. It is built with an extensible architecture and an expressive API so you can completely customize it for your use case. Some built in features include: - Fast and lightweight - Semantic markup - Standardized HTML between browsers - Supports Chrome, Firefox, Safari, and IE 9+

5/01/2014

聰明旅行小學堂/機上座位代碼藏玄機!字母為何少了I? | NOWnews 今日新聞

聰明旅行小學堂/機上座位代碼藏玄機!字母為何少了I? | NOWnews 今日新聞

有網友問YOYO:她請旅行社飛機選位,要求與同伴座一起,旅行社卻選33H跟33J,請問位子是真的坐在一起嗎?為什麼不是H/I/J連號一起?也就是:航空座位,真的沒有I嗎? 航空公司的座位,基本上是用數字及英文混合表示,因為機型的不同,座位配置也會不一樣。以商務艙來說,座位配置基本上是2-2-2或1-2-1;以經濟艙來說,有的是3-3,有的是2-4-2,或是3-4-3。 那航空公司是怎麼運用英文,去定義機上的座位呢?基本規定如下: 一、會與數字混淆的字母必須避免使用 如:I跟1很像,O跟0很像,S跟5很像,G跟C很像,B跟8很像。故,若您是1I,到底是11,還是1I? 二、發音會混淆的字母必須避免使用 如:I的發音跟走道的英文aisle的音接近,這會造成旅客與航空公司溝通上的誤會,故,你若選I行的座位,你可能會以為是坐到走道。 三、有禁忌的數字不用 如:東方是4,西方是13,有些航空座位數上會故意省去這些號碼。 四、通用規定 航空公司座位安排上不成文規定是:A/K一定是靠窗,C/D/G/H一定是走道,目前,恪遵這規定的航空有國泰、港龍、韓亞、新航、聯合等航空。 所以綜整以上,基本上I是一定不會用到,因為有太多爭議;B有時也不會用到。因此,商務艙常用為:2-2-2:AC-DG-HK、1-2-1:A-DG-K;經濟艙常用為:3-3:ABC-DEF、2-4-2:AC-DEFG-HK、3-4-3:ABC-DEFG-HJK。

4/10/2014

Nimble

Nimble

Parallel
_.parallel([
    function (callback) {
        setTimeout(function () {
            console.log('one');
            callback();
        }, 25);
    },
    function (callback) {
        setTimeout(function () {
            console.log('two');
            callback();
        }, 0);
    }
]);
Series
_.series([
    function (callback) {
        setTimeout(function () {
            console.log('one');
            callback();
        }, 25);
    },
    function (callback) {
        setTimeout(function () {
            console.log('two');
            callback();
        }, 0);
    }
]);

4/08/2014

Why the (CoffeeScript) arrow matters

Why the (CoffeeScript) arrow matters

BONUS POINTS: NO NAMED FUNCTIONS - NO CONFUSION An otherwise forgotten but very important feature on CoffeeScript is the absence of named functions. This is great, because named functions are available to all of your code regardless of the declaration order. This makes it very easy to write some really confusing JS code:
var importantThing = veryComplicatedFunction()

// (...) A thousand lines later

function veryComplicatedFunction () { ... }
This type of organization is very damaging to the readability of your code. CoffeeScript requires you to store functions in variables - like everything else.

4/07/2014

fikovnik/ShiftIt · GitHub

fikovnik/ShiftIt · GitHub - use this version: https://github.com/fikovnik/ShiftIt/issues/105

ShiftIt is an application for OSX that allows you to quickly manipulate window position and size using keyboard shortcuts. It intends to become a full featured window organizer for OSX. It is a complete rewrite of the original ShiftIt by Aravindkumar Rajendiran which is not longer under development. For discussing any sort of stuff about this app, please create a new issue right here.

McBopomofo

McBopomofo - 需要重新修改熱鍵