Skip to content

Instantly share code, notes, and snippets.

https://www.npmjs.com/package/private-bower
// Cálculo: http://www.devmedia.com.br/validar-cpf-com-javascript/23916
function TestaCPF(strCPF) {
var Soma;
var Resto;
Soma = 0;
if (strCPF == "00000000000") return false;
for (i=1; i<=9; i++) Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (11 - i);
Resto = (Soma * 10) % 11;
@suuuzi
suuuzi / vue
Created November 17, 2016 17:04
https://about.gitlab.com/2016/10/20/why-we-chose-vue/
https://www.html5rocks.com/en/tutorials/file/dndfiles/
return intList.stream().map(in -> in == null ? BigInteger.ZERO : BigInteger.valueOf(in.longValue())).collect(Collectors.toList());
function arraysEqual(a1,a2) {
return JSON.stringify(a1)==JSON.stringify(a2);
};
https://www.jetbrains.com/help/webstorm/2016.2/zooming-in-the-editor.html#d280906e30
diskpart
list disk
select disk <number>
clean
create partition primary
format fs=fat32 quick
// Code here will be linted with JSHint.
/* jshint ignore:start */
// Code here will be ignored by JSHint.
/* jshint ignore:end */