{
"MINE_workable": {
"rock1": 1,
"rock2": 1,
"rock_flintless": 1,
"rock_petrified_tree": 1,
"stalagmite": 1,
This file contains 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
<div class="Main Reference Reference-hasSide"> | |
<div class="Content"> | |
<div class="ReferenceCodesSide"></div> | |
<ul class="BreadCrumb"> | |
<li><a href="/en/"><span>LINE Developers</span></a></li> | |
<li><a href="/en/reference/"><span>API references</span></a></li> | |
<li class="current">Messaging API reference</li> | |
</ul> | |
<div class="Article"> | |
<section class="SectionReference SectionReference-hasSide"> |
This file contains 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
// ==UserScript== | |
// @name 微程式通訊錄 | |
// @namespace https://ef.program.com.tw:8443/contacts | |
// @version 0.24 | |
// @description 從微程式的 Portal 系統中下載通訊錄 | |
// @author taichunmin <[email protected]> | |
// @website https://gist.github.com/taichunmin/3e854e9e118785a7985ec24905ee16ce/ | |
// @updateURL https://gist.github.com/taichunmin/3e854e9e118785a7985ec24905ee16ce/raw/contacts.user.js | |
// @downloadURL https://gist.github.com/taichunmin/3e854e9e118785a7985ec24905ee16ce/raw/contacts.user.js | |
// @match https://ef.program.com.tw:8443/* |
This file contains 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
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
/** | |
* Auto-generated code below aims at helping you parse |
This file contains 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
// 一般的寫法 | |
new Promise(function(resolve, reject) { | |
setTimeout(function() { | |
// resolve() | |
reject(new Error('123')) | |
}, 1000) | |
}).then(function() { | |
console.log('success') | |
}).catch(function(e) { | |
console.error(e) |
This file contains 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
export default { | |
alpha_dash: (field) => `${field} 欄位只能填寫半形英文字母、數字、底線及剪號。`, | |
alpha_num: (field) => `${field} 欄位只能填寫半形英文字母及數字。`, | |
alpha: (field) => `The ${field} 欄位只能填寫半形英文字母。`, | |
between: (field, [min, max]) => `${field} 欄位必須介於 ${min} 和 ${max} 之間。`, | |
confirmed: (field, [confirmedField]) => `${field} 欄位必須與 ${confirmedField} 欄位相同。`, | |
decimal: (field, [decimals] = ['*']) => `${field} 欄位只能填寫${decimals === '*' ? '' : '小數點 ' + decimals + ' 位以內的'}小數。`, | |
digits: (field, [length]) => `${field} 欄位只能填寫剛好 ${length} 位數的數字。`, | |
dimensions: (field, [width, height]) => `${field} 欄位只能填寫 ${width} 像素乘以 ${height} 像素。`, | |
email: (field) => `${field} 欄位的電子郵件地址不正確。`, |
本篇是原文 Delightful Database Seeding with Docker 的摘要
流程總共區分為三個階段:
- 複製正式伺服器的資料並清理
- 打包並發佈 Seeder
- 使用 Seeder 匯入資料
This file contains 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
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] |
This file contains 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
apt-get install build-essential libtool libusb-dev libusb-1.0 gcc make autoconf pkg-config libudev-dev flex pcsc-tools libpcsclite-dev | |
#download pcsc lite | |
wget https://alioth.debian.org/frs/download.php/file/4225/pcsc-lite-1.8.22.tar.bz2 | |
tar xvf pcsc-lite*.tar.bz2 | |
cd pcsc* |
This file contains 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
// ==UserScript== | |
// @name Microprogram Portal | |
// @namespace http://ef.program.com.tw:8081/ | |
// @version 1.16 | |
// @description try to let portal support Chrome | |
// @author taichunmin <[email protected]> | |
// @website https://gist.github.com/taichunmin/b480b8322b5cf0eadbfbc07f3dd2e485/ | |
// @updateURL https://gist.github.com/taichunmin/b480b8322b5cf0eadbfbc07f3dd2e485/raw/mp-portal.user.js | |
// @downloadURL https://gist.github.com/taichunmin/b480b8322b5cf0eadbfbc07f3dd2e485/raw/mp-portal.user.js | |
// @match http://ef.program.com.tw:8081/* |