Skip to content

Instantly share code, notes, and snippets.

View msperlin's full-sized avatar

Marcelo S. Perlin msperlin

View GitHub Profile
@msperlin
msperlin / MyRandomTest_examdesign.tex
Last active March 21, 2021 18:26
An example of a latex file for usage with RndTexExams
\documentclass[10pt]{examdesign}
% loads all necessary packages (feel free to customize for your needs)
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{pifont}
\usepackage[english]{babel}
\usepackage{fancyhdr}
\documentclass[10pt, answers]{exam}
% loads all necessary packages (feel free to customize for your needs)
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{pifont}
\usepackage[english]{babel}
%\usepackage{fancyhdr}
@msperlin
msperlin / fresh_install.sh
Last active January 10, 2021 23:47
Fresh Install Linux Mint and Kubuntu
#!/usr/bin/env bash
# ----------------------------- VARIÁVEIS ----------------------------- #
PPA_TEXSTUDIO="ppa:sunderme/texstudio"
PPA_OBSTUDIO="ppa:obsproject/obs-studio"
URL_RSTUDIO="https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.3.1093-amd64.deb"
URL_GOOGLE_CHROME="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
URL_CODE="https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64"
DIRETORIO_DOWNLOADS="$HOME/Downloads/dl_software"
@msperlin
msperlin / Example_GetDFPData2-Ytube.R
Created April 17, 2021 14:33
Exemplo de uso do pacote GetDFPData2 (entrevista 04/2021)
if (!require('GetDFPData2')) install.packages('GetDFPData2')
if (!require('tidyverse')) install.packages('tidyverse')
library(GetDFPData2)
library(tidyverse)
my_company <- 'WEG'
search_company(my_company)
yc_get <- function(first_date, last_date) {
first_date <- as.Date(first_date)
last_date <- as.Date(last_date)
# find biz days in between
br_cal <- get_calendar()
date_vec <- bizdays::bizseq(first_date, last_date, br_cal)