Skip to content

Instantly share code, notes, and snippets.

View JoeKyy's full-sized avatar
🏠
Avalaible for remote jobs.

Jhomar "Joe" Nando JoeKyy

🏠
Avalaible for remote jobs.
View GitHub Profile
@JoeKyy
JoeKyy / select-estados-br
Created October 8, 2019 18:56 — forked from cassiocardoso/select-estados-br
Select com uma lista de todos os estados brasileiros.
<select name="estados-brasil">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>
@JoeKyy
JoeKyy / README.md
Created September 7, 2019 20:30 — forked from thurow/README.md
Validação de CPF e CNPJ com integração com React Forms, implementado com Angular 6.

Exemplos

Uso com reactive forms

new FormGroup({
    cpf: new FormControl('', [
        Validators.required,
        Validators.pattern(/^(\d{3}\.){2}\d{3}\-\d{2}$/),
 Validators.minLength(14),
@JoeKyy
JoeKyy / nvm_fix.sh
Created October 21, 2018 02:11 — forked from itsmepetrov/nvm_fix.sh
Fix NVM to use from root (or sudo)
# StackOverflow: http://stackoverflow.com/questions/21215059/cant-use-nvm-from-root-or-sudo
# Source: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-with-nvm-node-version-manager-on-a-vps
# The below command seems to fix the problem
n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local
# The above command is a bit complicated, but all it's doing is copying whatever version of node
# you have active via nvm into the /usr/local/ directory (where user installed global files should
# live on a linux VPS) and setting the permissions so that all users can access them.
@JoeKyy
JoeKyy / bootstrap_shortcodes.php
Created June 12, 2017 02:19 — forked from DNA/bootstrap_shortcodes.php
WP shortcodes to apply bootstrap grid
<?php
// [col size="foo-value"]
// Create the function that will handle the shortcode
function grid_column($attributes, $content = null) {
// shortcode_atts is used to define default attribute values
$attributes = shortcode_atts(array('size' => '12'), $attributes);
// keep applying shortcodes to content
$content = do_shortcode($content);