This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
#!/usr/bin/env bash | |
# REF: https://cloud.google.com/armor/docs/integrating-cloud-armor#with_ingress | |
# REF: https://cloud.google.com/armor/docs/configure-security-policies | |
# REF: https://cloud.google.com/iap/docs/load-balancer-howto | |
# REF: https://cloud.google.com/sdk/gcloud/reference/compute/url-maps/add-path-matcher | |
# REF: https://cloud.google.com/load-balancing/docs/https/setting-up-url-rewrite | |
export PROJECT_ID=$(gcloud config get-value project) | |
export PROJECT_USER=$(gcloud config get-value core/account) # set current user |
This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
None of the string methods modify this
– they always return fresh strings.
charAt(pos: number): string
ES1
Returns the character at index pos
, as a string (JavaScript does not have a datatype for characters). str[i]
is equivalent to str.charAt(i)
and more concise (caveat: may not work on old engines).
This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
Moved to https://github.com/ebidel/puppeteer-examples |
# .gitignore for ASP.NET MVC / Windows Azure development | |
# Original file: https://gist.github.com/3318347 by @codingoutloud | |
## Github doc on ignoring files: https://help.github.com/articles/ignoring-files | |
## The man page for .gitignore (referenced by github): http://man.cx/gitignore | |
## Of possible interest (can be complex): https://github.com/github/gitignore | |
# Troubleshooting | |
# 1. If you add a .gitignore file to an existing repo (or significantly change one), you may want | |
# to force it to act as though the new/updated .gitignore was in force the whole time. | |
## http://stackoverflow.com/questions/1139762/gitignore-file-not-ignoring |
[ | |
// easy insert mode exiting | |
{ "keys": ["j", "j"], "command": "exit_insert_mode", | |
"context": | |
[ | |
{ "key": "setting.command_mode", "operand": false }, | |
{ "key": "setting.is_widget", "operand": false } | |
] | |
}, |