Skip to content

Instantly share code, notes, and snippets.

View j-greig's full-sized avatar

James Greig j-greig

View GitHub Profile

Keybase proof

I hereby claim:

  • I am j-greig on github.
  • I am jamesgreig (https://keybase.io/jamesgreig) on keybase.
  • I have a public key ASCdTNb2UK6nUx9fODZYVXfC9zgLnx4UMR4vSYkK0arkmAo

To claim this, I am signing this object:

@j-greig
j-greig / .env.example
Created July 26, 2018 09:25
Sample environment config file for Craft 3
# The environment Craft is currently running in ('dev', 'staging', 'production', etc.)
ENVIRONMENT="dev"
# The secure key Craft will use for hashing and encrypting data
SECURITY_KEY="generate-a-long-random-key-and-put-it-here"
# The database driver that will be used ('mysql' or 'pgsql')
DB_DRIVER="mysql"
# The database server name or IP address (usually this is 'localhost' or '127.0.0.1')
@j-greig
j-greig / main.js
Created June 29, 2018 13:12
Barba.js demo with special transition on one page only (About)
// Handler for when DOM is loaded....
var startup = function(){
console.log('DOM ready, starting Barba.js')
Barba.Pjax.start();
};
// Check if DOM is loaded...
if (
document.readyState === "complete" ||
@j-greig
j-greig / logo-script.svg
Created March 10, 2018 20:48
Tachyons handrawn logo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"name": "website",
"version": "0.1",
"description": "A Craft CMS website",
"main": "gulpfile.js",
"author": "James Greig",
"copyright": "Graphical House",
"license": "UNLICENSED",
"private": true,
"paths": {
// package vars
const pkg = require("./package.json");
// gulp
const gulp = require("gulp");
// load all plugins in "devDependencies" into the variable $
const $ = require("gulp-load-plugins")({
pattern: ["*"],
scope: ["devDependencies"]

Freelancer's Contract

Based on the popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post