Acesse o seu arquivo app/Providers/AppServiceProvider.php
, e no método register
adicione o seguinte :
/**
* Register any application services.
*
* @return void
*/
function alertTerminal(){ | |
console.log("\007"); | |
} |
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
// Regex para validação de string no formato CNPJ | |
export const regexCNPJ = /^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/ | |
// Método de validação | |
// Referência: https://pt.wikipedia.org/wiki/Cadastro_Nacional_da_Pessoa_Jur%C3%ADdica | |
export function validCNPJ(value: string | number | number[] = '') { | |
if (!value) return false | |
// Aceita receber o valor como string, número ou array com todos os dígitos | |
const isString = typeof value === 'string' |
<?php | |
function validaCPF($cpf) { | |
// Extrai somente os números | |
$cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
// Verifica se foi informado todos os digitos corretamente | |
if (strlen($cpf) != 11) { | |
return false; |
For Android: | |
Manually change it in android/app/src/main/java/com/PROJECT_NAME/MainActivity.java: | |
package MY.APP.ID; | |
In android/app/src/main/java/com/PROJECT_NAME/MainApplication.java: | |
package MY.APP.ID; | |
In android/app/src/main/AndroidManifest.xml: | |
package="MY.APP.ID" |
List of files to edit to change/rename your react-native android project. The following constants are used in the files to denote what kind of value should be placed.
APPLICATION_NAME
- this will be used by react-native to identify your application. (settings.gradle, MainActivity.java, etc.)APPLICATION_DISPLAY_NAME
- display name in Android Home Screen.ANDROID_PACKAGE_NAME
- A valid android package name.#!/usr/bin/env python | |
import os | |
import md5 | |
import zlib | |
import json | |
import socket | |
import urllib2 | |
import subprocess | |
As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL
per Documentation.
To add an entry in the Windows Explorer context menu to open Cmder
in a specific directory, paste this into a OpenCmderHere.reg
file
and double-click to install it.