rustup toolchain install stable
rustup target add wasm32-unknown-unknown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove any existing gq alias/function to avoid conflicts | |
unalias gq 2>/dev/null | |
unfunction gq 2>/dev/null | |
gq() { | |
local url="$1" | |
if [ -z "$url" ]; then | |
echo "Usage: gq <github-url>" | |
return 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="th"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>SVG Fish Graph (4–5 Colors)</title> | |
<style> | |
:root { | |
/* ปรับสีของแต่ละส่วนได้ที่นี่ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ut-tab-bar-item.icon-bot { | |
order: 3; | |
} | |
.ut-tab-bar-item.icon-bot:before { | |
content: "\E00C"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {default as momentNG} from 'moment'; | |
import 'moment-timezone'; | |
import 'moment/locale/th'; | |
import i18n from '@src/services/i18n.service'; | |
export const momentLocale = momentNG.locale('th'); | |
if (momentLocale !== 'th') { | |
throw new Error(`Moment fell back to locale ${momentLocale}`); | |
} | |
export const toBuddhistYear = (moment, format) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# inspired by | |
# https://gist.github.com/JannikArndt/feb720c1f5d210b4820b880af23f2a07 | |
# which was inspired by | |
# https://github.com/fwartner/mac-cleanup/blob/master/cleanup.sh | |
# https://gist.github.com/jamesrampton/4503412 | |
# https://github.com/mengfeng/clean-my-mac/blob/master/clean_my_mac.sh | |
# https://github.com/szymonkaliski/Dotfiles/blob/master/Scripts/clean-my-mac | |
# http://brettterpstra.com/2015/10/27/vacuuming-mail-dot-app-on-el-capitan/ / https://github.com/pbihq/tools/blob/master/MailDBOptimiser.sh |
To support my open-source work, consider adding me on Patreon.
An easy to refer to document for regularly setting up macOS 10.14 Mojave.
The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Ancient%20Origins.json"}, | |
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Aquapolis.json"}, | |
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Arceus.json"}, | |
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BREAKpoint.json"}, | |
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BREAKthrough.json"}, | |
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/BW%20Black%20Star%20Promos.json"}, | |
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Base%20Set%202.json"}, | |
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Base.json"}, | |
{"url": "https://raw.githubusercontent.com/PokemonTCG/pokemon-tcg-data/master/json/cards/Black%20&%20White.json"}, | |
{"url": "https://raw.githu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## When you no idea about build error | |
watchman watch-del-all && rm -rf node_modules && rm -rf ~/.rncache && yarn && rm -rf /ios/build && react-native run-ios |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright 2017 Théo Chamley | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, merge, | |
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
# to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or |
NewerOlder