Skip to content

Instantly share code, notes, and snippets.

View thienlam's full-sized avatar

Lâm Chí Thiện (Ryan) thienlam

  • 13:02 (UTC +07:00)
View GitHub Profile
@thienlam
thienlam / convert_kana.js
Created June 26, 2020 03:19 — forked from kamiaka/convert_kana.js
JS Convert "Kana" one from another (zen-kaku, han-kaku and more)
/**
* Convert "Kana" one from another
* (zen-kaku, han-kaku and more)
*
* @param string str
* @param string option (optionaly)
* @return string converted string
*/
function convert_kana (str, option) {
option = option || "KV";
@thienlam
thienlam / rails http status codes
Last active January 14, 2021 07:54 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
2xx Success
200 :ok