Skip to content

Instantly share code, notes, and snippets.

View edson-github's full-sized avatar
🏠
Working from home

Edson Andrade edson-github

🏠
Working from home
View GitHub Profile
mpg cylinders displacement horsepower weight acceleration model_year origin name
18 8 307 130 3504 12 70 1 chevrolet chevelle malibu
15 8 350 165 3693 11.5 70 1 buick skylark 320
18 8 318 150 3436 11 70 1 plymouth satellite
16 8 304 150 3433 12 70 1 amc rebel sst
17 8 302 140 3449 10.5 70 1 ford torino
15 8 429 198 4341 10 70 1 ford galaxie 500
14 8 454 220 4354 9 70 1 chevrolet impala
14 8 440 215 4312 8.5 70 1 plymouth fury iii
14 8 455 225 4425 10 70 1 pontiac catalina
@edson-github
edson-github / pydata_denver_demo.py
Created March 15, 2021 02:32 — forked from lauralorenz/pydata_denver_demo.py
Pydata Denver basic ETL flow
import requests
import json
from collections import namedtuple
from contextlib import closing
import sqlite3
from prefect import task, Flow
## extract
@task
@edson-github
edson-github / importJSON.gs
Created August 18, 2021 20:35 — forked from stefanjudis/importJSON.gs
API data in google sheets
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@edson-github
edson-github / README.md
Created August 21, 2021 03:37
QEMU + Ubuntu ARM aarch64

QEMU + Ubuntu ARM aarch64

These are the steps I used to get Ubuntu ARM aarch64 running with QEMU on OSX.

Get Ubuntu Image and QEMU EFI:

wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-arm64-uefi1.img
wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd
@edson-github
edson-github / brasil_io.py
Created August 28, 2021 22:55 — forked from turicas/brasil_io.py
Exemplo de código para acessar dados do Brasil.IO
import csv
import gzip
import io
import json
from urllib.parse import urlencode, urljoin
from urllib.request import Request, urlopen
class BrasilIO:
@edson-github
edson-github / covariance_to_correlation.py
Created May 1, 2022 14:57 — forked from wiso/covariance_to_correlation.py
Compute correlation matrix from covariance matrix using numpy
import numpy as np
def correlation_from_covariance(covariance):
v = np.sqrt(np.diag(covariance))
outer_v = np.outer(v, v)
correlation = covariance / outer_v
correlation[covariance == 0] = 0
return correlation
@edson-github
edson-github / SEO-Guide.md
Created May 15, 2022 16:11 — forked from 17twenty/SEO-Guide.md
Creating and building an SEO strategy for your site

Hey guys!

There's a TON of content out there on SEO - guides, articles, courses, videos, scams, people yelling about it on online forums, etc etc..

Most of it, however, is super impractical. If you want to start doing SEO TODAY and start getting results ASAP, you'll need to do a TON of digging to figure out what's important and what's not.

So we wanted to make everyone's lives super easy and distill our EXACT process of working w/ clients into a stupid-simple, step-by-step practical guide. And so we did. Here we are.

A bit of backstory:

@edson-github
edson-github / emailchecker.py
Created November 29, 2022 16:54 — forked from humrochagf/emailchecker.py
Lendo emails do gmail
# Este é o código de como ler emails do gmail
# discutido no calango, ele foi escrito para rodar em
# python 3
import email
import imaplib
EMAIL = 'calangotestedeemail@gmail.com'
PASSWORD = '@Calango123'
SERVER = 'imap.gmail.com'
import aspose.cells
from aspose.cells import Workbook, LoadOptions, LoadFormat
loadOptions = LoadOptions(LoadFormat.HTML)
workbook = Workbook(dataDir + "wordtoHtml.html", loadOptions)
workbook.save(dataDir +"wordtoexcel.xlsx")
@edson-github
edson-github / Web scrape e-commerce site.py
Created February 2, 2023 14:11 — forked from chayb/Web scrape e-commerce site.py
Web scrape amazon.in TV links
#importing libraries
import selenium
from selenium import webdriver as wb
from selenium.webdriver.support.ui import Select
import pandas as pd
import time
#Opening Chrome browser
wbD=wb.Chrome('chromedriver.exe')