Skip to content

Instantly share code, notes, and snippets.

@LeeU1911
LeeU1911 / config.toml
Last active April 15, 2017 08:37
Minimal multilingual code example - Hugo issue
# Site settings
baseurl = "https://example.com"
defaultContentLanguage = "vi"
########################################
#
## Vietnamese
[languages.vi]
title = "Xin chào"
weight = 0
@LeeU1911
LeeU1911 / marketing taglines
Created October 20, 2017 05:59
ShareASeat - app to share ride among colleagues
what was initially a ride-sharing service, now has become a high-tech taxi company.
we need better utilization of the existing cars on streets, not more cars.
@LeeU1911
LeeU1911 / project.md
Last active October 9, 2018 08:59
project forward weekly growth
Hàng Tuần Hàng Năm
1% 1.7x
2% 2.8x
5% 12.6x
7% 33.7x
10% 142.0x
curl 'https://api.dahmakan.com/v4/terminal/order' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0' -H 'Accept: */*' -H 'Accept-Language: en' --compressed -H 'Referer: https://dahmakan.com/kuala-lumpur/terminal' -H 'Content-Type: application/json' -H 'Authorization: Bearer 5935539e77cdec0fbc1d67c1' -H 'Brand: dahmakan' -H 'City: Kuala_Lumpur' -H 'Origin: https://dahmakan.com' -H 'Connection: keep-alive' --data '{"card_id":null,"payment_method":"Cash","terminal_user_mobile_no":"+601118551287","orders":[{"menu_type":"Dinner","date":"01-03-2019","instant_delivery":false,"time_frame":"5:30 PM - 6:00 PM","address_id":"593555c5db484e0d680f9df7","menu_item":[{"id":"5c04a67bb45b7b635dce098e","quantity":1,"price":0,"item_type":"Item"}],"use_company":false}]}'
@LeeU1911
LeeU1911 / compass.md
Created March 15, 2019 03:53
Public mongodb compass download link

Let's use this link to protest against companies that want to collect information just for the sake of downloading the software: Mongodb 1.17.0 Compass for Mac

@LeeU1911
LeeU1911 / scale-zpl.js
Last active April 27, 2021 13:40 — forked from tresf/scale-zpl.js
(Experimental) Scales a Raw ZPL file from 203 DPI (dots per inch) to 300 DPI
/*
* author: Tres Finocchiaro
* date: 2015-05-22
* license: Public Domain; Use as you wish.
* source: http://qz.io
* updated: 2021-04-27 - Add 'BQN,2' to scale QR Code size (N is orientation and 2 is model so no need to scale that number)
*/
/*
* Scales text from a raw ZPL label from 203 DPI to 300 DPI
listOfAttributes: ['buyboxhint', 'functionalname']