ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCxiLRwxlDGsOcxSrCHYG4ix0P1I2QPeiSFPv7Slhuga8cmYbMEVmHMJzE4ueGe2n6DvRnxue1GtNZjjH/uFKiDkIMVJk9k6ws9zCFq9QE/gd1bGXUGzOEtHbWRsxBt8jPsFfkYggG8VH9wd23ILkjyKU/5IZVIjVwooxqhsiVFCyi4Bjerd/X3/qqmbdVlEe1G21gHBVQUYQDNQVSut1YKlwElbWtxkesWP9mNBReFLybNu1qzzRcIQ5ySrmd6OggxSV4dLeIqEd09Ju+HSQbYgG/JRaa/JQaeUFqshhH+KuJU/lo7djqOedS5qna6iG0mSYszNdD+nrt/erk+NqYNccXB6fjdtBAJvNcfeKje3r5zICRC/SkWBjvOGU1NjsQscLt0K/jlFOb2yKV2dV5YxXPDiBmrbmNpSfysqYNCokGOhCpePwUMCvUWMQTENTFMH5wN6CJPHHgTt02hGjzm5fD3KpYbxolTfNZ4SI4hoRhZl/RcwLkFMw6KwWURaEYKfKD0Tp7GIQ5parqoIEEVBKPFyUkqhVDOm+OujUkPPOPmJ6oLx7je10ER5Tx0GnuBINYu0Wsd3uZoc/8WgcaM/lGFeJyfOfBxe/f+nA971FhVoqBoYwBRpYN6q7COVSVPS/MymjeoTZPVej5wMWq53EQcBfZ0zihGr6zxw/cDVw== [email protected]
This file contains 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($){ | |
$.fn.serializeObject = function(){ | |
var self = this, | |
json = {}, | |
push_counters = {}, | |
patterns = { | |
"validate": /^[a-zA-Z][a-zA-Z0-9_]*(?:\[(?:\d*|[a-zA-Z0-9_]+)\])*$/, | |
"key": /[a-zA-Z0-9_]+|(?=\[\])/g, | |
"push": /^$/, |
This file contains 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
// Same as slugify.js but using underscore | |
// Ex: "Anões de Jardim Botânico" will become "anoes_de_jardim_botanico" | |
function underscoredSlug (text) { | |
const a = 'àáãäâèéëêìíïîòóöõôùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/-,:;'; | |
const b = 'aaaaaeeeeiiiiooooouuuuncsyoarsnpwgnmuxzh______'; | |
const p = new RegExp(a.split('').join('|'), 'g'); | |
return text.toString().toLowerCase() |
This file contains 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 slugify (text) { | |
const a = 'àáãäâèéëêìíïîòóöõôùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/_,:;'; | |
const b = 'aaaaaeeeeiiiiooooouuuuncsyoarsnpwgnmuxzh------'; | |
const p = new RegExp(a.split('').join('|'), 'g'); | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(p, c => | |
b.charAt(a.indexOf(c))) // Replace special chars | |
.replace(/&/g, '-and-') // Replace & with 'and' |
This file contains 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
// To use it, jus add the "money" class on your input field | |
$('.money').on('keypress', function (e) { | |
// Accept only numbers | |
var charCode = (e.which) ? e.which : e.keyCode; | |
if (charCode != 46 && charCode > 31 | |
&& (charCode < 48 || charCode > 57)) | |
return false; | |
}).on('keyup', function (e) { |
This file contains 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
// To use it, jus add the "numberInput" class on your input field | |
$('.numberInput').on('keypress', function (e) { | |
// Accept only numbers | |
var charCode = (e.which) ? e.which : e.keyCode; | |
if (charCode != 46 && charCode > 31 | |
&& (charCode < 48 || charCode > 57)) | |
return false; | |
}).on('keyup', function () { | |
$(this).val($(this).val().replace(/\D/g, '')); |
This file contains 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 a classe ".phoneNumber" no campo input do telefone | |
$('.phoneNumber').on('keyup', function (e) { | |
if(e.keyCode == 8){ | |
let numberField = $(this); | |
let num = numberField.val(); | |
if(num.length == 15){ | |
let n = num.replace(/ /g, ''); | |
n = n.split(''); |
This file contains 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
``` | |
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains example.com --no-parent http://example.com | |
``` |
How to customize ubuntu with Arc-Theme + Numix icons
- Install Unity Tweak Tool
sudo apt-get install unity-tweak-tool
- Add Arc repository
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/arc-theme.list"