Skip to content

Instantly share code, notes, and snippets.

[中譯文]
Disney+ 訂閱協議(台灣)
更新日:2023年1月4日
台灣華特迪士尼股份有限公司(下稱「Disney+」或「本公司」)歡迎台端使用Disney+服務。「Disney+服務」包括Disney+網站、應用程式及相關內容及服務。
台端使用Disney+服務前,請詳閱本訂閱協議(下稱「Disney+訂閱協議」或「本協議」)。
@zhusee2
zhusee2 / machine.js
Last active October 26, 2020 02:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@zhusee2
zhusee2 / tokenPaymentBanks.md
Last active March 28, 2019 06:55
台灣國際Pay服務 支援銀行對照表

j = JCB, m = Mastercard, v = VISA

銀行 Apple Pay Google Pay Samsung Pay Garmin Pay Fitbit Pay
國泰世華 mv mv mv mv mv
中國信託 jmv mv mv mv mv
台新銀行 mv mv mv mv mv
聯邦銀行 jmv mv mv mv mv
玉山銀行 jmv mv mv mv mv
台北富邦 mv mv mv mv mv
@zhusee2
zhusee2 / FooBar.jsx
Created December 29, 2017 07:43
Concept for a React Component displaying an CSS Animation to indicate its contents has been updated.
import React from 'react';
import PropTypes from 'prop-types';
const ANIMATION_DURATION = 750; // for example
class FooBar extends React.Component {
static propTypes = {
lastUpdated: PropTypes.string,
};
@zhusee2
zhusee2 / nearby_pokemon.js
Created August 9, 2016 04:12
Find nearby catchable Pokémons
import pogobuf from 'pogobuf';
import POGOProtos from 'node-pogo-protos';
import chalk from 'chalk';
const USERNAME = '__YOUR_USERNAME__';
const PASSWORD = '__YOUR_PASSWORD__';
// 捷運西門站6號出口
const LAT = 25.0432504;
const LNG = 121.5081401;

iOS 10 Pinyin keyboard wrongly interpretes common words into contact names

Example:

  • Pinyin: wojidewoyijinggeinileba
  • Correct: 我 記得已經 給你了吧
  • iOS 10 (Public beta 2): 我 繼德易靜 給你了吧

If you try to type a long sentence with Pinyin keyboard in iOS 10, you'll notice that many common words might be converted into given names of you contacts. It's pretty bothering for that many Chinese given names can have homophones that are used in daily dialogues.

Most Chinese names come with a 1-syllable family name and a 2-syllable given name. Unfortunately “words” in Chinese (Mandarin) are usually in the 2-syllable form as well. By matching Pinyin to those 2-syllable given names breaks a sentence into meaningless context, and can cost you double or tripple time in typing and choosing word-by-word from the word candidates.

autosaveTimeout = 0
autosave = ->
model.save()
resetTimer = ->
clearTimeout(autosaveTimeout)
autosaveTimeout = setTimeout(autosave, 300)
$(element).on 'keypress', -> resetTimer()
<div class="sr-product-rating">
<img alt="Company logo" class="rating-logo">
<h3 class="rating-title">Title</h3>
<div class="rating-stars">
<span class="star active"></span>
<span class="star active"></span>
<span class="star active"></span>
<span class="star"></span>
</div>
</div>
@zhusee2
zhusee2 / README.md
Last active August 29, 2015 14:06 — forked from dlackty/README.md
Modified Ruby version for converting Flightradar24 data to GPX.
#=require underscore.js
class BaseClass
@concerning: (concernName, concernObj) ->
functionsToCopy = _.omit(mixin, "included", "classFunctions")
_.extend(this.prototype, functionsToCopy)
_.extend(this, concernObj.classFunctions)
if typeof concernObj.included is "function"
concernObj.included.call(concernObj, this)