Skip to content

Instantly share code, notes, and snippets.







EX: 台中市_中區_台灣大道1段_1號

clonn / admin.css
Created Nov 30, 2018
css for admin
View admin.css
/* line 76, ../sass/_wrapper.scss */
#control-menu {
font-size: 15px;
max-width: 160px;
/* line 79, ../sass/_wrapper.scss */
#control-menu a.control-menu-top {
display: block;
font-size: 17px;
background: #00cbbb;
clonn /
Created Jul 16, 2018 — forked from denji/
NGINX tuning for best performance

Moved to git repository:

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

clonn /
Created Apr 19, 2018
Sequelize + Express + Migrations + Seed Starter
clonn /
Created Apr 19, 2018
Sequelize + Express + Migrations + Seed Starter
clonn / scapeCostco.js
Created Oct 16, 2017
擷取 costco 商品資料,如果商品沒有貨, result 的結果會是已售完
View scapeCostco.js
var request = require('request');
var cheerio = require('cheerio');
var url = '';
request(url, function(err, res, body){
var $ = cheerio.load(body);
var result = $('.stock-status').text().trim();
clonn / chatbot_ecommerce_2017
Created Aug 14, 2017
Chatbot與電子商務結合實戰 - iThome Workshop (8/19)
View chatbot_ecommerce_2017
Chatbot 入門課程教學
* [Github](
* [node.js v8.3.0](
View CSS3 Media Queries Template
* Author:
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
clonn /
Last active Mar 2, 2017
javascript and front end test

Engineer questionare

Try to explain, what is this in JavaScript.

clonn / index.js
Last active Feb 22, 2017
test for node v7.6.0
View index.js
var request = require('superagent');
async function getRequest() {
let body = await request('');
return body;
async function run() {
let result = await getRequest();