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
{% set image = entry.image.first %} | |
<style type="text/css"> | |
.hero-image { | |
background-image: url('{{ image.url({ width: 600 }) }}'); | |
} | |
@media (min-width: 600px) { | |
.hero-image { | |
background-image: url('{{ image.url({ width: 1000 }) }}'); |
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
{# can define custom sizes, if required #} | |
{% set outputWidths = [580, 690, 768] %} | |
{% set aspectRatio = (3/5) %} | |
{{ srcset(entry.image, outputWidths, aspectRatio) }} |
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
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
coffee = require('gulp-coffee'), | |
coffeeify = require('gulp-coffeeify'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
sass = require('gulp-sass'), | |
test = require('gulp-if'), | |
del = require('del'), | |
rename = require('gulp-rename'), |
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
brew install php70-mcrypt | |
brew install php70-imagick | |
brew install homebrew/versions/mysql56 | |
Then run valet restart after each. |
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
# * * * * * command to execute | |
# ┬ ┬ ┬ ┬ ┬ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names) | |
# │ │ │ └────────── month (1 - 12) | |
# │ │ └─────────────── day of month (1 - 31) | |
# │ └──────────────────── hour (0 - 23) | |
# └───────────────────────── min (0 - 59) |
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
// Get visible window sizes | |
function displayWindowSize(){ | |
var e=window.innerWidth, | |
t=window.innerHeight; | |
document.getElementById("dev").innerHTML=t+"x"+e; | |
} | |
// Create DIV | |
var div=document.createElement("div"); |
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
/*=================================================================================== | |
* Add global options | |
* =================================================================================*/ | |
/** | |
* | |
* The page content surrounding the settings fields. Usually you use this to instruct non-techy people what to do. | |
* | |
*/ | |
function theme_settings_page(){ |
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
$ npm -g install localtunnel | |
/usr/local/bin/lt -> /usr/local/lib/node_modules/localtunnel/bin/client | |
[email protected] /usr/local/lib/node_modules/localtunnel | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
└── [email protected] ([email protected], [email protected], [email protected], [email protected]) | |
$ lt --port 8080 | |
your url is: https://htkzpnysxf.localtunnel.me |
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
<div class=""> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
<div class="flexible-column"><span></span></div> | |
</div> |
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
/** | |
* Revolution Slider option type. | |
* | |
* See @ot_display_by_type to see the full list of available arguments. | |
* | |
* @param array An array of arguments. | |
* @return string | |
* | |
* @access public | |
* @since 2.0 |