Skip to content

Instantly share code, notes, and snippets.

Working from home

Thanh Nguyen Dac thanh4890

Working from home
Block or report user

Report or block thanh4890

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View nginx.conf
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name _;
root /usr/share/nginx/html;
ssl_certificate "/etc/letsencrypt/live/"; //REPLACE THE DOMAIN NAME WITH YOURS
ssl_certificate_key "/etc/letsencrypt/live/"; //REPLACE THE DOMAIN NAME WITH YOURS
# It is *strongly* recommended to generate unique DH parameters
# Generate them with: openssl dhparam -out /etc/pki/nginx/dhparams.pem 2048
thanh4890 /
Last active Sep 27, 2018
Chat bot analytics
chatbase dashbot botanalytics
Pricing Free or contact for Enterprise Free or contact for Enterprise Free or contact for Enterprise
Demo Demo Demo Demo
Usage Easy Fairly easy Hard
Active users (monthly, weekly, daily)
sessions (Daily sessions, Daily sessions per user, Session time per user, User msgs per session)
Retention Cohorts
Rich Filtering
Transcripts (messages)
View mkform.js
//script check scroll to block then load mkt form
var contactUsFormBlock = document.getElementsByClassName('section-contact-us-form')[0];
var Mkt1092LoadCount = 0;
window.addEventListener('scroll', function () {
if (Mkt1092LoadCount === 0) {
var hT = contactUsFormBlock.offsetTop,
hH = contactUsFormBlock.offsetHeight,
wH = window.innerHeight,
wS = this.pageYOffset;
<!DOCTYPE html>
.bd-loading {
display: none;
<link rel="preload" href="style.css">
thanh4890 /
Created Jul 17, 2018 — forked from martinbuberl/
Launch Sublime Text from the command line on OSX

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.


  • Sublime text 2 or 3 installed in your system within Applications folder




  • Mô tả qua life cycle React
  • Tại sao phải dùng Redux? Giải thích và thuyết phục cho 1 người mới?
  • Sẽ in ra thế nào?
    for (var i = 1; i < 4; i++) {
thanh4890 / config.rb
Created Nov 29, 2016 — forked from nathansmith/config.rb
Example config.rb file for Compass
View config.rb
preferred_syntax = :sass
http_path = '/'
css_dir = 'assets/stylesheets'
sass_dir = 'assets/sass'
images_dir = 'assets/images'
javascripts_dir = 'assets/javascripts'
relative_assets = true
line_comments = true
# output_style = :compressed
thanh4890 / wc-empty-cart-notice.php
Created Nov 20, 2016 — forked from bekarice/wc-empty-cart-notice.php
WooCommerce: Show a notice throughout the store if the cart is empty
View wc-empty-cart-notice.php
* Tutorial:
function skyverge_empty_cart_notice() {
if ( WC()->cart->get_cart_contents_count() == 0 ) {
wc_print_notice( __( 'Get free shipping if your order is over &#36;60!', 'woocommerce' ), 'notice' );
// Change notice text as desired
You can’t perform that action at this time.