This script only works for older versions of Spotify for Linux.
An actively developed admute script for Spotify on Linux can be found here: https://github.com/SecUpwN/Spotify-AdKiller
This script only works for older versions of Spotify for Linux.
An actively developed admute script for Spotify on Linux can be found here: https://github.com/SecUpwN/Spotify-AdKiller
set.seed(1) | |
# Create fake data | |
x = runif(100, 0, 5) | |
y = .25 * x^3 - x^2 + rnorm(length(x)) | |
data = data.frame(x = x, y = y) | |
# Identify 500 points to include in the plots | |
x.sequence = seq(0, 5, length = 500) |
`derivSimulCI` <- function(mod, n = 200, eps = 1e-7, newdata, term, | |
samples = 10000) { | |
stopifnot(require("MASS")) | |
if(inherits(mod, "gamm")) | |
mod <- mod$gam | |
m.terms <- attr(terms(mod), "term.labels") | |
if(missing(newdata)) { | |
newD <- sapply(model.frame(mod)[, m.terms, drop = FALSE], | |
function(x) seq(min(x), max(x) - (2*eps), length = n)) | |
names(newD) <- m.terms |
I recently found myself in need of a function to sample randomly from an arbitrarily defined probability density function. An excellent post by Quantitations shows how to accomplish this using some of Rs fairly sophisticated functional approximation tools such as integrate and uniroot. The only problem with this excellent post was that the machine cost was enormous with samples of 1000 draws taking 10 seconds on my machine and repeated samples of 100,000+ draws (which I was after) clearly being unworkable. | |
Thus I decided to take my own crack at it. First let us review the basics of drawing random variables from non-uniform distributions. The standard method I think most algorithms use works as follows: | |
Assumptions | |
1. You can draw pseudo-random uniform variable u | |
2. You can integrate the pdf to construct a cdf | |
$$p = F(x) = \int_{-\infty}^\infty f(x) dx$$ | |
3. You can invert the cdf in order to solve for p | |
$$G(F(x))=F^{-1}(F(x))=F^{-1}(p)=x$$ |
#https://www.kaggle.com/c/yelp-recruiting/forums/t/4116/convesio-of-json-files-to-csv-or-r-data-format | |
library(plyr) | |
library(RJSONIO) | |
con <- file('data.json', "r") | |
df <- ldply(fromJSON(con), data.frame) | |
close(con) |
#' NDC caching for cross-facet plot elements | |
#' | |
#' Useful when using [layout()] and drawing things *between* different | |
#' plots. Motivated by https://stackoverflow.com/q/49464991/3358272. | |
#' | |
#' @details | |
#' | |
#' When adding plot "things" (lines, points, arrows) between facets of | |
#' a `layout` combination, in addition to `x` and `y`, you simply | |
#' provide the plot number within the sequence. (Since this is the |
We all love Spotify, but sometimes people (like us) want to throw a party without having to listen to interrupting ads before having bought Spotify Premium. Well, with this killer project, now you can!
This is for testing purposes ONLY! Spotify is a fantastic service and worth every penny. This script is NOT meant to circumvent buying premium! Please do consider switching to premium to support Spotify - especially if you're going to use it on mobile. If the script does not work for you, help us improve it!
wget -O spotify-mute-ads.sh https://gist.githubusercontent.com/logical-and/825bab160d604d82bf6ad9ebd3a6410d/raw/84f77518f6fa8980e73fcf1fadd30d223f2100a1/spotify-mute-ads.sh
chmod ug+x spotify-mute-ads.sh
./spotify-mute-ads.sh