This file contains hidden or 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
| # Ignore PHPStorm | |
| /.idea/ | |
| /.phpstorm.meta.php | |
| #Ignore vagrant | |
| /.vagrant/ | |
| # Ignore code coverage reports | |
| /build/ |
This file contains hidden or 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/sh | |
| sudo find . -type f -exec chmod 644 {} \; | |
| sudo find . -type d -exec chmod 755 {} \; | |
| sudo chmod o+w var app/etc | |
| sudo chmod 550 mage | |
| sudo chmod -R o+w media |
This file contains hidden or 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
| // Source: http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ | |
| /* Mixin */ | |
| @mixin vertical-align { | |
| position: relative; | |
| top: 50%; | |
| -webkit-transform: translateY(-50%); | |
| -ms-transform: translateY(-50%); | |
| transform: translateY(-50%); | |
| } |
This file contains hidden or 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
| mysqldump -h 1.2.3.4 -u username -p --all-databases > database_backup.sql |
This file contains hidden or 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
| wget -m --user=yourusername --password=yourpassword ftp://www.ftphost.co.uk:21/directory/ |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| <script src="/bower_components/foundation/js/foundation/foundation.accordion.js"></script> | |
| <script> | |
| //reflow after page load | |
| $(document).foundation('accordion', 'reflow'); | |
| //animate open/close | |
| $(".accordion dd").on("click", "a:eq(0)", function (event) { | |
| var dd_parent = $(this).parent(); |
This file contains hidden or 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
| @mixin background-img ($img,$ext) { | |
| background-image: url($img+'.'+$ext); | |
| @media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) { | |
| &{ background-image: url($img + '@2x.' + $ext); } | |
| } | |
| } |
This file contains hidden or 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
| @include font-face("AvenirNext-Regular", font-files("AvenirNext-Regular/AvenirNext-Regular.ttf", "AvenirNext-Regular/AvenirNext-Regular.otf"), "AvenirNext-Regular/AvenirNext-Regular.eot"); | |
| @include font-face("ChaparralPro-Italic", font-files("ChaparralPro-Italic/ChaparralPro-Italic.ttf", "ChaparralPro-Italic/ChaparralPro-Italic.otf"), "ChaparralPro-Italic/ChaparralPro-Italic.eot"); | |
| // For font path issues with this mixin, check this out: | |
| // https://stackoverflow.com/questions/17734459/what-is-wrong-with-my-use-of-the-compass-font-face-mi |
This file contains hidden or 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
| //------------------------------------------------------------------------------ | |
| //Detect iPhone, iPod, iPad or mobile device | |
| //------------------------------------------------------------------------------ | |
| var isMobile = { | |
| Android: function() { | |
| return navigator.userAgent.match(/Android/i); | |
| }, | |
| BlackBerry: function() { | |
| return navigator.userAgent.match(/BlackBerry/i); | |
| }, |