Skip to content

Instantly share code, notes, and snippets.

Tu Chu Quang tucq88

Block or report user

Report or block tucq88

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
@tucq88
tucq88 / crontab
Last active Nov 11, 2019
Nginx config for Sendy. With Ubuntu@18.04, php@7.3, nginx@1.14.0
View crontab
# sudo crontab -e
*/1 * * * * php /var/www/html/sendy//import-csv.php > /dev/null 2>&1
*/5 * * * * php /var/www/html/sendy//scheduled.php > /dev/null 2>&1
*/1 * * * * php /var/www/html/sendy//autoresponders.php > /dev/null 2>&1
@tucq88
tucq88 / learning-rxjs.md
Created Sep 12, 2019
My learning about RxJS
View learning-rxjs.md

Learning RxJS

Intro

  • Reactive programming is programming with asynchronous data streams, also deal with synchronous.
    • A stream is a sequence of ongoing events ordered in time, that can emit:
      • Value,
      • Error,
      • Completed signal
  • Everything could be considered as a stream: Single value, Array, Event, etc
View keybase.md

Keybase proof

I hereby claim:

  • I am tucq88 on github.
  • I am tucq88 (https://keybase.io/tucq88) on keybase.
  • I have a public key ASBh_OYPN972zWlq6HGDHS4xCfaM83ExmFm_HXZ5825Miwo

To claim this, I am signing this object:

@tucq88
tucq88 / progress.10s.sh
Created Oct 17, 2018 — forked from aurorabbit/progress.10s.sh
Bitbar timely progress bar
View progress.10s.sh
#!/bin/sh
# add this to your bitbar directory
# don't forget to chmod +x
# width and characters for the progress bars
# feel free to configure these
width=30
fill_char=""
empty_char=""
@tucq88
tucq88 / example-links.txt
Last active Oct 17, 2018
SafariBook Links Process #safari #books #links
View example-links.txt
View transaction-fee-with-gas-and-gwei.md

tx-pool-infographic

When you

  • send tokens,
  • interact with a contract,
  • send ETH,
  • or do anything else on the blockchain,

You must PAY for that computation. That payment is calculated in Gas and gas is paid in ETH.

@tucq88
tucq88 / tutorial.md
Created Aug 2, 2018 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API
View tutorial.md

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@tucq88
tucq88 / studio-commandments.md
Created Jul 24, 2018
Personal Studio Commandments
View studio-commandments.md
  1. Learn something (Reading, Watching) from 05-25 minutes before start working.
  2. Prepare today TODO list a day before
  3. Break work into measurable pieces and work in (multiple) 1 hour session(s)
  4. Be human and healthy by getting up, go around, take a walk and talk with people
  5. You don't need inspiration to start anything. Just do it.

Ref: https://superyesmore.com/studio-commandments-a5300cdf50b8a30ec909955b119f9174

View simple_helpers.php
<?php
function dump()
{
//
}
function dd()
{
//
}
@tucq88
tucq88 / .csscomb.json
Created Oct 27, 2017 — forked from Yimiprod/.csscomb.json
smacss definition for scss-lint and csscomb
View .csscomb.json
{
"exclude": [
".git/**",
"node_modules/**"
],
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": false,
You can’t perform that action at this time.