Skip to content

Instantly share code, notes, and snippets.

View DiegoLopesLima's full-sized avatar
🏠
Working from home

Diego Lopes Lima DiegoLopesLima

🏠
Working from home
  • Octadesk
  • Brazil
View GitHub Profile
const
compoundInterest = (initial, interest, months, monthlyContribution) => {
let
applicationHistory = [],
final = Array.from(new Array(months)).map(() => monthlyContribution)
@DiegoLopesLima
DiegoLopesLima / instalacao-e-configuracao-do-atom.md
Last active May 22, 2023 02:14
Instalação e configuração do Atom

Instalação e configuração do Atom

  • Pressione o atalho "Tecla Windows + R" para abrir o Executar do Windows.
  • Cole https://atom.io/download/windows_x64 e clique em "Ok" ou pressione "Enter" para executar e iniciar o download da ultima versão LTS do Atom para Windows 64 bits.
  • Execute o arquivo baixado e instale o Atom normalmente.
  • Após a instalação o Atom instala o gerenciador de pacotes APM; Pressione o atalho "Tecla Windows + X", em seguida pressione P; Com o terminal agora aberto, execute o seguinte comando para instalar os principais plugins necessários para uma boa experiência com o Atom:
apm install emmet file-icons rest-client minimap highlight-selected todo-show platformio-ide-terminal color-picker git-control
@DiegoLopesLima
DiegoLopesLima / isValidBRAIR.js
Last active February 17, 2017 13:14
Return true if param value is a valid BRA Individual Registration (CPF).
function isValidBRAIR(value) {
value = String(value).replace(/[^\d]/g, '');
if (value.length === 11 && !/^(\d)\1+$/.test(value)) {
for (var from = 10, to = 2, sum = 0, index = -1; from > (to - 1); from--)
sum += value[++index] * from;
@DiegoLopesLima
DiegoLopesLima / Preferences.sublime-settings
Created November 21, 2016 15:38
Sublime text 3 settings
{
"always_show_minimap_viewport": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"draw_minimap_border": true,
"ensure_newline_at_eof_on_save": true,
"font_size": 11,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[