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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name website.com; |
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
/* gulp dependencies */ | |
const gulp = require('gulp'); | |
const sass = require('gulp-sass'); | |
const uglify = require('gulp-uglify'); | |
const rename = require('gulp-rename'); | |
const notify = require('gulp-notify'); | |
const minifycss = require('gulp-minify-css'); | |
const concat = require('gulp-concat'); | |
const plumber = require('gulp-plumber'); | |
const browserSync = require('browser-sync'); |
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 this block of code to the theme options > custom styles area */ | |
/* add class "pnpd-swap-mobile-order" to checkerboard rows you wish to reorder on mobile */ | |
@media only screen and (max-width: 980px) { | |
.pnpd-swap-mobile-order { | |
box-sizing: border-box; | |
display: -webkit-box; | |
display: -webkit-flex; | |
display: -ms-flexbox; | |
display: flex; |
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
return $user->profile->page_{$service}; | |
// I need to make the table column I return dynamic. This doesn't work. What is the solution? |
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 month = 'May' %} | |
{% set startDate = now | date_modify('first day of ' ~ qFilter) %} | |
{% set endDate = now | date_modify('last day of ' ~ qFilter) %} | |
{% paginate craft.entries.section('events').eventShowtime('and, >= startDate, < endDate') as entries %} |
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 id="gigs"></div> | |
<script> | |
$(document).ready(function() { | |
$('#gigs').beatnode({ | |
username: 'myname', | |
dates: 'MMM Do, YYYY', | |
template: '#gigs-template' | |
}); | |
}); |
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
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowPublicRead", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "s3:GetObject", |