My new blog posts
Using Google TypeScript Style Guide on your TypeScript React project
GTS is Google’s TypeScript style guide, and the configuration for formatter, linter, and automatic code fixer. No lint rules to edit, no configuration to update, no more bike shedding over syntax. ...
A tutorial to add Facebook comments to a website
Create a Facebook App before creating the Facebook comments you need to have your Facebook App first if you already have you just skip this step. Go to https://developers.facebook.com/apps/ cli...
A complete guide to build a high-performance static website with Gatsby and get 100% score on Google Lighthouse
Install Gatsby if you’re a beginner you should follow the getting start from Gatsby https://www.gatsbyjs.org/docs/quick-start/ I’ll skip this step because it’s too easy just follow the guide ># Ins...
Getting start to build and install OpenWRT on Banana Pi R64 by using macOS
This tutorial is a getting start to build OpenWRT image and install on Banana Pi R64, This guide also works with the Banana Pi R2 but it will be a difference in some steps. What is Banana Pi R64 Th...
Edit a line of code and re-complie aria2 to unlock aria 2 connections limit
There’s a maximum number 16 connections hard code in aria2 so when I want to add more connections I need to edit a line of code and recompile it Edit max connections per server Edit number argument...
Simple tricks to code-golf in Python
Operator Negating Boolean >if not C: if C<1: if~-C: And operator >if a and b: if a*b: if i==4 and j==4: if i==4and j==4: if(i,j)==(4,4): if i==j==4: Increment or decrement 1 in statement >c/(...
สร้างบอทเกมเพื่อเล่นเกมไพ่แข่งกับคนอื่น
Codingame เป็นเว็บที่มีเว็บโปรแกรมมิ่งแนว Bot Programming ที่ให้ผู้เล่นเขียนโค๊ดเพื่อให้บอทไปสู้กับบอทคนอื่น สามารถเล่นได้ที่นี่ Link สำหรับคนที่ยังไม่ค่อยเข้าใจระบบเกม ให้ลองเลื่อนลงไปดู Game loop...