Skip to content

Instantly share code, notes, and snippets.

danilofreire /
Created September 21, 2022 16:10 — forked from kawaz/
install neovim to amazonlinux
#!/usr/bin/env bash
sudo yum groups install -y Development\ tools
sudo yum install -y cmake
sudo yum install -y python34-{devel,pip}
sudo pip-3.4 install neovim --upgrade
cd "$(mktemp -d)"
git clone
cd neovim
danilofreire /
Created January 24, 2020 23:37 — forked from conormm/
R to Python: Data wrangling with dplyr and pandas

R to python data wrangling snippets

The dplyr package in R makes data wrangling significantly easier. The beauty of dplyr is that, by design, the options available are limited. Specifically, a set of key verbs form the core of the package. Using these verbs you can solve a wide range of data problems effectively in a shorter timeframe. Whilse transitioning to Python I have greatly missed the ease with which I can think through and solve problems using dplyr in R. The purpose of this document is to demonstrate how to execute the key dplyr verbs when manipulating data using Python (with the pandas package).

dplyr is organised around six key verbs:

danilofreire / metropolis.css
Created December 5, 2019 01:47 — forked from vhodges/metropolis.css
A version of the Beamer theme Metropolis for reveal.js
View metropolis.css
* A simple theme for reveal.js presentations, derived from serif.css
* It's in the spirit of the Metropolis theme for beamer
* This theme is Copyright (C) 2016 Vince Hodges, - it is MIT licensed.
@import url('');
.reveal a {
danilofreire /
Created December 1, 2019 04:32 — forked from alferov/
Remove all (untagged) images and containers from Docker
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")


danilofreire / gist:87eae7585dcccceda52f9dc5f3b08eeb
Created July 17, 2017 09:34 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:87eae7585dcccceda52f9dc5f3b08eeb


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View download_data_by_year.R
`%p%` <- function(e1,e2) return(paste0(e1,e2))
erros <- c()
download_year <- function(year) {
danilofreire / gist:caccdaf3b23976bfe12d04be18c85434
Last active February 14, 2017 02:28 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date
View gist:caccdaf3b23976bfe12d04be18c85434

1. Clone your fork:

git clone

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://
git fetch upstream