hadm's blog
  • About Me
  • Tags
  • Resources
    Beautiful Jekyll Learn markdown
Navigation bar avatar

my stories


fasten your seatbelt, return your seat to the upright position

Go directyly to VS Code in browser

A quick way to edit and navigate your code

Posted on September 1, 2021

Post thumbnail
Post thumbnail
On any repository or pull request, there’re 2 ways to open VS Code: Press the . key Swap .com with .dev in the URL
Tags: TIL

Check when an element scrolled into view

How to know when an element gets visible in the screen during scrolling

Posted on August 26, 2021

Post thumbnail
Post thumbnail
Problem During frontend development, there are animations that are triggered based on the position of the screen when scrolling Some examples can be fade in, infinite scroll, … [Read More]
Tags: Javascript Vanilla TIL

Handle setState asynchronous in React Hook

Fetching asynchronous data problem

Posted on July 7, 2021

Post thumbnail
Post thumbnail
Context Sử dụng Functional Component Hàm getInstance là bất đồng bộ, dùng để khởi tạo instance Trong Component, gọi lần lượt 2 hàm sau: Hàm loadInstance khởi tạo instance trong Component, lưu trực tiếp vào trong state với hàm setInstance Hàm useInstance sẽ lấy instance từ trong state và sử... [Read More]
Tags: React TIL

C++ Class Cheatsheet

Getting started with Class in C++

Posted on March 15, 2021

Post thumbnail
Post thumbnail
In this post, we will learn about the syntax of a Class in C++ through the Rational class building example. [Read More]
Tags: C++ cheatsheet

Read string with blank spaces

String cheatsheet

Posted on March 13, 2021

Post thumbnail
Post thumbnail
C: scanf("%d%*c", &number); scanf("%[^\n]%*c", string); [Read More]
Tags: C C++ Java cheatsheet
  • ← Newer Posts
  • Older Posts →
  • RSS
  • Email me
  • Facebook
  • GitHub
  • Instagram

Ha Do Manh  •  2022

Powered by Beautiful Jekyll