Skip to content

Instantly share code, notes, and snippets.

View rachaelshaw's full-sized avatar
🕷️
"The spider didn't answer. She was very busy spinning her web."

Rachael Shaw rachaelshaw

🕷️
"The spider didn't answer. She was very busy spinning her web."
View GitHub Profile
@mikermcneil
mikermcneil / javascript-regular-expressions.md
Last active June 15, 2023 13:23
A basic introduction to regular expressions in JavaScript with a reference of the notation you'll see on a day to day basis.

Regular Expressions in JavaScript: A crash course

I frequently find myself trying to quickly explain the basics of JavaScript regexp, and doing a hasty or incomplete job. Instead, I'm making this. It is by no means a complete reference. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp for that.

Common syntax

Things that match one character
  • . - any character
  • [abc] - any character that matches one of the characters inside the brackets (in this case "a", "b", or "c")
@mikermcneil
mikermcneil / notes-about-jshint-and-sublime-linter-and-sublime-text-2.md
Last active November 24, 2016 23:37
notes-about-jshint-and-sublime-linter-and-sublime-text-2.md

Updating jshint in Sublime Text 2 (Sublime Linter)

I wanted my built-in syntax highlighting to support the latest stuff from jshint. Like nocomma.

But unfortunately, I'm using Sublime Text 2, because I'm a luddite and bad person and subhuman really. So I clawed my way up my macbook's legs and took a look around.

Finding where you're supposed to put it

In sublime text 2, after some searching, I was able to find Sublime Linter's copy of jshint here:

@mikermcneil
mikermcneil / disabling-macosx-notification-center.md
Last active July 22, 2024 04:21
Disable/Enable Notification Center (MacOS X)

Toggle MacOS X Notification Center on or off

This gist is to remind me (and anyone else who it helps) how to quickly disable and re-enable Notification Center.

Set Up Bash Aliases

Installation

  1. Open your terminal (<⌘ + ␣ (spacebar)>, then type "terminal", then press <↩ (enter)>).
@joaocunha
joaocunha / How To Hide The Select Arrow On Firefox.md
Last active December 10, 2023 13:05
How to hide <select> dropdown's arrow in Firefox when using "-moz-appearance: none;".

This is no longer a bug. I'm keeping the gist for historical reasons, as it helped to get it fixed. Make sure to read the notes by the end of the post.

How to remove hide the select arrow in Firefox using -moz-appearance:none;

TL;DR (or, the fix)

  1. Set -moz-appearance to none. This will "reset" the styling of the element;
  2. Set text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;
@mikermcneil
mikermcneil / adapter_interface_spec.md
Last active December 20, 2015 09:40
Interface specification and support document for developers of adapters for Sails.js / Waterline

DONT READ THiS!

The official, up-to-date version of this document is here.