# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
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
<!-- | |
Example 1: Using IF ELSE logic | |
Works with Outlook (Desktop)?: Yes | |
Works with Outlook.com?: No | |
When using IF ELSE logic, Outlook.com will remove content in both conditionals, which is problematic. | |
--> | |
<!--[if mso]> | |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> |
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
// Block Grid | |
// Technique adapted from Foundation 5 for Bootstrap 3. | |
// https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss | |
// Original LESS Version by Christopher Mitchell (https://gist.github.com/ChrisTM) | |
// Converted to SCSS by Rasmus Jürs (https://github.com/Jursdotme) | |
[class*="block-grid-"] { | |
display: block; | |
margin: -($grid-gutter-width/2); | |
padding: 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
chmod +x git-hooks/pending_migrations_check.rb | |
cd .git/hooks | |
ln -is ../../git-hooks/pending_migrations_check.rb post-merge | |
ln -is ../../git-hooks/pending_migrations_check.rb post-checkout |
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
Grab the 'PHP Remote Debugging Client' (the pre-complied xdebug binary for OSX) from here: | |
http://code.activestate.com/komodo/remotedebugging/ | |
Unzip it, find the folder that corresponds to the version of PHP you want to install it for and copy the xdebug.so file from there into your php extensions folder in the relevant PHP version directory. E.g. for PHP 5.4: | |
/Applications/AMPSS/php-5.4/lib/extensions/ext/ | |
Now open PHP.ini in a text editor: | |
/Applications/AMPSS/php-5.4/etc/php.ini |
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
// Example Use | |
(function () { | |
function success() { | |
console.log("success: ", this.src); | |
} | |
function failure() { | |
console.log("failure: ", this.src); | |
} |