Skip to content

Instantly share code, notes, and snippets.

View sreichel's full-sized avatar

Sven Reichel sreichel

View GitHub Profile
@deathlyfrantic
deathlyfrantic / imagick_colorspace_constants.php
Last active August 8, 2017 14:43
get useful imagemagick colorspace constants from getImageColorspace() as opposed to mystery integers
<?php
$reflection = new \ReflectionClass("\Imagick");
$colorspaces = array_flip(
array_filter(
$reflection->getConstants(),
function ($k) {
return mb_strpos($k, "COLORSPACE") !== false;
},
ARRAY_FILTER_USE_KEY
)
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 5, 2025 01:35
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

<?php
/**
* Generate modman file from Magento Connect 2.0 package.xml
*
* Usage:
*
* php package2modman.php path/to/package.xml > path/to/modman
*
*/
require_once(__DIR__ . "/../www/app/Mage.php");