Skip to content

Instantly share code, notes, and snippets.

@aalvesjr
aalvesjr / notes.md
Created October 3, 2016 15:57
Sites to draw online diagrams
@aalvesjr
aalvesjr / vim74_tutor.pt.utf-8
Created July 8, 2016 14:25
Vim Tutor versão 1.7
===============================================================================
= B e m V i n d o a o V I M T u t o r - Versão 1.7 pt_BR =
===============================================================================
Vim é um poderoso editor que possui muitos comandos, tantos que seria
impossível ensinar num tutorial como este. Este tutorial é planejado para
apresentar os comandos suficientes para você ficar habilitado a usar
facilmente o Vim como um editor de textos genérico.
O tempo aproximado requerido para completar o tutorial é de 25-30 minutos,
@aalvesjr
aalvesjr / ebooks.md
Last active February 6, 2021 19:19
My ebooks from packetpub

Ebooks:

  • 3D Printing with RepRap Cookbook [eBook] - Richard Salinas
  • 3D Printing with SketchUp [eBook] - Marcus Ritland
  • ASP.NET 3.5 CMS Development [eBook] - Curt Christianson, Jeff Cochran
  • ASP.NET Data Presentation Controls Essentials [eBook] - Joydip Kanjilal
  • ASP.NET Web API: Build RESTful web applications and services on the .NET framework [eBook] - Joydip Kanjilal
  • Allan Brito
  • Amazon Web Services: Migrating your .NET Enterprise Application [eBook] - Rob Linton
  • Android 3.0 Application Development Cookbook [eBook] - Kyle Merrifield Mew
@aalvesjr
aalvesjr / user_test.rb
Created April 20, 2016 16:13
Testando modelo de Usuário
require 'test_helper'
class UserTest < ActiveSupport::TestCase
test 'nome é obrigatório' do
user = User.create(name: '')
assert user.errors, :name
end
test 'associação com empresa é obrigatória' do
user = User.create
@aalvesjr
aalvesjr / down.sh
Last active April 18, 2016 17:32
Downloading episodes from DeveloperTea website
URL_EPISODES=https://developertea.com/episodes
URL=https://audio.simplecast.fm
for EPISODE in $(cat episodes.txt)
do
DOWN="${URL}/${EPISODE}.mp3"
echo "Baixando ${DOWN}"
wget ${DOWN}
done
@aalvesjr
aalvesjr / index.html
Created March 28, 2016 13:32 — forked from kakobotasso/index.html
Projeto classificacao
<html>
<head>
<title>Armando Gay</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="guardaProjetos">
<ul id="projetos">
<!-- PROJETO -->
@aalvesjr
aalvesjr / clojure.js
Created March 24, 2016 11:46
JavaScript: Closures
function initSeq() {
var i=0;
return function(){
i += 1;
return i
}
}
var a = initSeq()
, b = initSeq()
@aalvesjr
aalvesjr / tmux.md
Last active March 19, 2016 18:15
[TMUX] Rename session, and load config file

Rename sessions

# usage: rename-session [-t target-session] new-name
tmux rename -t 0 project-name

# check with
tmux list-sessions

Load config file

@aalvesjr
aalvesjr / utilities.md
Last active February 2, 2023 02:58
[Excel] Funções para calcular valor e aliquota de INSS e Imposto de Renda (IR) no Excel com Visual Basic

Valores criados utilizando a tabela de 2016, caso esses valores sejam alterados, mudar as funcções:

  • IniciaBasesINSS()
  • IniciaBasesIR()
  • IniciaParecelaDescontoIR()

Presumindo que as aliquotas de INSS sejam sempre 8, 9 e 11 e as de IR sejam 7.5 , 15, 22.5 e 27.5 , caso estas aliquotas mudem outros pontos no código devem ser alterados

Acrescentar estas funções (Alt + F11) a planilha:

' Aliquota de INSS
@aalvesjr
aalvesjr / gitconfig.md
Last active June 7, 2016 13:50
[GIT] Git alias configured in .gitconfig
[user]                                                                                                                                                
  email = [email protected]
  name = Armando
[color "diff"]
  commit = yellow
  frag = cyan reverse
  meta = black
  new = green
 old = red