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 / the-"deploy-to-heroku-button"-using-shields-io.md
Last active January 31, 2021 06:16
The "Deploy to Heroku" button using Shields.io

The standard button

Although the technology and philosophy behind the 'Deploy to Heroku' Button are quite awesome, the default look may not what you want. For one thing there is a distinct difference between the PNG and SVG versions Heroku has on offer.

Description Image URL
PNG format ![heroku deploy button png] https://www.herokucdn.com/deploy/button.png
SVG format ![heroku deploy button svg] https://www.herokucdn.com/deploy/button.svg
@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,
@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 / reload-dashing-dashboard.md
Last active March 5, 2019 20:53
Reload a Dashing Dashboard

To reload a Dashing dashboard:

curl -i -d '{"auth_token": "MY_AUTH_TOKEN", "event": "reload"}' http://dashing:3030/dashboards/mydashboard
@Potherca
Potherca / dabblet.css
Last active March 8, 2017 19:24
Quick mockup for movie night CSS
/**
* Quick mockup for movie night CSS
* See the full effect at http://result.dabblet.com/gist/1bb4d6520814a8d96793/
*/
@import url(http://fonts.googleapis.com/css?family=Codystar);
@import url(http://fonts.googleapis.com/css?family=Ewert);
@import url(http://fonts.googleapis.com/css?family=Monoton);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:700);