Skip to content

Instantly share code, notes, and snippets.

Ben Peachey Potherca

Block or report user

Report or block Potherca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Potherca
Potherca / README.md
Last active Aug 29, 2015
Dutch Provinces SVG
View README.md

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 <g> blocks like upload.wikimedia.org/wikipedia/commons/d/d5/Provinces_of_the_Netherlands.svg has.

@Potherca
Potherca / README.md
Last active Aug 29, 2015
D3.js - Piechart
View README.md
@Potherca
Potherca / function.isBindable.php
Last active Aug 29, 2015
Function to check whether or not a callable can be bound to a PHP object.
View function.isBindable.php
<?php
namespace PhpHooligans;
/**
*
* @param \Closure $callable
*
* @return bool
*/
@Potherca
Potherca / dabblet.css
Last active Aug 29, 2015
ASCII Art version of the Potherca Cartoon Avatar
View dabblet.css
/**
* ASCII Art version of the Potherca Cartoon Avatar
*/
.background {
color: red;
}
.hair {
color: darkbrown;
@Potherca
Potherca / dabblet.css
Last active Aug 29, 2015
Various "Build in" banners
View dabblet.css
/**
* 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 Aug 29, 2015
Various "Build in" banners
View dabblet.css
/**
* 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;
}
View PEAR Channel Server hosted by GitHub
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 Aug 4, 2011
Add coloured branch or revision to prompt when in Git or SVN working directory.
View .bashrc
# ------------------------------------------------------
# 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
Floating Block on a Light Blue Small Tile Background
View dabblet.css
/**
* 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 — forked from havvg/git-bisect-phpunit.sh
git bisect phpunit wrapper
View git-bisect-phpunit.sh
#!/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
You can’t perform that action at this time.