Skip to content

Instantly share code, notes, and snippets.

View LuisSevillano's full-sized avatar

Luis Sevillano LuisSevillano

View GitHub Profile
@jeroen
jeroen / cranscraper.R
Last active January 17, 2021 17:15
Fast scraping of package metadata using curl multi API
# Globals
repos <- 'https://cloud.r-project.org'
pkgdata <- available.packages(repos = repos)
pkgs <- row.names(pkgdata)
# On success
make_callback <- function(i, url){
function(res){
if(res$status == 200){
buf <- rawConnection(res$content)
@nitaku
nitaku / README.md
Last active November 15, 2017 10:41
Circle packing with hierarchical edge bundling
@milroc
milroc / .block
Created September 23, 2017 21:42
Popsicles
license: gpl-3.0
@officeofjane
officeofjane / .block
Last active May 13, 2021 19:34
US grid maps
license: mit
@armollica
armollica / .block
Last active January 6, 2018 13:20
Playing with the Satellite Projection
height: 960
@Rich-Harris
Rich-Harris / README.md
Last active January 25, 2023 19:03
Unifying Rollup options

Rollup 0.48 introduces a few changes to the options object, because the current options are confusingly different between the CLI and the options exported by your config file.

Changes to the config file

  • entry is now input
  • sourceMap and sourceMapFile are now sourcemap and sourcemapFile (note casing)
  • moduleName is now name
  • useStrict is now strict

The dest and format options are now grouped together as a single output: { file, format, ... } object. output can also be an array of { file, format, ... } objects, in which case it behaves similarly to the current targets. Other output options — exports, paths and so on — can be added to the output object (though they will fall back to their top-level namesakes, if unspecified).

@officeofjane
officeofjane / .block
Last active April 16, 2023 10:00
Date slider - with play/pause button
license: mit
@armollica
armollica / .block
Last active February 3, 2023 23:27
Joymap
height: 800
@veltman
veltman / README.md
Last active September 17, 2017 12:15
Streamgraph label positions

Picking best label positions in a streamgraph along the same lines as this stacked area chart example.

If a label doesn't fit in the top or bottom series, it tries to place it in the adjacent empty space.

@ramiroaznar
ramiroaznar / readme.md
Last active June 1, 2017 11:25
A series of unfortunate maps. Additional Info.