Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| #!/usr/bin/env ruby | |
| # Aside from removing Ruby on Rails specific code this is taken verbatim from | |
| # mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome | |
| # - Ryan Florence (http://ryanflorence.com) | |
| # | |
| # Install this hook to a remote repository with a working tree, when you push | |
| # to it, this hook will reset the head so the files are updated | |
| if ENV['GIT_DIR'] == '.' |
| /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| Cycle array of URLs and process with phantom.js (http://www.phantomjs.org/) | |
| Adds Array.prototype.forEachWebPage() iterator. | |
| EXAMPLE: | |
| Save screenshots. Command line: | |
| phantomjs phantom_js_url_cycle.js ./screenshots | |
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| [ |
| <?php | |
| /** | |
| * Premailer API PHP class | |
| * Premailer is a library/service for making HTML more palatable for various inept email clients, in particular GMail | |
| * Primary function is to convert style tags into equivalent inline styles so styling can survive <head> tag removal | |
| * Premailer is owned by Dialect Communications group | |
| * @link http://premailer.dialect.ca/api | |
| * @author Marcus Bointon <[email protected]> | |
| */ | |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
This gist assumes:
| /* Basic two stop gradient */ | |
| .example-gradient { | |
| .linear-gradient(150deg, #eee, #aaa); | |
| } | |
| /* Outputs */ | |
| .example-gradient { | |
| background: -webkit-linear-gradient(150deg, #EEE 0%, #AAA 100%); | |
| background: -moz-linear-gradient(150deg, #EEE 0%, #AAA 100%); | |
| background: -ms-linear-gradient(150deg, #EEE 0%, #AAA 100%); | |
| background: -o-linear-gradient(150deg, #EEE 0%, #AAA 100%); |
| <?php | |
| /** | |
| * Front to the WordPress application. This file doesn't do anything, but loads | |
| * wp-blog-header.php which does and tells WordPress to load the theme. | |
| * | |
| * @package WordPress | |
| */ | |
| /** | |
| * Tells WordPress to load the WordPress theme and output it. |
| /* ===== Primary Styles ===================================================== | |
| Author: Fruitcake Studio (Barry vd. Heuvel) | |
| ========================================================================== */ | |
| //Generate a custom (semantic) grid | |
| .customGrid(@gridColumnWidth, @gridGutterWidth){ | |
| #header, #main { | |
| .row(); | |
| } | |
| .block { |
| #!/bin/bash | |
| unset GIT_DIR | |
| REPO_PATH=/var/www/casahop/travelocial | |
| ENV_PATH=/usr/local/share/virtualenvs/casahop | |
| CONFIG_PATH=/home/ben/configs | |
| BRANCH=master | |
| while read oldrev newrev refname | |
| do |
| upstream thumborbe { | |
| server thumbor.myhost.com:8090 ; | |
| server thumbor.myhost.com:8091 ; | |
| server thumbor.myhost.com:8092 ; | |
| server thumbor.myhost.com:8093 ; | |
| server thumbor.myhost.com:8094 ; | |
| server thumbor.myhost.com:8095 ; | |
| } | |
| location ~* "^/.{28}/.*(jpg|jpeg|gif|png)(#.*)?$" { |