Skip to content

Instantly share code, notes, and snippets.

View madila's full-sized avatar

Ruben madila

View GitHub Profile
@madila
madila / WordPressMultisiteValetDriver
Last active July 17, 2020 10:02
Custom Valet Driver for Wordpress Multisite in Subdirectories
<?php
/*
Valet driver for Wordpress Multisite
Forked from: https://github.com/fewagency/best-practices/blob/master/Wordpress/WordPressMultisiteValetDriver.php
Usage: Drop this file into your ~/.valet/Drivers/ directory. Modify the subfolders variables to include yours.
*/
@madila
madila / gist:178af482c5799a0968d4200e67baefec
Created March 31, 2021 06:30 — forked from discordier/gist:ed4b9cba14652e7212f5
options for phpStorm @noinspection annotation
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
@madila
madila / adobe-fonts-for-gutenberg.php
Last active October 27, 2021 10:19
Add Adobe Fonts kit to WordPress new Editor
<?php
/*
Plugin Name: My Theme - Enqueue Adobe Fonts
Plugin URI: https://wordpress.org
Description: Must-use plugin for custom actions and filters to run for a site
Version: 0.1
Author: Ruben Madila
Author URI: https://rubenmadila.com
*/
@madila
madila / countryList.js
Created March 10, 2022 08:57
List of Countries - March 2022
let countryList = [
{"code" : "AF", "name" : 'Afghanistan'},
{"code" : "AL", "name" : 'Albania'},
{"code" : "DZ", "name" : 'Algeria'},
{"code" : "AD", "name" : 'Andorra'},
{"code" : "AO", "name" : 'Angola'},
{"code" : "AI", "name" : 'Anguilla'},
{"code" : "AQ", "name" : 'Antarctica'},
{"code" : "AG", "name" : 'Antigua and Barbuda'},
{"code" : "AR", "name" : 'Argentina'},
@madila
madila / World-TopoJSON-with-UK-division.json
Created March 10, 2022 08:58
World TopoJSON with division of UK countries - March 2022
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@madila
madila / index.html
Last active November 24, 2023 09:49
Invisible audio play after first click
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
html, body {
margin: 0;
}
*, *::before, *::after {