This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"alignment_chars": | |
[ | |
"=", | |
":" | |
], | |
"alignment_space_chars": | |
[ | |
"=", | |
":" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Useful for switching between PHP versions (CLI and NGINX PHP-FPM) on OS X. Assumes | |
# you've installed PHP via brew, maybe like so: | |
# - brew install php56 && cp /path/to/cellar/php56/5.6.*/*.plist ~/Library/LaunchAgents/ | |
# | |
# Installation: | |
# - curl https://gist.githubusercontent.com/iamEAP/c7464c7b42583baba98b/raw/.usephp > ~/.usephp | |
# - echo "[[ -s \"\$HOME/.usephp\" ]] && source \"\$HOME/.usephp\" # Load usephp as a function" >> ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Proportionately resize iframes. Add class to a wrapper around the iframe */ | |
.iframe-4-3, | |
.iframe-16-9 { | |
position: relative; | |
padding-bottom: 75%; /* 4:3 */ | |
height: 0; | |
} | |
.iframe-4-3 iframe, | |
.iframe-16-9 iframe { | |
position: absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Simple HTTP Server. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
__version__ = "0.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo = false; | |
(function () { | |
foo = true; | |
})(); | |
setTimeout(function () { | |
foo = false; | |
}, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PSITE='your-site-name' | |
PUUID='aaaaaaaa-1111-bbbb-2222-cccccccccccc' | |
PEMAIL='your-email@example.com' | |
PPASS='your-password-here--i-know' | |
# Authenticate with Terminus | |
drush pauth $PEMAIL --password=$PPASS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
PROBLEM="$(cat /etc/hosts | grep tableausoftware.com | grep -v '^#' | wc -w)" | |
if [ "$PROBLEM" -gt 0 ]; then | |
say omg fix yer hosts | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* New Tabia/Components JS-pattern. | |
*/ | |
// Loose augmentation pattern. Creates top-level namespace variable if it | |
// doesn't already exist. | |
var Tabia = Tabia || {}; | |
// Create a base for this module's data and functions. | |
Tabia.myBehavior = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
////////////////////////////// | |
// Add event (cross browser) | |
// From http://stackoverflow.com/a/10150042 | |
////////////////////////////// | |
function addEvent(elem, event, fn) { | |
if (elem.addEventListener) { | |
elem.addEventListener(event, fn, false); | |
} else { | |
elem.attachEvent('on' + event, function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
# | |
# Important to note, this is the version of PHP used to run this build, not the | |
# one used to run your Drupal installation. Ensure compatibility with the Drush | |
# and Terminus versions you're using for this build. | |
# | |
php: | |
- 5.3 |
OlderNewer