Skip to content

Instantly share code, notes, and snippets.

View alexgleason's full-sized avatar

Alex Gleason alexgleason

View GitHub Profile

Contract Killer

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

@alexgleason
alexgleason / pi.vz_exif.php
Last active August 29, 2015 14:11
VZ Exif (Orientation Hack)
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$plugin_info = array(
'pi_name' => 'VZ Exif (Orientation Hack)',
'pi_version' => '1.0.9',
'pi_author' => 'Eli Van Zoeren (hacked by Alex Gleason)',
'pi_author_url' => 'http://elivz.com/',
'pi_description' => 'Extract the Exif information from an image',
1:1 Inway ethay eginningbay Odgay eatedcray ethay eavenhay andway ethay earthway.
1:2 Andway ethay earthway asway ithoutway ormfay, andway oidvay; andway arknessday asway uponway ethay acefay ofway ethay eepday. Andway ethay Iritspay ofway Odgay ovedmay uponway ethay acefay ofway ethay atersway.
1:3 Andway Odgay aidsay, Etlay erethay ebay ightlay: andway erethay asway ightlay.
1:4 Andway Odgay awsay ethay ightlay, atthay itway asway oodgay: andway Odgay ividedday ethay ightlay omfray ethay arknessday.
1:5 Andway Odgay alledcay ethay ightlay Ayday, andway ethay arknessday ehay alledcay Ightnay. Andway ethay eveningway andway ethay orningmay ereway ethay irstfay ayday.
@alexgleason
alexgleason / dev-prod-considerations.md
Last active August 29, 2015 14:24
Dev <-> Prod Considerations

Dev <-> Prod Considerations

  • robots.txt
  • Analytics snippets
@alexgleason
alexgleason / vegan.md
Last active April 12, 2017 14:11
A response to "but humans need meat"

American Dietetic Association

It is the position of the American Dietetic Association that appropriately planned vegetarian diets, including total vegetarian or vegan diets, are healthful, nutritionally adequate, and may provide health benefits in the prevention and treatment of certain diseases. Well-planned vegetarian diets are appropriate for individuals during all stages of the life cycle, including pregnancy, lactation, infancy, childhood, and adolescence, and for athletes.

Dietitians of Canada

A well planned vegan diet can meet all of these needs. It is safe and healthy for pregnant and breastfeeding women, babies, children, teens and seniors.

The British National Health Service

@alexgleason
alexgleason / file-extensions.json
Last active December 14, 2018 02:54
Human readable descriptions for file extensions. Scraped from https://en.wikipedia.org/wiki/List_of_filename_extensions
{"DD": [{"description": "Macintosh file archive", "used_by": "DISKDOUBLER"}], "CHZ": [{"description": "Archive", "used_by": "CHARC"}], "EUI": [{"description": "Ensoniq EPS family CD image", "used_by": "AWAVE"}], "INI": [{"description": "Initialization file", "used_by": ""}], "CHI": [{"description": "ChiWriter Document", "used_by": "ChiWriter - Chiview"}], "OCT": [{"description": "Musical file", "used_by": "Pctalizer"}], "GFO": [{"description": "SGI Radiosity", "used_by": ""}], "QVD": [{"description": "QlikView Document (Data)", "used_by": "QlikView Compressed Database File"}], "MCW": [{"description": "Text file", "used_by": "MacWrite II"}], "HI": [{"description": "Game high scores table", "used_by": ""}], "ZUR": [{"description": "High level compressed file", "used_by": ""}], "FPU": [{"description": "Configuration file", "used_by": "FoxPro for Unix"}], "F": [{"description": "Archive", "used_by": "FREEZE"}, {"description": "Forth language source code file", "used_by": "Forth development systems"}, {"description
@alexgleason
alexgleason / neat-flex-grid.scss
Created February 1, 2016 04:35
Bourbon/Neat Flexbox Grid
/*
Based on code by Kevin Lamping
source: http://codepen.io/klamping/pen/waMOeX
*/
@mixin flex-grid {
display: flex;
flex-wrap: wrap;
margin-left: -$gutter;
margin-top: -$gutter;
@alexgleason
alexgleason / ergodox-infinity-colemak.json
Created February 14, 2016 04:29
A hacker's keyboard layout
{
"header": {
"Author": "Alex Gleason",
"Base": "Blank",
"Date": "2015-09-12",
"Generator": "KIICONF 0.2",
"KLL": "0.3c",
"Layout": "Default",
"Name": "MDErgo1",
"Version": "0.1"
@alexgleason
alexgleason / m2m.py
Last active May 9, 2023 17:49
Many to many relationships in Wagtail
from django.db import models
from wagtail.wagtailsnippets.models import register_snippet
from wagtail.wagtailcore.models import Page
from modelcluster.fields import ParentalKey
from wagtail.wagtailadmin.edit_handlers import InlinePanel
@register_snippet
class Category(models.Model):
@alexgleason
alexgleason / cards-block.py
Created March 2, 2016 19:31
WIP custom cards block
from wagtail.wagtailcore.blocks import (
ListBlock,
StructBlock,
CharBlock,
TextBlock,
PageChooserBlock
)
from wagtail.wagtailimages.blocks import ImageChooserBlock