Posts by Category

Ruby

Rails - Seed

less than 1 minute read

Get API data > Save it as a JSON file

javascript - Basic

less than 1 minute read

javascript syntax is harder than Ruby, Python. Need to get used to do it.

HTML CSS

2 minute read

Basic div is important, everything is in website contain of blocks. button is in line tag, so if you wnant to make it as a block tag, put...

Back to Top ↑

Flask

Flask - Debug

less than 1 minute read

Turn on Debug mode (venv) (base) ➜ microblog git:(master) ✗ export FLASK_DEBUG=1 (venv) (base) ➜ microblog git:(master) ✗ flask run

Flask - before request

less than 1 minute read

The @before_request decorator from Flask register the decorated function to be executed right before the view function. This is extremely useful because now ...

Back to Top ↑

React

React-ref

1 minute read

In the typical React dataflow, props are the only way that parent components interact with their children. To modify a child, you re-render it with new props.

React- avoid this bug

1 minute read

In case of Event listener, need to use onClickonSubmitonChange But when you call event listener with this, it means window not a class we want. So we ...

React- Parent Child

less than 1 minute read

How to pass data from child component to its parent in ReactJS?

React-Props

less than 1 minute read

```js const SeasonDisplay = props => { const season = getSeason(props.lat, new Date().getMonth()); const text = season === ‘winter’ ? ‘Burr, it is...

Back to Top ↑

Python

Python - For / Else

less than 1 minute read

```python def solution(skill, skill_trees): answer = 0

Python - Class advanced with Super

1 minute read

When Create Child class, send the parent class as a parameter when creating the child class Child class will get __init__ and functions of Parent’s

Back to Top ↑

Javascript

Back to Top ↑

Git

Git-basic

less than 1 minute read

Create Git repo and connect to Git git remote add origin (url from github) git remote -v git push origin master

Back to Top ↑