Skip to content

Instantly share code, notes, and snippets.

library(data.table)
library(dplyr)
library(DescTools)
library(ggplot2)
candidatos2020 <- fread("~/devel/datasets/eleicoes/2020/candidatos/consulta_cand_2020_BRASIL.csv", encoding = 'Latin-1')
recursos2020 <- fread("~/devel/datasets/eleicoes/2020/contas/receitas/receitas_candidatos_2020_BRASIL.csv", encoding="Latin-1", dec=",", sep=";") %>%
mutate(ORIGEM=ifelse(DS_ORIGEM_RECEITA=="Recursos de partido político","PARTIDO_2020","PRIVADO_2020")) %>%
group_by(SQ_CANDIDATO, ORIGEM) %>%
summarise(TOTAL=sum(VR_RECEITA)) %>%
@Tset-Noitamotua
Tset-Noitamotua / powerline_linux_bash_git_config.md
Last active March 14, 2023 13:35
How to install and configure Powerline on Linux (Deepin Linux 15.7, Debian / Ubuntu) with git status?

(Dead) simple installation / configuration of Powerline (powerline-status)

#Linux #bash #git #Powerline

If you ever have to reinstall Powerline on another machine this are the easy steps to follow to give you a nice looking prompt with git status and branch name in your bash terminal. Steps where done on Deepin Linux 15.7 but should also work on Debian / Ubuntu.

image - Deepin Linux Bash Powerline Git Status

TL;DR

#!/usr/bin/python2
from subprocess import Popen, PIPE, STDOUT
from functools import partial
import re, datetime, random
ansi_escape = re.compile(r'\x1b[^m]*m')
p = Popen(['telegram'], stdin=PIPE, stdout=PIPE, stderr=STDOUT)
p.stdout.read(255)