first you have to define the color (or you can use one of those that are already defined)
app\App_Resources\Android\src\main\res\values-v21\colors.xml
<resources>
. . .
<color name="my_white">#fff</color>
</resources>
| const randColor = () => '#' + ('00000'+(Math.random()*(1<<24)|0).toString(16)).slice(-6); |
| export function RangeConvertFactory({ | |
| oldMin, oldMax, newMin, newMax | |
| }) { | |
| const oldRange = oldMax - oldMin; | |
| const newRange = newMax - newMin; | |
| return (val) => (((val - oldMin) * newRange) / oldRange) + newMin; | |
| } | |
| // usage |
| var isType = (ctor, x) => Object(x) instanceof ctor | |
| var fn = (sig, f) => { | |
| return (...as) => { | |
| // Argument mismatch | |
| if (as.length < sig.length-1) { | |
| throw new TypeError(`Argument ${sig.length-as.length} missing`) | |
| } | |
| // Argument type mismatch | |
| as.forEach((a, i) => { |
| <key>NSAppTransportSecurity</key> | |
| <dict> | |
| <key>NSAllowsArbitraryLoads</key> | |
| <true/> | |
| <key>NSExceptionDomains</key> | |
| <dict> | |
| <key>http://yourdomain.com</key> | |
| <dict> | |
| <key>NSIncludesSubdomains</key> | |
| <true/> |
first you have to define the color (or you can use one of those that are already defined)
app\App_Resources\Android\src\main\res\values-v21\colors.xml
<resources>
. . .
<color name="my_white">#fff</color>
</resources>
| # Commands that are useful once in a while but not always for everyday usage | |
| # Remove all node_modules forlder recursively | |
| find . -name "node_modules" -type d -prune -exec rm -rf '{}' + | |
| # List globally installed npm package | |
| npm list -g --depth=0 | |
| # Loop over files in the current dir | |
| for f in *; do |
git fetch origin pull/ID/head:BRANCHNAMEexample:
| openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem | |
| after this you can `http-server -S -o` to run it on localhost in https mode. |