Skip to content

Instantly share code, notes, and snippets.

View teriu's full-sized avatar

Te Riu Warren teriu

View GitHub Profile
@kim3er
kim3er / config.php
Created August 10, 2012 15:36
Perch 2 config with multiple environments
<?php
$k3r_env = getenv('environment');
if ($k3r_env === 'kimber') {
define('PERCH_LICENSE_KEY', '');
define("PERCH_DB_USERNAME", '');
define("PERCH_DB_PASSWORD", '');
define("PERCH_DB_SERVER", "localhost");
define("PERCH_DB_DATABASE", "harewood");
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@darren131
darren131 / gist:3051475
Created July 5, 2012 05:06
imageless arrows
// you can pass it only the following direction keywords:
// up, down, left, right
//
// HOW TO USE
//
// $direction: up;
// $color: #c00;
// $size: 20px;
// .class {
// $include arrow($direction, $color, $size);
@thulstrup
thulstrup / compass-retina-sprites.scss
Created March 20, 2012 19:18
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));
@kevinSuttle
kevinSuttle / meta-tags.md
Last active May 1, 2025 21:56 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
@jakebellacera
jakebellacera / ICS.php
Last active March 11, 2025 21:41
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*