Skip to content

Instantly share code, notes, and snippets.

View jakecleary's full-sized avatar

Jake Cleary jakecleary

  • Epic Games / Mediatonic
  • London, UK
View GitHub Profile
@jakecleary
jakecleary / AbstractRepository.php
Created April 30, 2015 16:44
Touchline Snippets
<?php namespace Touchline\Repositories;
use Illuminate\Container\Container;
use Touchline\Repositories\RepositoryInterface;
/**
* Provides default implementations of the methods
* defined in the base repository interface.
*/
abstract class AbstractRepository implements RepositoryInterface {
@jakecleary
jakecleary / gulpfile.js
Last active February 23, 2017 19:20
gulpfile.js
// Dependencies
// ============
var gulp = require('gulp'),
// Styles
sass = require('gulp-sass'),
autoprefix = require('gulp-autoprefixer'),
minify = require('gulp-minify-css'),
rename = require('gulp-rename'),
@jakecleary
jakecleary / wordpress-image-styles.scss
Created September 25, 2014 14:00
Wordpress Scss Image Styles
//
// Just the styles for aligning images, but in scss
//
img {
&.alignleft {
float:left;
margin:0 1em 1em 0;
}
&.alignright {
@jakecleary
jakecleary / font-awesome-icons.scss
Created September 18, 2014 10:01
Scss Font Awesome Mixin
@mixin fa-icon($icon)
{
content: $icon;
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@jakecleary
jakecleary / asset-structure.txt
Last active August 29, 2015 14:05
The assets structure for my Wordpress Boilerplate
.
├assets
├── img
├── js
│ ├── src
│ │ ├── main.js
│ │ └── ...
│ └── vendor
│ └── ...
└── styles