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
export function toPascalCase(str) { | |
return str | |
.toLowerCase() | |
.replace(/[-_]+/g, " ") | |
.replace(/[^a-zA-Z0-9]+(.)/g, (m, chr) => { | |
return chr.toUpperCase(); | |
}); | |
} | |
export function toSnakeCase(str) { |
Descargar esta hoja de atajos: Guías de atajos - Angular
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
/** | |
* Encrypts plaintext using AES-GCM with supplied password, for decryption with aesGcmDecrypt(). | |
* (c) Chris Veness MIT Licence | |
* | |
* @param {String} plaintext - Plaintext to be encrypted. | |
* @param {String} password - Password to use to encrypt plaintext. | |
* @returns {String} Encrypted ciphertext. | |
* | |
* @example | |
* const ciphertext = await aesGcmEncrypt('my secret text', 'pw'); |
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
namespace DailyCodingProblem.CodingProblems | |
{ | |
public static class Arrays | |
{ | |
public static int[] GetProductOfAllOtherElements(int[] numbers) | |
{ | |
// Generate prefix products | |
var prefixProducts = new int[numbers.Length]; | |
for (int i = 0; i < numbers.Length; i++) |
Normalizar base de datos de acuerdo a los primeros 3 niveles:
- Elimine los grupos repetidos de las tablas individuales.
- Cree una tabla independiente para cada conjunto de datos relacionados.
- Identifique cada conjunto de datos relacionados con una clave principal.
NewerOlder