Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Improving Processes, Products, Projects and People in Software Development.

Ben Peachey Potherca

👨‍💻
Improving Processes, Products, Projects and People in Software Development.
View GitHub Profile
@Potherca
Potherca / gist:9041249
Last active Aug 29, 2015 — forked from weotch/gist:1959748
Running PHP scripts from CLI on Heroku
View gist:9041249
# Add this config
$ heroku config:add LD_LIBRARY_PATH=/app/php/ext:/app/apache/lib
# Login to Heroku CLI
$ heroku run bash
# The second argument here is the path to your script
~ $ ~/php/bin/php -f ~/www/index.php
@Potherca
Potherca / dabblet.css
Last active Aug 29, 2015
Footer for Potherca
View dabblet.css
/**
* Footer for Potherca
*/
@import url(http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono);
.created-by{
background-color:rgb(255,255,255);
border-radius:0.35em;
color:inherit;
font-family:'Droid Sans', Arial, sans-serif;
@Potherca
Potherca / dabblet.css
Created May 9, 2014
Gravatar as fullscreen background image
View dabblet.css
/**
* Gravatar as fullscreen background image
*
* http://dabblet.com/gist/dab7cdd9f9fcfd093199/1c0636877b6081af33f698740a720e9d25ece924
*/
body {
position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
height: 100%;
@Potherca
Potherca / README.md
Last active Aug 29, 2015
Suggestion in regards to "Formatting for lines" for ASCII2SVG
View README.md

Introduction

In the documentation for [ASCIIToSVG][1], in regards to formatting (shape, color, style, etc.) it's [author][2] wrote:

If you have thoughts on how to do this for lines, please do let me know.

Well... I may have a suggestion.

Format for boxes

@Potherca
Potherca / dabblet.css
Last active Aug 29, 2015
Test for rebeccapurple support
View dabblet.css
/**
* Test for rebeccapurple support
*/
@import url(http://fonts.googleapis.com/css?family=Satisfy);
body {
background: rebeccapurple;
min-height: 100%;
}
@Potherca
Potherca / gist:878a2518eaac6eed8781
Created Jun 28, 2014
An idea to migrate ARC to PHPUnit
View gist:878a2518eaac6eed8781
Although I would like to use ARC, I really dislike that it uses SimplTest.
Using http://docs.moodle.org/dev/SimpleTest_conversion as a starting point a migration to PhpUnit seems rather trivial...
@Potherca
Potherca / CSS-Gripes-Nr-027-Units-after-zerovalues.md
Last active Aug 29, 2015
CSS Gripes - Nr. 027 - Units after zero values
View CSS-Gripes-Nr-027-Units-after-zerovalues.md

On the subject of omitting units (%, px, em, etc.) after zeros or not, I am a proponent of omitting the unit.

For me this is a case of

  • Brevity
  • Clarity
  • Error-proneness
  • Readability
  • Validity
@Potherca
Potherca / dabblet.css
Last active Aug 29, 2015
Various options for "Deploy to Heroku" Badges
View dabblet.css
/**
* Various options for "Deploy to Heroku" Badges
*/
@import url(http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono);
body {
font-family:'Droid Sans', Arial, sans-serif;
}
dt {text-align: right;}
@Potherca
Potherca / dabblet.css
Last active Aug 29, 2015
Zurb Foundation -- Button Variations
View dabblet.css
/**
* Zurb Foundation -- Button Variations
*/
@import url('//cdnjs.cloudflare.com/ajax/libs/foundation/5.3.3/css/foundation.min.css');
.wrapper {
text-align: center;
position: relative;
top: 50%;
transform: translateY(-50%);
@Potherca
Potherca / dabblet.css
Last active Aug 29, 2015
Button Group with Zurb Foundation
View dabblet.css
/**
* Button Group with Zurb Foundation
*
* This component offers a way of give a user the option to choose
* where to go after submitting a form by offering a group of buttons
* to choose from. Starting out, only the "default" choice is visible.
* Once the user hovers over the "default" choice other options become
* visible.
*
* Extra styles are provided to right-align the buttons in the group,
You can’t perform that action at this time.