"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"rc-start": "npm start -- --reset-cache",
"clean": "rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean",
"clean-start": "npm run clean && npm run rc-start",
"fresh-install": "rm -rf $TMPDIR/react-* && watchman watch-del-all && rm -rf ios/build/ModuleCache/* && rm -rf node_modules/ && npm cache clean && npm install",
"fresh-start" : "npm run fresh-install && npm run rc-start",
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
| function generateNationalCode() | |
| { | |
| $numbers = []; | |
| $sum = 0; | |
| foreach(array_reverse(range(2, 10)) as $i) { | |
| $j = rand(0, 9); | |
| $numbers[] = $j; | |
| $sum += $j * $i; | |
| } | |
| $m = $sum % 11; |
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 | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" | |
| exit 1 | |
| else | |
| #Update and Upgrade | |
| echo "Updating and Upgrading" | |
| apt-get update && sudo apt-get upgrade -y |
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
| /** | |
| * @param {number|string} value | |
| * @returns {string} | |
| */ | |
| const getPrintableElement = (value) => value + " "; | |
| /** | |
| * @param {number} day | |
| * @returns {string} | |
| */ |
// Within class A
self::foo();
static::foo();
// Without class A
A::foo()
//// Within class AIn file react-native\packager\react-packager\src\node-haste\FileWatcher\index.js you can increase "MAX_WAIT_TIME" variable.
such: 360000. and change function "_createWatcher" to :
_createWatcher(rootConfig) {
const watcher = new WatcherClass(rootConfig.dir, {
glob: rootConfig.globs,
dot: false,
});