Skip to content

Instantly share code, notes, and snippets.

Avatar

Enrico Spinielli espinielli

View GitHub Profile
@espinielli
espinielli / gist:80cfc1e5e55eb3b1854d330524addadf
Created Mar 14, 2020
download and extract mp3 from youtube
View gist:80cfc1e5e55eb3b1854d330524addadf
Download a youtube sound track from a video and extract a subset (for example for a phone ringtone)
```
$ youtube-dl --extract-audio --audio-format mp3 https://youtu.be/lhlvV7mjeJM
$ ffmpeg -ss 00:00:45 -t 00:00:45 -i La\ vita\ è\ bella\ -\ Colonna\ sonora\ \(original\ soundtrack\)\ -\ brano\ -\ \'La\ vita\ è\ bella\'-lhlvV7mjeJM.mp3 lveb.mp3
```
View gist:3384e943eae56ccc6097a199acaf95a4
https://github.com/daattali/addinslist
devtools::install_github("seasmith/AlignAssign")
remotes::install_github("ThinkR-open/remedy")
install.packages("datapasta")
usethis::use_tidy_style()
https://github.com/hrbrmstr/hrbraddins
https://github.com/benmarwick/wordcountaddin
https://github.com/tjmahr/WrapRmd
https://github.com/ropenscilabs/gramr
@espinielli
espinielli / .gitignore
Last active Jan 21, 2020
R: ggplot2 map of some European airports
View .gitignore
.Rproj.user
.Rhistory
.RData
.Ruserdata
View R: connect to DB (Oracle) table
library(dplyr)
library(dplyr)
library(ROracle)
drv <- dbDriver("Oracle")
con <- dbConnect(
drv,
Sys.getenv("PRU_TEST_USR"),
Sys.getenv("PRU_TEST_PWD"),
dbname = Sys.getenv("PRU_TEST_DBNAME"))
@espinielli
espinielli / .block
Last active Nov 1, 2018
China tile grid map
View .block
license: mit
@espinielli
espinielli / .gitignore
Last active Oct 17, 2017
polygon area in R with sf
View .gitignore
.Rproj.user
.Rhistory
.RData
.Ruserdata
@espinielli
espinielli / README.md
Last active Oct 8, 2017
Platonic Geodesic
View README.md

Use the range slider to change the degree of subdivision in this geodesic sphere.

The base shape, visible when subdivision is disabled, is one of the 5 regular convex polyhedra (with triangularized faces for cube and dodecahedron), a.k.a. [Platonic solids][five]:

  • tethrahedron
  • hexahedron (cube)
  • octahedron
  • dodecahedron
  • icosahedron
@espinielli
espinielli / .block
Created Sep 28, 2017 — forked from mbostock/.block
Geodesic Rainbow
View .block
license: gpl-3.0
@espinielli
espinielli / README.md
Last active Sep 10, 2017
van Wijk's icosahedral foldout
View README.md
@espinielli
espinielli / .block
Last active Mar 9, 2019
Earth in Cube I (d3.js v4: working)
View .block
license: mit
You can’t perform that action at this time.