Skip to content

Instantly share code, notes, and snippets.

View jeromecoupe's full-sized avatar
💭
coding away

Jérôme Coupé jeromecoupe

💭
coding away
View GitHub Profile
@jeromecoupe
jeromecoupe / Media Query Mixin in SASS
Last active March 26, 2022 20:53
Easy Media Queries and Breakpoints in SASS
/*------------------------------------
$MEDIA QUERIES
------------------------------------*/
/*
- small: 600px 37.5em
- medium: 760px 47.5em
- large: 1024px 64em
- xlarge: 1260px 78.75em
*/

Website Contract [month] [year]

Description of this Contract

This contract is not meant to trick or deceive you; the intention is purely to protect both parties. I have tried to keep the wording as plain as possible, but if anything is unclear, please let me know and I will be more than happy to clarify it with you. Also, until you sign it, please feel free to request to change bits of it to suit your requirements.

In short, [client name] is contracting me, [my name], to [description of my role] between [start date and finish date].

By signing this, you are confirming that you have the power and ability to enter into this contract on behalf of [client's company].

@jeromecoupe
jeromecoupe / eecms_htaccess
Created December 2, 2013 02:02
My .htaccess for ExpressionEngine
# Standard .htaccess file
# -------------------------------------------------
# -------------------------------------------------
# Secure .htaccess file
# -------------------------------------------------
<Files .htaccess>
order allow,deny
deny from all
</Files>
@jeromecoupe
jeromecoupe / eecms_admin.php
Last active December 29, 2015 23:39
Standard admin.php for ExpressionEngine
<?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.
|
@jeromecoupe
jeromecoupe / eecms_database.php
Created December 2, 2013 02:31
Standard database.php for ExpressionEngine
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require "config.php";
/* End of file database.php */
/* Location: ./system/expressionengine/config/database.php */
@jeromecoupe
jeromecoupe / gulpfile.js
Last active January 4, 2016 20:49
Simple gulpfile: do not use gulp.run > deprecated soon
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),
minifycss = require('gulp-minify-css');
@jeromecoupe
jeromecoupe / stash caching and escape enmbed
Last active August 29, 2015 14:00
Cache an entire page but escape an embed used for relationships (in case one of the related entry changes or some are removed / added)
{!-- Stash page caching https://github.com/croxton/Stash/wiki/Caching --}
{exp:stash:cache bundle="news"}
{!-- layout used --}
{stash:embed name="layouts:page"}
{exp:channel:entries
channel="news"
status="open"
disable="member_data|pagination"
@jeromecoupe
jeromecoupe / gist:cbac5f271fea0939fa88
Last active August 29, 2015 14:05
Trouble figuring out stash caching / parse order
{!--
I have a complex template, fully cached.
The only thing I don't want to cache is a list of random testimonials
that has to change every time the page is loaded.
***
Some things I would like to understand, pretty please
@jeromecoupe
jeromecoupe / base_creative_meeting_plan.md
Last active May 10, 2016 14:11
Outline for the Creative Meeting introduction @ Base Design - May 11, 2016

Communicating design in a digital environment

Before getting into the matter, I wanted to set the stage. We are essentially going to talk about three things today.

  1. The context of digital design
  2. Problematic static design deliverables
  3. Design deliverables and the current digital workflow

The context: dealing with unknown unknowns

@jeromecoupe
jeromecoupe / test_dates_matrix.twig
Last active May 26, 2016 10:40
Handling discontinuous events with just Matrix dates (plugins)
{% extends "_layouts/default" %}
{% block content %}
{#
I have to build an event heavy website
1. Events can have one or more dates
Duplicating events for multiple dates makes no sense