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
1. Switch platform pour Android | |
2. Ouvrir les `Player settings` | |
3. Changer le `Bundle Version Code` | |
4. Mettre le mot de passe de la keystore | |
5. Build sans `Development Build` |
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
1. Switch platform pour iOS | |
2. Run as `release` | |
3. Build | |
4. Save dans le dossier `builds` | |
5. Ouvrir le nouveau `.xcodeproj` avec Xcode |
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
- A la racine: | |
`keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000` | |
- Choix d'un mot de passe | |
- Copier le nouveau fichier `my-release-key.keystore` dans `android/app/` | |
`cp my-release-key.keystore android/app/` |
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
const pgcd = (a,b) => ((a%=b) == 0) ? b : pgcd(b,a); |
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
!isNaN(parseFloat(v)) && isFinite(v) |
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 isPrime(num) { | |
let prime = true; | |
for(let i = 2; i < num; i += 1) { | |
if (num % i === 0) { | |
prime = false; | |
} | |
} | |
return (num < 2) ? false : prime; | |
} |
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
copy = JSON.parse(JSON.stringify(object)); |
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
Use '/' to enclose regular expressions or use new RegExp('') | |
Méthode test() renvoie un booléen indiquant si la chaine de caractères contient au moins un match du regex testé | |
/cat/.test('the cat says meow'); -> true | |
/cat/.test('the dog says meow'); -> false | |
Un ensemble de symboles pour un ensemble d'instructions: | |
. => match le caractère indiqué, vaut 1 occurence | |
* => match le caractère indiqué, vaut de 0 à illimité occurences | |
+ => match le caractère indiqué, vaut de 1 à illimité occurences |
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
watchman watch-del-all && rm -rf node_modules/ && npm install |
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
const randId = () => Math.random().toString(36).substr(2, 10) |