Deriving a new Array from an existing Array:
['■','●','▲'].slice(1, 3) ⟼ ['●','▲']
['■','●','■'].filter(x => x==='■') ⟼ ['■','■']
['▲','●'].map(x => x+x) ⟼ ['▲▲','●●']
['▲','●'].flatMap(x => [x,x]) ⟼ ['▲','▲','●','●']| <?php defined('ABSPATH') or die(); | |
| /* | |
| * Plugin Name: Bad Matt | |
| * Plugin URI: https://gschoppe.com | |
| * Description: A protest plugin that removes (or replaces via filter) the Automattic-owned woocommerce stripe gateway partner id. | |
| * Version: 1.0.0 | |
| * Requires at least: 4.0 | |
| * Requires PHP: 7.2 | |
| * Author: Greg Schoppe | |
| * Author URI: https://gschoppe.com/ |
| \documentclass[11pt, oneside]{article} | |
| \usepackage[margin=0.5in]{geometry} | |
| \geometry{letterpaper} | |
| \usepackage[parfill]{parskip} | |
| \usepackage{graphicx} | |
| \usepackage{amssymb} | |
| \usepackage{xcolor} | |
| \pagecolor{white} | |
| \usepackage[colorlinks = true, linkcolor = blue, urlcolor = blue]{hyperref} | |
| \pagestyle{empty} |
First of all, install a nerd font, and apply it: nerd font
| (function (context, trackingId, options) { | |
| const history = context.history; | |
| const doc = document; | |
| const nav = navigator || {}; | |
| const storage = localStorage; | |
| const encode = encodeURIComponent; | |
| const pushState = history.pushState; | |
| const typeException = 'exception'; | |
| const generateId = () => Math.random().toString(36); | |
| const getId = () => { |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| <?php | |
| /* | |
| E d i ç ã o - 2.0 / 29-09-2015 | |
| -------------------------------------------------------------------------------- | |
| [+] AUTOR: Cleiton Pinheiro / Nick: googleINURL | |
| [+] Blog: http://blog.inurl.com.br | |
| -------------------------------------------------------------------------------- | |
| */ |
| <?php | |
| class WPLazyLoadImages { | |
| function __construct() { | |
| // Add Our Filters and actions for the plugin | |
| add_action('wp_enqueue_scripts', array($this, 'enqueue_lazyload')); | |
| add_filter('the_content', array($this, 'filter_lazyload')); | |
| add_action('wp_footer', array($this, 'footer_lazyload')); |
To remove a submodule you need to: