Skip to content

Instantly share code, notes, and snippets.

View 3Easy's full-sized avatar

@3Easy 3Easy

View GitHub Profile
@tdreyno
tdreyno / easing.scss
Created May 7, 2011 02:02
Easing functions for Sass 3.1
@function linear() {
@return cubic-bezier(0.250, 0.250, 0.750, 0.750); }
@function ease() {
@return cubic-bezier(0.250, 0.100, 0.250, 1.000); }
@function ease-in() {
@return cubic-bezier(0.420, 0.000, 1.000, 1.000); }
@function ease-in-quad() {
@return cubic-bezier(0.550, 0.085, 0.680, 0.530); }
@scottjehl
scottjehl / anchorinclude.js
Created May 20, 2011 17:04
Anchor-include Pattern
/*
* anchor-include pattern for already-functional links that work as a client-side include
* Copyright 2011, Scott Jehl, scottjehl.com
* Dual licensed under the MIT
* Idea from Scott Gonzalez
* to use, place attributes on an already-functional anchor pointing to content
* that should either replace, or insert before or after that anchor
* after the page has loaded
* Replace: <a href="..." data-replace="articles/latest/fragment">Latest Articles</a>
* Before: <a href="..." data-before="articles/latest/fragment">Latest Articles</a>
@dpdexter
dpdexter / gist:1271562
Created October 7, 2011 23:11
Getting BrilliantRetail Category Images
{exp:query sql="SELECT * FROM exp_br_category WHERE parent_id = (SELECT category_id FROM exp_br_category WHERE url_title = 'products') ORDER BY sort"}
<h2>{title}</h2>
{url_title}
<br />
{image}
<br />
{detail}
<hr />
{/exp:query}
@3Easy
3Easy / ee_config.php
Last active August 4, 2017 08:40
Sample ExpressionEngine 2.x Config Files
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| ExpressionEngine Config Items
|--------------------------------------------------------------------------
|
| The following items are for use with ExpressionEngine. The rest of
| the config items are for use with CodeIgniter, some of which are not
| observed by ExpressionEngine, e.g. 'permitted_uri_chars'
@davemac
davemac / package.json
Last active December 4, 2015 09:34
Useful grunt build tasks
{
"name": "foundation-libsass-template",
"version": "0.0.1",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-autoprefixer": "^3.0.3",
"grunt-bower-concat": "^0.6.0",
"grunt-contrib-copy": "^0.8.1",
"grunt-contrib-jshint": "^0.11.2",
"grunt-contrib-uglify": "^0.11.0",
@davemac
davemac / Gruntfile.js
Last active December 4, 2015 09:32
Gruntfile, as it stands now
'use strict';
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
var jsFoundation = [
'bower_components/foundation/js/foundation/foundation.js',
// 'bower_components/foundation/js/foundation/foundation.abide.js',
@macbleser
macbleser / foundation-grid-columns-mixin
Last active August 29, 2015 14:02
Foundation Grid Columns Mixin
//
// Grid Columns
//
// A mixin to help make Foundation's grid-column mixin easier
// to use when specifying multiple media quries/screen sizes
@mixin grid-columns(
// Mobile First Media Queries
$small-up-screens: false,
$medium-up-screens: false,