Skip to content
Permalink
Browse files

init

  • Loading branch information...
nguyenvanduocit committed May 3, 2019
1 parent 5cb85a1 commit 1ce8a7183fb61752ca12050ee4bb2e34ca476e1d
Showing with 413 additions and 26 deletions.
  1. +14 −2 .firebaserc
  2. +2 −0 .gitignore
  3. +2 −2 { → config/_default}/config.yaml
  4. +3 −0 config/til/config.yaml
  5. 0 content/{ → blog}/articles/4-cach-duyet-array-khong-can-dung-loop/index.md
  6. 0 content/{ → blog}/articles/5-app-giup-tang-productivity-tren-mac/index.md
  7. 0 content/{ → blog}/articles/cac-shortcode-hay-cho-gohugo/index.md
  8. 0 content/{ → blog}/articles/cai-dat-unit-test-cho-wordpress-plugin/index.md
  9. 0 content/{ → blog}/articles/cai-dat-wordpress-coding-standards-cho-phpstorm/index.md
  10. BIN .../{ → blog}/articles/chup-hinh-trang-web-voi-nodejs-va-puppeteer/images/puppeteer-screenshot-1.gif
  11. BIN .../{ → blog}/articles/chup-hinh-trang-web-voi-nodejs-va-puppeteer/images/puppeteer-screenshot-2.png
  12. BIN .../{ → blog}/articles/chup-hinh-trang-web-voi-nodejs-va-puppeteer/images/puppeteer-screenshot-3.png
  13. BIN .../{ → blog}/articles/chup-hinh-trang-web-voi-nodejs-va-puppeteer/images/puppeteer-screenshot-4.png
  14. BIN .../{ → blog}/articles/chup-hinh-trang-web-voi-nodejs-va-puppeteer/images/puppeteer-screenshot-5.gif
  15. 0 content/{ → blog}/articles/chup-hinh-trang-web-voi-nodejs-va-puppeteer/index.md
  16. 0 content/{ → blog}/articles/cong-khai-localhost-len-internet-bang-ngrok/index.md
  17. 0 content/{ → blog}/articles/console-con-gi-khac-ngoai-console-log/index.md
  18. 0 content/{ → blog}/articles/di-chuyen-tu-wordpress-qua-medium/index.md
  19. 0 content/{ → blog}/articles/doc-va-thay-doi-gia-tri-cua-css-variable-bang-javascript/index.md
  20. 0 content/{ → blog}/articles/dong-goi-toan-bo-website-wordpress-thanh-ebook/index.md
  21. 0 content/{ → blog}/articles/dung-googl-voi-custom-domain/index.md
  22. BIN content/{ → blog}/articles/gioi-thieu-go-lambda-functions-tren-netlify/images/01.png
  23. 0 content/{ → blog}/articles/gioi-thieu-go-lambda-functions-tren-netlify/index.md
  24. 0 content/{ → blog}/articles/hieu-hook-trong-wordpress/index.md
  25. BIN content/{ → blog}/articles/javascript-in-vs-has-own/images/01.png
  26. BIN content/{ → blog}/articles/javascript-in-vs-has-own/images/thumbnail.png
  27. 0 content/{ → blog}/articles/javascript-in-vs-has-own/index.md
  28. BIN content/{ → blog}/articles/lam-viec-hieu-qua-hon-voi-alfredapp/images/1_zHs2UXc0IPtyBwFMhTaucQ.png
  29. 0 content/{ → blog}/articles/lam-viec-hieu-qua-hon-voi-alfredapp/index.md
  30. BIN content/{ → blog}/articles/lay-du-lieu-web-voi-nodejs-va-puppeteer/images/inspect-element.png
  31. 0 content/{ → blog}/articles/lay-du-lieu-web-voi-nodejs-va-puppeteer/index.md
  32. 0 content/{ → blog}/articles/reflect-trong-es6/index.md
  33. BIN content/{ → blog}/articles/reflection-trong-php/images/thumbnail.png
  34. 0 content/{ → blog}/articles/reflection-trong-php/index.md
  35. 0 content/{ → blog}/articles/spread-operator-trong-es6/index.md
  36. BIN content/{ → blog}/articles/tao-hieu-ung-cho-url-bang-javascript/img/babies2.gif
  37. BIN content/{ → blog}/articles/tao-hieu-ung-cho-url-bang-javascript/img/box-characters.png
  38. BIN content/{ → blog}/articles/tao-hieu-ung-cho-url-bang-javascript/img/moon.gif
  39. BIN content/{ → blog}/articles/tao-hieu-ung-cho-url-bang-javascript/img/video-progress.gif
  40. BIN content/{ → blog}/articles/tao-hieu-ung-cho-url-bang-javascript/img/wavy.gif
  41. 0 content/{ → blog}/articles/tao-hieu-ung-cho-url-bang-javascript/index.md
  42. BIN content/{ → blog}/articles/tao-https-cho-localhost-su-dung-mkcert/images/mkcert-01.png
  43. BIN content/{ → blog}/articles/tao-https-cho-localhost-su-dung-mkcert/images/mkcert-02.png
  44. BIN content/{ → blog}/articles/tao-https-cho-localhost-su-dung-mkcert/images/mkcert-03.png
  45. BIN content/{ → blog}/articles/tao-https-cho-localhost-su-dung-mkcert/images/thumbnail.jpg
  46. 0 content/{ → blog}/articles/tao-https-cho-localhost-su-dung-mkcert/index.md
  47. 0 content/{ → blog}/articles/tao-top-navigation-menu-bang-flexbox/index.md
  48. BIN content/{ → blog}/articles/tao-widget-tren-touchbar/images/1.png
  49. BIN content/{ → blog}/articles/tao-widget-tren-touchbar/images/2.png
  50. BIN content/{ → blog}/articles/tao-widget-tren-touchbar/images/3.png
  51. BIN content/{ → blog}/articles/tao-widget-tren-touchbar/images/4.png
  52. BIN content/{ → blog}/articles/tao-widget-tren-touchbar/images/5.png
  53. BIN content/{ → blog}/articles/tao-widget-tren-touchbar/images/6.png
  54. 0 content/{ → blog}/articles/tao-widget-tren-touchbar/index.md
  55. BIN content/{ → blog}/articles/thay-doi-username-trong-wordress/images/0_aiYn-XoZmj1Y3CJu.jpeg
  56. 0 content/{ → blog}/articles/thay-doi-username-trong-wordress/index.md
  57. BIN content/{ → blog}/articles/thu-thap-thong-tin-app-google-play/images/thumbnail.png
  58. 0 content/{ → blog}/articles/thu-thap-thong-tin-app-google-play/index.md
  59. 0 content/{ → blog}/articles/tim-hieu-polygon-trong-svg/index.md
  60. 0 ...blog}/articles/tim-hieu-ve-immediately-invoked-function-expression-iife-trong-javascript/index.md
  61. 0 content/{ → blog}/articles/tim-hieu-ve-slot-va-scoped-slots-trong-vuejs/index.md
  62. BIN content/{ → blog}/articles/tim-hieu-weback-cai-dat-co-ban/images/webpack-1.png
  63. 0 content/{ → blog}/articles/tim-hieu-weback-cai-dat-co-ban/index.md
  64. 0 content/{ → blog}/articles/tim-hieu-webpack-cau-hinh-voi-webpack-config-js/index.md
  65. 0 content/{ → blog}/articles/toi-uu-toc-do-cho-site-wordpress-phan-1/index.md
  66. 0 content/{ → blog}/articles/tu-dong-switch-dark-mode-dua-tren-thiet-lap-he-thong/index.md
  67. 0 content/{ → blog}/articles/ung-dung-css-variables-de-xay-dung-dark-theme/index.md
  68. 0 content/{ → blog}/articles/unit-testing-in-vue-the-essentials/index.md
  69. BIN content/{ → blog}/articles/viet-app-change-wallpaper/images/preview.jpg
  70. 0 content/{ → blog}/articles/viet-app-change-wallpaper/index.md
  71. BIN content/{ → blog}/articles/viet-extension-fix-loi-font-cho-medium-goodread/images/background.png
  72. BIN ...→ blog}/articles/viet-extension-fix-loi-font-cho-medium-goodread/images/load-chrome-extension.png
  73. BIN content/{ → blog}/articles/viet-extension-fix-loi-font-cho-medium-goodread/images/thumbnail.png
  74. 0 content/{ → blog}/articles/viet-extension-fix-loi-font-cho-medium-goodread/index.md
  75. 0 content/{ → blog}/articles/viet-plugin-notification-don-gian-cho-vuejs/index.md
  76. 0 content/{ → blog}/articles/xay-dung-3d-button-trong-flutter/index.md
  77. BIN content/{ → blog}/articles/xu-li-anh-khi-khong-load-duoc-ban-service-worker/images/thumbnail.png
  78. 0 content/{ → blog}/articles/xu-li-anh-khi-khong-load-duoc-ban-service-worker/index.md
  79. 0 content/{ → blog}/pages/_index.md
  80. 0 content/{ → blog}/pages/about.md
  81. 0 content/{ → blog}/pages/shortcodes.md
  82. 0 content/{ → blog}/references/built-in-module/index.md
  83. 0 content/{ → blog}/references/npx/index.md
  84. 0 content/{ → blog}/references/task-runner-la-gi.md
  85. +9 −0 content/til/articles/2017-06-20.md
  86. +8 −0 content/til/articles/2017-06-22.md
  87. +8 −0 content/til/articles/2017-06-23.md
  88. +6 −0 content/til/articles/2017-06-24.md
  89. +6 −0 content/til/articles/2017-06-25.md
  90. +8 −0 content/til/articles/2017-06-26.md
  91. +6 −0 content/til/articles/2017-06-27.md
  92. +6 −0 content/til/articles/2017-06-28.md
  93. +6 −0 content/til/articles/2017-06-29.md
  94. +6 −0 content/til/articles/2017-06-30.md
  95. +8 −0 content/til/articles/2017-07-01.md
  96. +7 −0 content/til/articles/2017-07-02.md
  97. +6 −0 content/til/articles/2017-07-03.md
  98. +6 −0 content/til/articles/2017-07-12.md
  99. +6 −0 content/til/articles/2017-07-13.md
  100. +6 −0 content/til/articles/2017-07-14.md
  101. +6 −0 content/til/articles/2017-07-15.md
  102. +6 −0 content/til/articles/2017-07-16.md
  103. +8 −0 content/til/articles/2017-11-05.md
  104. +6 −0 content/til/articles/2018-04-19.md
  105. +10 −0 content/til/articles/2018-08-25.md
  106. +7 −0 content/til/articles/2018-08-26.md
  107. +8 −0 content/til/articles/2018-08-28.md
  108. +8 −0 content/til/articles/2018-08-30.md
  109. +7 −0 content/til/articles/2018-08-31.md
  110. +6 −0 content/til/articles/2018-09-01.md
  111. +8 −0 content/til/articles/2018-09-04.md
  112. +6 −0 content/til/articles/2018-09-06.md
  113. +6 −0 content/til/articles/2018-09-07.md
  114. +7 −0 content/til/articles/2018-09-10.md
  115. +6 −0 content/til/articles/2018-09-11.md
  116. +6 −0 content/til/articles/2018-09-12.md
  117. +6 −0 content/til/articles/2018-09-13.md
  118. +6 −0 content/til/articles/2018-09-14.md
  119. +7 −0 content/til/articles/2018-09-17.md
  120. +6 −0 content/til/articles/2018-09-19.md
  121. +7 −0 content/til/articles/2018-09-21.md
  122. +6 −0 content/til/articles/2018-09-22.md
  123. +6 −0 content/til/articles/2018-09-25.md
  124. +6 −0 content/til/articles/2018-09-26.md
  125. +11 −0 content/til/articles/2018-09-28.md
  126. +6 −0 content/til/articles/2018-10-01.md
  127. +6 −0 content/til/articles/2018-10-02.md
  128. +6 −0 content/til/articles/2018-10-03.md
  129. +6 −0 content/til/articles/2018-10-04.md
  130. +6 −0 content/til/articles/2018-10-09.md
  131. +6 −0 content/til/articles/2018-10-16.md
  132. +6 −0 content/til/articles/2018-10-29.md
  133. +6 −0 content/til/articles/2018-11-12.md
  134. +6 −0 content/til/articles/2019-01-04.md
  135. +6 −0 content/til/articles/2019-01-23.md
  136. +6 −0 content/til/articles/2019-02-28.md
  137. +21 −10 firebase.json
  138. +10 −2 makefile
  139. +3 −3 sw-precache-config.js
  140. +2 −5 themes/blog/assets/js/search.js
  141. +2 −2 themes/blog/layouts/partials/article/header.html
  142. +8 −0 themes/blog/layouts/partials/footer.html
@@ -1,5 +1,17 @@
{
"projects": {
"production": "twelve-bit"
}
}
},
"targets": {
"twelve-bit": {
"hosting": {
"blog": [
"twelve-bit"
],
"til": [
"til-12bit"
]
}
}
}
}
@@ -7,3 +7,5 @@ node_modules/
resources/

data/auth\.yaml

*.makefile
@@ -78,5 +78,5 @@ taxonomies:
series: series
tag: tags
reference-tag: reference-tags
hooks:
onPageCreated: social-image-gen --output={abs_publish_dir} --title={title} --date={date} --author={author} --template=./social-image.html
#hooks:
#onPageCreated: social-image-gen --output={abs_publish_dir} --title={title} --date={date} --author={author} --template=./social-image.html
@@ -0,0 +1,3 @@
title: TIL
description: write and share to learn
baseURL: https://til-12bit.firebaseapp.com/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,9 @@
---
title: "2017-06-20"
date: 2017-06-20T13:06:49+07:00
---

1. That contempt of others is the easiest way to be noble. I should not respect other people because of their contempt.
1. [Set](https://alligator.io/js/sets-introduction/) is a new object type in ES6(ES2015) allow to create collections of unique values.
1. from wordpress.com that do not force user to do something that not benefit them or they will leave you.
1. In PHP, `DateTime('first monday of 2017-02')`. If the word 'of' missing, result will not correct.
@@ -0,0 +1,8 @@
---
title: "2017-06-22"
date: 2017-06-22T13:06:04+07:00
---

1. Filezilla can use SSH key to access to server.
1. No need to close tag li,p but you should, boolean attributes do not have a value: if the attribute is there, it’s true.
1. [Mắt Bão](https://www.matbao.net/) use COD for their domain/hosting services because of the poor quality of their payment partners.
@@ -0,0 +1,8 @@
---
title: "2017-06-23"
date: 2017-06-23T13:04:51+07:00
---

1. From Facebook and developer community that people are afraid of being left out, this is the most often exploited weakness.
1. that algorithms have extremely long lifetimes. that tools are for moment.
1. that Spotify allows you to manage and play songs on different devices. And it's a very awesome feature.
@@ -0,0 +1,6 @@
---
title: "2017-06-24"
date: 2017-06-24T13:05:26+07:00
---

1. A light touch makes others feel friendly, trusting.
@@ -0,0 +1,6 @@
---
title: "2017-06-25"
date: 2017-06-25T13:04:29+07:00
---

1. That airplanes can not take off when the temperature is higher than 48°C), because hot air is thinner than cold air.
@@ -0,0 +1,8 @@
---
title: "2017-06-26"
date: 2017-06-26T13:03:56+07:00
---

1. that anime.js a good animation lib for next projects.
1. from [bitsofco](https://bitsofco.de/collapsible-margins/) that Collapsible Margins happen when two margins contact directly, including empty element. Can be solved by border, set display property to non-block values.
1. from [Harry Roberts](https://csswizardry.com/2012/06/single-direction-margin-declarations/) that I should use single-direction margin.
@@ -0,0 +1,6 @@
---
title: "2017-06-27"
date: 2017-06-27T12:58:22+07:00
---

1. that set `bottom` for attibute `vertical-align` for tag `img` will remove the bottom space when use `img` with `a`, `p`
@@ -0,0 +1,6 @@
---
title: "2017-06-28"
date: 2017-06-28T12:58:04+07:00
---

1. that almost slider lib can not work with CSS Grid Layout, Because they can not detect the width.
@@ -0,0 +1,6 @@
---
title: "2017-06-29"
date: 2017-06-29T12:57:32+07:00
---

1. from Chin Kah Chongrong that in 1960-1970, Earned $ 70 billion from serving the United States during the Vietnam War. <= for vietnamese who are fan of capital and Singapore.
@@ -0,0 +1,6 @@
---
title: "2017-06-30"
date: 2017-06-30T12:57:08+07:00
---

1. That Chrome only load font after style loaded and the text use this font appear.
@@ -0,0 +1,8 @@
---
title: "2017-07-01"
date: 2017-07-01T12:56:32+07:00
---

1. to use Laravel's Validation, Just require `illuminate/validation`, `illuminate/translation`, then create new loader, then create Translator with this loader.
1. That the best way to check `undefined` is `variable === void 0`.
1. `[[]][0]++` work but `[]++`. Because of references.
@@ -0,0 +1,7 @@
---
title: "2017-07-02"
date: 2017-07-02T12:56:03+07:00
---

1. Moon always faces same side. View the answer [here](https://www.youtube.com/watch?v=OZIB_leg75Q).
1. that the best way to empty an array and its references is to set its length to 0
@@ -0,0 +1,6 @@
---
title: "2017-07-03"
date: 2017-07-03T12:55:40+07:00
---

1. that to make the scroll bar to appear on the left, put the direction attribute of the container to RTL, then set LTR for the inner container. [read more](https://stackoverflow.com/questions/7347532/how-to-position-a-div-scrollbar-on-the-left-hand-side)
@@ -0,0 +1,6 @@
---
title: "2017-07-12"
date: 2017-07-12T12:55:22+07:00
---

1. that we can create text outline with text-shadow to every direction.
@@ -0,0 +1,6 @@
---
title: "2017-07-13"
date: 2017-07-13T12:54:10+07:00
---

1. To make SOCKS Tunnel: `ssh -D 8123 -f -C -q -N sammy@example.com`. Then you can use `localhost:8123` as a proxy address
@@ -0,0 +1,6 @@
---
title: "2017-07-14"
date: 2017-07-14T12:53:35+07:00
---

1. You can use torent client to share lager file directly
@@ -0,0 +1,6 @@
---
title: "2017-07-15"
date: 2017-07-15T12:52:49+07:00
---

1. Object.create: using null as the only argument to create an ultra-vanilla dictionary!
@@ -0,0 +1,6 @@
---
title: "2017-07-16"
date: 2017-07-16T12:52:09+07:00
---

1. that to fix flex's child width on IE, need to add max-width:100%.
@@ -0,0 +1,8 @@
---
title: "2017-11-05"
date: 2017-11-05T12:06:45+07:00
---

1. CSS Variable rất có ích khi tạo theme cho website, nhưng mà cần phải có hàm để modify các variable.
1. trên nắp một số tuýp kem có đầu nhọn dùng để chọt mở nắp.
1. Hàm `time()` trong WordPress sẽ luôn trả về UCT time, sử dụng hàm `current_time` để lấy time dựa trên timezone trong setting.