Skip to content

Instantly share code, notes, and snippets.

@shyuan
shyuan / cross-mobile-platform-comparison.md
Created October 28, 2020 08:16
Cross Mobile Platform Comparison
@shyuan
shyuan / cpu-platforms-zones.md
Created August 2, 2019 06:07
Supported CPU Platform on GCP zones
Zone Intel Cascade Lake Intel Skylake Intel Broadwell Intel Haswell Intel Ivy Bridge Intel Sandy Bridge
us-east1-b Yes Yes Yes
us-east1-c Yes Yes Yes
us-east1-d Yes Yes Yes
us-east4-c Yes Yes
us-east4-b Yes Yes
us-east4-a
@shyuan
shyuan / .vimrc
Created September 11, 2018 06:34
My vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
" let Vundle manage Vundle, required!
Plugin 'gmarik/vundle'
"" My Bundles here:
@shyuan
shyuan / array-diff.php
Created August 27, 2018 09:57
PHP Array Diff
<?php
$array1 = array(1,2,3,4,5,6,7);
$array2 = array(5,6,7,8,9,10);
var_dump(array_diff($array1, $array2));
var_dump(array_diff($array2, $array1));
@shyuan
shyuan / japan-music-service-twitter-followers.md
Last active September 26, 2019 08:58
Japan Music Service Twitter Followers

跟隨人數

AWA Line Apple KKBOX Spotify Amazon Music
2015/6 6708 25600 7091 1868
2015/8 21500 28700 15500 2385
2015/10 29200 25900 22200 3454
2015/12 36800 25900 29400 9156
2016/2 35300 25600 31300 13000
2016/4 34900 30100 32800 17000
@shyuan
shyuan / taiwan-token-payment-banks.md
Last active February 16, 2024 02:51
Taiwan Token Payment Supported Banks

對應表

銀行/支付系統 Apple Pay Google Pay Samsung Pay Garmin Pay Fitbit Pay 支援家數
國泰世華 5
中國信託 5
台新銀行 5
聯邦銀行 5
玉山銀行 5
台北富邦 5
永豐銀行 5
@shyuan
shyuan / tokenPaymentBanks.md
Last active July 31, 2018 01:35 — forked from zhusee2/tokenPaymentBanks.md
台灣國際Pay服務 支援銀行對照表

對應表

銀行/支付系統 Apple Pay Google Pay Samsung Pay Garmin Pay Fitbit Pay 支援家數
國泰世華 5
中國信託 5
台新銀行 5
聯邦銀行 5
玉山銀行 5
台北富邦 4
渣打銀行 3
@shyuan
shyuan / Reverse.php
Created March 15, 2018 17:54
Laravel Zero Reverse Command Read data from STDIN
<?php
namespace App\Commands;
use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command;
class Reverse extends Command
{
/**
@shyuan
shyuan / reverse-string.php
Last active March 15, 2018 17:53
Reverse String from STDIN
<?php
while ($string = trim(fgets(STDIN))) {
echo strrev($string) . PHP_EOL;
}
@shyuan
shyuan / group-by-created-date.sql
Created December 15, 2017 10:58
根據 timestamp 欄位,計算每日建立資料筆數
SELECT DATE(FROM_UNIXTIME(`created_at`)) AS create_date, COUNT(id) AS count FROM xx_table GROUP BY create_date;