- matchmedia: testing whether or not a media query applies with Javascript
- picturefill: switch image sizes / hidpi / retina (includes matchmedia?)
- Gulp or Grunt: build system / task runner
- NPM: node package manager
- composer: PHP package manager
- bower: JS package manager
- autoprefixer: add browser prefixes
- cssmin: minify and concatenate CSS
- imagemin: lossless image compression
- spritesmith: create sprites
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
<?php | |
$check = $this->checkStatus(); | |
$auto = (($check === 1) OR ($check === 3)); | |
?> | |
<script type="text/javascript"> | |
addSubscribeToPost = function (element) | |
{ | |
if($('magemonkey-subscribe')) | |
{ | |
$('magemonkey-subscribe').remove(); |
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 findit() { | |
{ mlfind . -iname "*$1*"; | |
grep -irl "$1" . | |
} | sort -u | |
} | |
export -f findit | |
# Returns a list of filepaths where the key phrase occurs. | |
# Case insensitive | |
# Usage: |
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
<reference name="head"> | |
<action method="addJs"><script>temgra/colorCustomOptions.js</script></action> | |
<action method="addItem"><type>skin_css</type><name>css/colorCustomOptions.css</name></action> | |
</reference> | |
<reference name="content"> | |
<remove name="product.info.addto" /><!-- optional --> | |
</reference> | |
<reference name="product.info"> | |
<action method="setTemplate"><template>catalog/product/view-custom.phtml</template></action> | |
</reference> |
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
<a class="highlight" href="#myIDorClass">AnchorText</a> | |
<script> | |
jQuery(".highlight").on("click", function(){ | |
jQuery("#myIDorClass").css({'background':'yellow'}); | |
}); | |
</script> |
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
Thumbs.db | |
Desktop.ini | |
_notes | |
.svn | |
.project | |
.idea/ | |
.DS_Store | |
.cvs | |
*~ | |
*.tmproj |
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
// 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 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
## Push to WP Engine | |
function gppm() { | |
# check if we are in a git repository | |
if git rev-parse --git-dir > /dev/null 2>&1; then | |
# check if there any untracked files that need to be commited. | |
git ls-files --exclude-standard --others --error-unmatch . >/dev/null 2>&1; ec=$? | |
if test "$ec" = 0; then | |
echo |
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 | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=web # -- wordpress owner | |
WP_GROUP=www-data # -- wordpress group | |
WP_ROOT=/srv/www/webproguru/project/web # -- wordpress root directory |
OlderNewer