- 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 | |
/* | |
Based on https://gist.github.com/daltonrooney/470619cca87a6c29cb84f92d856b9ec1 | |
and http://github.com/deliciousbrains/wp-migrate-db-pro-tweaks | |
*/ | |
class ACF_WP_Migrate_DB_Pro_Tweaks { | |
function __construct() { | |
add_filter( 'wpmdb_preserved_options', array( $this, 'preserved_options' ) ); | |
} |
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
/******************************************************************************* | |
* Description: | |
* | |
* Gulp file to push changes to remote servers (eg: staging/production) | |
* | |
* Usage: | |
* | |
* gulp deploy --target | |
* | |
* Examples: |
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
body { | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
font-weight: 300; | |
} |
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
/* Stylish Chrome Extension: | |
* https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe | |
*/ | |
#ad, | |
#promotions_feature_div, | |
#sponsored-products-dp_feature_div, | |
#dp-ads-middle_feature_div, | |
#detail-ilm_div, | |
#heroQuickPromo_feature_div { |
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/sh | |
# Modified from: https://coderwall.com/p/r7yh6g/create-a-new-gitlab-repo-from-the-command-line | |
# to use: | |
## Setup script locally: | |
# download gist (use this node helper: https://www.npmjs.com/package/download-gist) | |
# dg af568a27686e560de21d | |
# First, replace MyGitlabToken from https://gitlab.com/profile/account | |
# chmod +x gitlab-init-remote |
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 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |