Skip to content

Instantly share code, notes, and snippets.

View mikefowler's full-sized avatar

Mike Fowler mikefowler

View GitHub Profile
// Detect a successful submission from the Greenhouse iframe
// and scroll back to the top of the page.
window.addEventListener('message', (e) => {
if (
e.origin === Grnhse.Settings.targetDomain &&
e.data === 'greenhouse.confirmation'
) {
window.scrollTo(0, 0);
}
}, false);
@mikefowler
mikefowler / foo.css
Last active November 14, 2017 01:20
#application {
background: purple;
}
<p>Poop</p>
@mikefowler
mikefowler / SassMeister-input.scss
Created August 19, 2015 23:27
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin placeholder($selectors) {
$prefixes: -moz-placeholder, -webkit-input-placeholder;
@each $p in $prefixes {
$selector: ();
@each $s in $selectors {
@mikefowler
mikefowler / SassMeister-input.scss
Created August 19, 2015 23:26
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin placeholder($selectors) {
$prefixes: -moz-placeholder, -webkit-input-placeholder;
@each $p in $prefixes {
$selector: ();
@each $s in $selectors {
@mikefowler
mikefowler / SassMeister-input.scss
Last active August 29, 2015 14:09
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$screen-md: 768px;
$screen-lg: 1100px;
// ----------------------------------------------------------------------------
// Mixins
@mikefowler
mikefowler / gist:d5ae4445cd2c9001f319
Last active August 29, 2015 14:08
My own little Vim cheatsheet.

Navigation

  • ^ — Jump to the beginning of the current line
  • $ — Jump to the end of the current line
  • G — Go to end of file
  • 5G — Go to line 5

Buffers

  • bw — Close the current buffer
@mikefowler
mikefowler / SassMeister-input.scss
Created October 27, 2014 22:42
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
%stuff {
padding: 10px;
}
.stuff {
@mikefowler
mikefowler / .bash_profile
Created January 14, 2014 21:06
A handy Bash alias to run a JavaScript console in your terminal.
# Launches a native JavaScript terminal
alias js="/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc"
@mikefowler
mikefowler / .bash_profile
Last active December 18, 2015 04:08
A bash method for quickly showing or hiding hidden files in OSX.
# USAGE
#
# $ hidden TRUE/FALSE
showHidden() { defaults write com.apple.finder AppleShowAllFiles $1 && killall Finder; }
alias hidden=showHidden