Skip to content

Instantly share code, notes, and snippets.

View mountainash's full-sized avatar
💭
Coding for pay. Coding for pleasure.

Mountain/\Ash mountainash

💭
Coding for pay. Coding for pleasure.
View GitHub Profile
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"arrowFunctions": false, // enable arrow functions
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"classes": false, // enable classes
"defaultParams": false, // enable default function parameters
"destructuring": false, // enable destructuring
@mountainash
mountainash / html-datefield.html
Created June 19, 2017 21:18
HTML5 Date Field
<input type="date" name="date" id="date" pattern="(?:(?:0[1-9]|1[0-2])[\/\\-. ]?(?:0[1-9]|[12][0-9])|(?:(?:0[13-9]|1[0-2])[\/\\-. ]?30)|(?:(?:0[13578]|1[02])[\/\\-. ]?31))[\/\\-. ]?(?:19|20)[0-9]{2}" placeholder="MM/DD/YYYY" required>
@mountainash
mountainash / mooresholiday-deboarah.php
Created January 17, 2018 13:00
Deborah in lights
#!/usr/bin/php
<?php
/**
* Deborah
* black lights indicate the remaining days until she gets here
* white lights mark them off
* so more lights are lit up when she arrives!
*/
include 'class.holiday.secretapi.php'; // from https://github.com/Djelibeybi/PHP-Holiday-SecretAPI
@mountainash
mountainash / search-mailplane.txt
Last active June 17, 2019 08:31
Alfred Custom Search for Gmail inside of Mailplane (replace [USERNAME] in string)
alfred://customsearch/Search%20Mailplane%20for%20%7Bquery%7D/gmail/utf8/nospace/mailplane%3A%2F%2F[USERNAME]%2540gmail.com%2F%23search%2F%7Bquery%7D
"indentRainbow.colors": [
"rgba(28, 40, 51, 0.05)",
"rgba(33, 47, 60, 0.05)",
"rgba(81, 90, 90, 0.05)",
"rgba(95, 106, 106, 0.05)",
"rgba(121, 125, 127,0.05)",
"rgba(151, 154, 154,0.05)"
],
@mountainash
mountainash / OhDear-IP-pattern.txt
Created February 13, 2020 10:07
OhDear.app Google Analytics Filter Patten (as at 13/02/2020)
45\.32\.146\.84|165\.227\.38\.220|139\.59\.75\.39|45\.76\.59\.200|45\.32\.189\.194|45\.76\.46\.251|165\.22\.95\.234|95\.179\.211\.184|94\.176\.99\.159
@mountainash
mountainash / Logitech-SPOLTLIGHT-Media-Remote-Control-double_tap_volume.json
Created July 5, 2020 20:39
Karabiner Logitech SPOLTLIGHT Media Remote Control
{
"title": "Logitech Spotlight as Media Remote Control",
"rules": [
{
"description": "Play/Pause (double press to increase volume) 12",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_arrow"