Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dakni on github.
  • I am dakni (https://keybase.io/dakni) on keybase.
  • I have a public key whose fingerprint is 68F0 E162 E8F3 503F CFCF A642 5864 752E 6F4A 7CAD

To claim this, I am signing this object:

@dakni
dakni / ggjoy plot tests
Created August 5, 2017 13:37
just a test plot of ggjoy.
library(ggplot2)
ggplot(beta_test2, aes(x = si, y = as.factor(beta), fill = as.factor(degree))) +
ggjoy::geom_joy(scale = 2.5, rel_min_height=.01, alpha = .8, color = "white") +
ggjoy::theme_joy() +
theme(legend.position = "bottom") +
viridis::scale_fill_viridis(discrete=TRUE,
name = "Degree centrality") +
labs(x = "si",
y = expression(paste(beta," factor of power function")),
title = "Location attractiveness (si) in relation to degree-centrality and distance weight (beta) factors",
@dakni
dakni / hb_all_books_dl.js
Last active July 22, 2017 19:27 — forked from graymouser/hb_all_books_dl.js
Humble bundle book bundles - download all books at once -- wget approach
/*
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window (Ctrl-Shift-K) for the page and paste in the below javascript
*/
var pattern = /(MOBI|EPUB|PDF|PDF \(HQ\))$/i;
var nodes = document.getElementsByTagName('a');
for (i in nodes) {
var a = nodes[i];
if (a && a.text && pattern.test(a.text.trim())) {
download(a.attributes['data-web'].value, i);