This is a how-to guide in order to block Spotify ads. However, this will also block most apps ads as apps usually use very similar ad providers.
This guide was done with the only aim of learning.
initialize: function(options) { | |
this.plugins = _.union(this.plugins, ['LinkedModel']); | |
this._super('initialize', [options]); | |
//Example of use | |
this.search( 'ProductTemplates', 'revenuelineitem_templates','what I want to search' ); | |
}, | |
/** | |
@param module: The module of the collection you want to retrieve records from |
// ==UserScript== | |
// @name Microsoft Teams Notifications | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Creates browser notifications for the Web-based Teams application. Useful in Linux (in Linux notifications do not work). Tested in Chrome 66. | |
// @author David López Castellote | |
// @match https://teams.microsoft.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
template <typename T> | |
class OrdenadorQuicksort: public Ordenador<T>{ | |
void ordenar( vector<T> &lista ){ | |
ordenar( lista, 0, lista.size()-1 ); | |
} | |
// Quicksort sin utilizar arrays adicionales y eligiendo el elemento central para el pivote | |
void ordenar( vector<T> &lista, int posIni, int posFin ){ | |
if( posIni < posFin ){ | |
int posPivote = (posIni+posFin)/2; // Cogemos el del medio |
This gist shows an example of how to mantain both the source (stenciljs example) and the built files of your site in the 'source' and 'master' branch, respectively, in order to deploy the site to Github Pages.
I wanted to deploy my personal site to my dellos7.github.io
Github repo. However, in order to publish the site with Github Pages from your main Github pages repo (this is, <whatever>.github.io
), it is a must from GH Pages to deploy it from the master
branch.. So it is very difficult to easily mantain both the source and the built files for your site (I am talking about the www
folder) in the same repo if you want to deploy it with GH Pages.
So with this method you are able to (thanks to git worktrees):
source
branch where you will push the source code of your site (in this example, the source files and folders of the site generated with Stencil).<!--<ion-app></ion-app>--> | |
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>TÍTULO APP</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<meta name="format-detection" content="telephone=no"> | |
<meta name="msapplication-tap-highlight" content="no"> |
function Semaphore(max) { | |
var counter = 0; | |
var waiting = []; | |
var take = function() { | |
if (waiting.length > 0 && counter < max){ | |
counter++; | |
let promise = waiting.shift(); | |
promise.resolve(); | |
} |
<?php | |
class AccessibilityClassHack { | |
/** | |
* Allows you to get the value of a protected or private property of an object | |
* @param $obj The class object of the property you want to get access to | |
* @param $prop The name of the property you want to get access to | |
* @return Returns the property $prop value of the object $obj | |
*/ |