Skip to content

Instantly share code, notes, and snippets.

View rrcosta's full-sized avatar

Rafael Rezende Costa rrcosta

  • São Paulo e a Capital do Pão de Queijo..
View GitHub Profile
@rrcosta
rrcosta / ripgrep-in-emacs.md
Created October 23, 2020 15:27 — forked from pesterhazy/ripgrep-in-emacs.md
Using ripgrep in Emacs using helm-ag (Spacemacs)

Why

Ripgrep is a fast search tool like grep. It's mostly a drop-in replacement for ag, also know as the Silver Searcher.

helm-ag is a fantastic package for Emacs that allows you to display search results in a buffer. You can also jump to locations of matches. Despite the name, helm-ag works with ripgrep (rg) as well as with ag.

How

import random
def jogar():
print("*********************************")
print("Bem vindo ao jogo de Advinhacao")
print("*********************************")
numero_secreto = random.randrange(1,101)
total_de_tentativas = 4
pontos = 1000
@rrcosta
rrcosta / pm_install.sh
Created March 21, 2018 17:28 — forked from punkdata/pm_install.sh
Postman Install Ubuntu 17.10
#!/usr/bash
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
#Create a Desktop Entry
cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman