Skip to content

Instantly share code, notes, and snippets.

View Potherca's full-sized avatar
🤔
I wonder what this button does…

Ben Peachey Potherca

🤔
I wonder what this button does…
View GitHub Profile
@Potherca
Potherca / README.md
Last active August 29, 2015 14:07
Dutch Provinces SVG

This gist displays a map of the 12 provinces the country of the Netherlands contains.

The path in the SVG have province names as class names, making it very easy to style them from a separate CSS file.

This work is based on an original SVG from the Wikipedia

Could be improved upon further by grouping separate path in `` blocks like upload.wikimedia.org/wikipedia/commons/d/d5/Provinces_of_the_Netherlands.svg has.

@Potherca
Potherca / README.md
Last active August 29, 2015 14:07
D3.js - Piechart
@Potherca
Potherca / function.isBindable.php
Last active August 29, 2015 14:10
Function to check whether or not a callable can be bound to a PHP object.
<?php
namespace PhpHooligans;
/**
*
* @param \Closure $callable
*
* @return bool
*/
@Potherca
Potherca / dabblet.css
Last active August 29, 2015 14:13
ASCII Art version of the Potherca Cartoon Avatar
/**
* ASCII Art version of the Potherca Cartoon Avatar
*/
.background {
color: red;
}
.hair {
color: darkbrown;
@Potherca
Potherca / dabblet.css
Last active August 29, 2015 14:21
Various "Build in" banners
/**
* Various "Build in" banners
*/
@import url("//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css");
@import url("//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-glyphicons.css");
body {
text-align: center;
margin: 2em;
}
@Potherca
Potherca / dabblet.css
Last active August 29, 2015 14:21
Various "Build in" banners
/**
* Various "Build in" banners
*/
@import url("//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css");
@import url("//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-glyphicons.css");
body {
text-align: center;
margin: 2em;
}
PEAR Channel Server hosted by GitHub
====================================
This is my PEAR Channel Server hosted by GitHub and powered by [Pirum](http://www.pirum-project.org):
[jsor.github.com/pear](http://jsor.github.com/pear)
Create your own PEAR Channel Server
-----------------------------------
@Potherca
Potherca / .bashrc
Created August 4, 2011 10:04
Add coloured branch or revision to prompt when in Git or SVN working directory.
# ------------------------------------------------------
# Enhance prompt when inside git repos
# http://railstips.org/blog/archives/2009/02/02/bedazzle-your-bash-prompt-with-git-info/
# ------------------------------------------------------
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo -e '\E[0;34m'"\033[1m("${ref#refs/heads/}") \033[0m"
}
# ------------------------------------------------------
@Potherca
Potherca / dabblet.css
Created May 16, 2012 18:44
Floating Block on a Light Blue Small Tile Background
/**
* Floating Block on a Light Blue Small Tile Background
*/
body {
background: #CDE;
background: linear-gradient(45deg, #FFF, #AAF);
background-size: 0.75em 0.75em;
}
.grid {
@Potherca
Potherca / git-bisect-phpunit.sh
Created May 27, 2012 12:32 — forked from havvg/git-bisect-phpunit.sh
git bisect phpunit wrapper
#!/bin/bash
phpunit
EXIT_CODE="$?"
if [ $EXIT_CODE -eq "255" ]; then
# Wrapping the error code to 1, so bisect marks this build as "bad" and continues.
exit 1
fi