import (
_ "net/http/pprof"
"net/http"
)
Discover gists
React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.
Table of Contents
React DOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small additional overhead it is opt-in for production mode. This gist explains how to opt-in.
This file contains 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 NaturalLanguage | |
let languages: [NLLanguage] = [ | |
.amharic, .arabic, .armenian, .bengali, .bulgarian, | |
.burmese, .catalan, .cherokee, .croatian, .czech, | |
.danish, .dutch, .english, .finnish, .french, | |
.georgian, .german, .greek, .gujarati, .hebrew, | |
.hindi, .hungarian, .icelandic, .indonesian, .italian, | |
.japanese, .kannada, .khmer, .korean, .lao, | |
.malay, .malayalam, .marathi, .mongolian, .norwegian, |
Select Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type
Add rule of HTTP and HTTPS
This file contains 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
# Author: M. Dutt (hello@mditech.net) | |
# Date: 20/11/2023 | |
# Purpose: Correct file and directory permissions of Laravel project. | |
# | |
Change the owner and group of your Laravel project. | |
sudo chown -R developer:www-data /var/www/project | |
OR | |
sudo chown -R developer:apache /var/www/project |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
YARD CHEATSHEET http://yardoc.org
May 2020 - updated fork: https://gist.github.com/phansch/db18a595d2f5f1ef16646af72fe1fb0e
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
NewerOlder