Skip to content

Instantly share code, notes, and snippets.

View SauloSilva's full-sized avatar

Saulo Santiago SauloSilva

View GitHub Profile
import pdftotext
# Load your PDF
with open("teste.pdf", "rb") as f:
pdf = pdftotext.PDF(f)
# How many pages?
print(len(pdf))
# Iterate over all the pages
@SauloSilva
SauloSilva / comoNaoDeixarNoVaucoNoWhatsapp.js
Last active April 14, 2023 23:26 — forked from callmeloureiro/comoNaoDeixarNoVaucoNoWhatsapp.js
Como não deixar no vácuo no whatsapp
// Declaração de variáveis utilizadas
// Mensagem que será enviada
var setTextContent = "Oi! Você está falando com o *FULANO COMPUTADOR*, o computador do FULANO! Infelizmente ele não se encontra no momento, mas assim que possível ele irá responder você :D";
var i;
var group;
var conversas;
var lastMessage;
@SauloSilva
SauloSilva / comoSerChatoNoWhatsapp.js
Created October 31, 2017 17:02 — forked from callmeloureiro/comoSerChatoNoWhatsapp.js
Como fazer alguém te responder no whatsapp
/*
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp...
Que tal enviar mensagens pra ela até obter uma resposta?!
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê!
Para utilizar:
- Abra o web.whatsapp.com;
- Selecione a conversa que você quer;
- Abra o console e cole o código que está no gist;
@SauloSilva
SauloSilva / csv_import_magic.pt-BR.yml
Last active January 26, 2017 14:20
Brazilian translation for CSV Import Magic
pt-BR:
models_and_attributes: &models_and_attributes
models:
importer:
one: Importador
other: Importadores
attributes:
importer:
attachment: Anexo CSV
attachment_error: Anexo de erro CSV
@SauloSilva
SauloSilva / csv_import_magic.en.yml
Last active January 26, 2017 14:20
English translation for CSV Import Magic
en:
models_and_attributes: &models_and_attributes
models:
importer:
one: Importer
other: Importers
attributes:
importer:
attachment: CSV
attachment_error: CSV with errors
@SauloSilva
SauloSilva / PMT_function.rb
Last active January 8, 2018 07:27
The Excel PMT function
module Excel
module Formulas
## rate = The interest rate, per period.
## nper = The number of periods over which the loan or investment is to be paid.
## pv = The present value of the loan / investment.
## fv = An optional argument that specifies the future value of the loan / investment, at the end of nper payments. If omitted, [fv] has the default value of 0.
## type = An optional argument that defines whether the payment is made at the start or the end of the period. 0 for the payment is made at the end of the period and 1 for the payment is made at the beginning of the period. If the type argument is omitted, it takes on the default value of 0 (denoting payments made at the end of the period).
## Eg 1. pmt(0.0199, 1, 100) => tax of 1.99% in the 1 parcel of $100 ~= $101.99 with $1.99 tax
## Eg 2. pmt(0.0199, 2, 100) => tax of 1.99% in the 2 parcels of $100 ~= $51.50 with $1.5 tax per parcel
@SauloSilva
SauloSilva / clojure_get_started.md
Last active May 30, 2016 04:33
Clojure Get Started

listas

São simples

'(1 2 3)

Vetores

@SauloSilva
SauloSilva / skype_hint.txt
Created April 11, 2016 13:48
open more than one skype
open -na /Applications/Skype.app --args -DataPath /Users/$(whoami)/Library/Application\ Support/Skype2
@SauloSilva
SauloSilva / keyrepeat.shell
Created January 4, 2016 14:05 — forked from kconragan/keyrepeat.shell
Enable key repeat in Apple Lion for Sublime Text in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
@SauloSilva
SauloSilva / Preferences.sublime-settings
Created December 30, 2015 05:54
sublime preferences
{
"auto_complete": false,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 0,
"bold_folder_labels": true,
"caret_extra_width": 5,
"gpu_window_buffer": true,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_exit": false,