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 / gist:9041249
Last active August 29, 2015 13:56 — forked from weotch/gist:1959748
Running PHP scripts from CLI on Heroku
# 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 August 29, 2015 14:01
Footer for Potherca
/**
* 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 11:53
Gravatar as fullscreen background image
/**
* 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 August 29, 2015 14:02
Suggestion in regards to "Formatting for lines" for ASCII2SVG

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 August 29, 2015 14:02
Test for rebeccapurple support
/**
* Test for rebeccapurple support
*/
@import url(http://fonts.googleapis.com/css?family=Satisfy);
body {
background: rebeccapurple;
min-height: 100%;
}
@Potherca
Potherca / gist:878a2518eaac6eed8781
Created June 28, 2014 17:33
An idea to migrate ARC to PHPUnit
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 August 29, 2015 14:05
CSS Gripes - Nr. 027 - Units after zero values

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 August 29, 2015 14:05
Various options for "Deploy to Heroku" Badges
/**
* 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 August 29, 2015 14:06
Zurb Foundation -- Button Variations
/**
* 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 August 29, 2015 14:06
Button Group with Zurb Foundation
/**
* 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,