Skip to content

Instantly share code, notes, and snippets.

//.eslintrc.js
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:react/jsx-runtime',
'plugin:storybook/recommended',
'plugin:import/recommended',
@fatgy
fatgy / config.md
Last active June 6, 2022 15:55
Custom domain for vite app when develop

Create cert by mkcert

mkcert -key-file ./.cert/key.pem -cert-file ./.cert/cert.pem "my-vite-app.test"
{
  server: {
 https: {
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics":
{
"name": "Shatmongkol Amaraveja",
"label": "Web Developer",
"email": "fatgygy@gmail.com",
"phone": "+6689-219-6298",
"image": "https://avatars.githubusercontent.com/u/353813?s=400&u=be52a735aa479aff95b45340224a9134a55471b7&v=4",
"location":
@fatgy
fatgy / structure.txt
Created December 30, 2020 03:50
Guidelines to improve your React folder structure
https://maxrozen.com/guidelines-improve-react-app-folder-structure/
src/
|-- components/
| |-- Avatar/
| | |-- Avatar.ts
| | |-- Avatar.test.ts
| |-- Button/
| | |-- Button.ts
| | |-- Button.test.ts
@fatgy
fatgy / ISSUE_TEMPLATE.md
Last active July 22, 2019 09:51
Mobile issues template

Platform

  • Android
  • iOS

รุ่นมือถือ

App name:

App Version:

@fatgy
fatgy / NavigationActivity.java
Last active August 31, 2018 07:19
command line android
// com/reactnativenavigation/NavigationActivity.java
@Override
public void onNewIntent(Intent intent) {
// super.onNewIntent(intent);
getReactGateway().onNewIntent(intent);
}
@fatgy
fatgy / clean.md
Last active July 16, 2018 04:53
clean build in xcode

via Facebook Login with React Native for iOS

  1. Clean Build -> ⇧⌘K (Shift + Command + K) - to clean builded frameworks
  2. Clean Build Folder -> ⌥⇧⌘K (Option+Shift+Command+K)
  3. Close Xcode
  4. Run this command in terminal rm -rf ~/Library/Developer/Xcode/DerivedData
  5. Open Xcode (in the ios folder of the React Native project, run open RougeOne.xcodeproj
@fatgy
fatgy / laravel-mysql-modes.php
Last active May 21, 2018 07:10
Laravel config mysql modes
<?php
// http://voerro.com/blog/simple-visit-tracker-for-laravel-5.5-with-tdd
[
'modes' => ['STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'],
]
h2. Platform
() Android
() iOS
h2. รุ่นมือถือ
*App name:*
*App version:*
const initialState = {
addedIds: [],
quantityById: {},
kitById: {},
itemFormula: {
byId: {
1: {
id: 1,
itemId: 1,