Skip to content

Instantly share code, notes, and snippets.

View sonlexqt's full-sized avatar

Son Le sonlexqt

View GitHub Profile
[
{
"domain": ".lynda.com",
"expirationDate": 1605685626,
"hostOnly": false,
"httpOnly": false,
"name": "_ga",
"path": "/",
"sameSite": "no_restriction",
"secure": false,
[
{
"domain": ".lynda.com",
"expirationDate": 1602405564,
"hostOnly": false,
"httpOnly": false,
"name": "_ga",
"path": "/",
"sameSite": "no_restriction",
"secure": false,
@sonlexqt
sonlexqt / gist:af00b46139d41d7da8f90d528af42302
Created July 5, 2018 01:51
(staging) Send To Messenger
<div class="fb-send-to-messenger" page_id="568015096933xxx" messenger_app_id="402876686862xxx" color="blue" size="xlarge" enforce_login="false" data-ref="123456" cta_text="SUBSCRIBE_TO_UPDATES"></div>
@sonlexqt
sonlexqt / gist:bb247dc3adbee5b41b92a2d7ae208dd0
Created July 5, 2018 01:50
(localhost) Send To Messenger
<div class="fb-send-to-messenger fb_iframe_widget" page_id="568015096933xxx" messenger_app_id="402876686862xxx" color="blue" size="xlarge" enforce_login="false" data-ref="pCBkBjiK6L7KQFSqM" cta_text="SUBSCRIBE_TO_UPDATES" fb-xfbml-state="rendered" fb-iframe-plugin-query="app_id=&amp;color=blue&amp;container_width=532&amp;cta_text=SUBSCRIBE_TO_UPDATES&amp;enforce_login=false&amp;locale=en_US&amp;messenger_app_id=402876686862xxx&amp;page_id=568015096933xxx&amp;ref=123456&amp;sdk=joey&amp;size=xlarge"><span style="vertical-align: bottom; width: 256px; height: 68px;"><iframe name="f3769e54c3c93e8" width="1000px" height="1000px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" allow="encrypted-media" title="fb:send_to_messenger Facebook Social Plugin" src="https://www.facebook.com/v2.12/plugins/send_to_messenger.php?app_id=&amp;channel=http%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2FxaOI6zd9HW9.js%3Fversion%3D42%23cb%3Dfab5aacb255238%26domain%3Dlocalhost%26origin%3Dhtt
[
{
"domain": ".bongdaf.tv",
"expirationDate": 1535097055.020417,
"hostOnly": false,
"httpOnly": true,
"name": "__cfduid",
"path": "/",
"sameSite": "no_restriction",
"secure": false,
@sonlexqt
sonlexqt / cookie.json
Created November 20, 2017 04:40
my-cookie
@sonlexqt
sonlexqt / replaceAt
Created November 16, 2017 08:13 — forked from efenacigiray/replaceAt
Javascript replace char at index
function replaceAt(string, index, replace) {
return string.substring(0, index) + replace + string.substring(index + 1);
}
const notVNchars = '[^a-zA-Z0-9_\'ếààáãạảăắằẳẵặâấầẩẫậèéẹẻẽêềếểễệđìíĩỉịòóõọỏôốồổỗộơớờởỡợùúũụủưứừửữựỳỵỷỹýÀÁÃẠẢĂẮẰẲẴẶÂẤẦẨẪẬÈÉẸẺẼÊỀẾỂỄỆĐÌÍĨỈỊÒÓÕỌỎÔỐỒỔỖỘƠỚỜỞỠỢÙÚŨỤỦƯỨỪỬỮỰỲỴỶỸÝ]';
const VNchars = '[a-zA-Z0-9_ếààáãạảăắằẳẵặâấầẩẫậèéẹẻẽêềếểễệđìíĩỉịòóõọỏôốồổỗộơớờởỡợùúũụủưứừửữựỳỵỷỹýÀÁÃẠẢĂẮẰẲẴẶÂẤẦẨẪẬÈÉẸẺẼÊỀẾỂỄỆĐÌÍĨỈỊÒÓÕỌỎÔỐỒỔỖỘƠỚỜỞỠỢÙÚŨỤỦƯỨỪỬỮỰỲỴỶỸÝ]';
this.startWithoutVNchars = `(^|${notVNchars})`;
this.endWithoutVNchars = `(?!${VNchars})`;
This is the first line
This is the second line
This is the third line
This is the fourth line
This is the second line
This is the fourth line
This is the third line
This is the first line