Skip to content

Instantly share code, notes, and snippets.

View BragatteMAS's full-sized avatar
📑

Bragatte BragatteMAS

📑
View GitHub Profile
@SkepticMystic
SkepticMystic / phrase bank.md
Last active October 1, 2021 21:33
Phrase Bank

General Language Functions

Being Cautious

Devices that distance the author from a proposition

It is thought that …
It is believed that …
It has been reported that …
It is a widely held view that …

@azlen
azlen / bulletpaths.js
Last active June 24, 2025 00:48
All Paths Lead to Roam
/*
* credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield)
* for the original concept which was part of their RoamGames submission
* and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/
*
*/
/* ======= OPTIONS ======== */
/* note: if you change these, reload the page to see the effect */
@jvfe
jvfe / get_covid_data_jhu.py
Last active November 14, 2021 00:05 — forked from fernandobarbalho/get_covid_data_jhu.r
Function to create COVID-19 dataset from JHU github
import pandas as pd
import datetime
def get_covid_data_jhu(dt_ini, dt_fim, us_columns = True, country = None):
date_range = pd.date_range(start = dt_ini, end = dt_fim).to_list()
string_range = [str(d.date().strftime("%m-%d-%Y")) for d in date_range]
full_data_list = []
for dat in string_range:
@fernandobarbalho
fernandobarbalho / get_covid_data_jhu.r
Last active December 13, 2021 23:21
Function to create COVID-19 dataset from JHU github
get_covid_data_jhu<- function(dt_ini, dt_fim, us_columns = TRUE, country = NULL ){ #data inicial para o download, data final para o download, indicação se trabalha com colunas dos EUA (TRUE por default) e lista de países (todos por default)
library(dplyr)
#cria um vetor de datas que vai ser iterado na formação do endereço de github que tem os dados
dates<- c(lubridate::ymd(dt_ini):lubridate::ymd(dt_fim))
#O map_dfr vai montar dinamicamente um único dataframe com as para todas as datas do array
purrr::map_dfr(dates, function(a_date){
@FBosler
FBosler / covid19.py
Created March 15, 2020 19:24
covid-visualization
import dash
import os
import plotly.express as px
import pandas as pd
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
import json
from urllib.request import urlopen
from dash.dependencies import Input, Output
@jamalex
jamalex / notion_task_manager.py
Created January 17, 2019 07:14
Notion task manager toy example
import datetime
import random
import time
from multiprocessing import Lock
from notion.client import *
from notion.block import *
mutex = Lock()