Skip to content

Instantly share code, notes, and snippets.

View lesliedoherty's full-sized avatar
🐈
Contribution Model Cat

Leslie Doherty lesliedoherty

🐈
Contribution Model Cat
View GitHub Profile
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API
@johndwells
johndwells / gulpfile.js
Created May 13, 2016 08:56
A gulp task for syncing remote files to local, specifically with CraftCMS in mind.
/*
* Load plugins
*/
var gulp = require('gulp'),
rsync = require('rsyncwrapper').rsync;
// https://www.npmjs.com/package/rsyncwrapper
// http://craftcms.stackexchange.com/questions/1415/is-there-an-easy-way-to-download-the-assets-directory-to-a-local-install
// http://unix.stackexchange.com/questions/2161/rsync-filter-copying-one-pattern-only
@BrettBukowski
BrettBukowski / gist:3bed4b58276e5596e74f
Created July 2, 2014 15:11
Perfect vertical+horizontal centering (in SCSS + Bourbon)
// Perfect vertical+horizontal centering.
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
@include prefixer(box-align, center, webkit moz ms spec);
-ms-flex-align: center;
@include prefixer(align-items, center, webkit spec);
@ramimassoud
ramimassoud / statamic.conf
Created December 12, 2012 06:24
A sample configuration to get Statmic (http://statamic.com/) up and running on a Nginx webserver
server {
access_log /home/webroots/default/logs/access.log;
error_log /home/webroots/default/logs/error.log;
root /home/webroots/default/public_html;
index index.php;
# Make site accessible from http://localhost/
server_name localhost;