Skip to content

Instantly share code, notes, and snippets.

Matthew Pennell matthewpennell

Block or report user

Report or block matthewpennell

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
View response.json
[
{
"id": 1,
"name": "Clark Kent",
"information": "Clark Joseph Kent is a fictional character appearing in American comic books published by DC Comics. Created by Jerry Siegel and Joe Shuster, he debuted in Action Comics #1 (June 1938) and serves as the civilian and secret identity of the superhero Superman.",
"balance": 10180.98,
"date": "2019-03-19",
"active": true
},
{
View products.json
[
{
"id": 1,
"value": "attractions",
"text": "Attractions"
},
{
"id": 2,
"value": "booking_basic",
"text": "Booking.Basic"
View Markup for use with Glue and Jinja template
<div class="calendar sprite-container">
<i class="sprite calendar-icon"></i>
<h2>Calendar</h2>
</div>
View Jinja template for use with Glue
.sprite {
background-image: url('/path/to/sprite.png');
background-repeat: no-repeat;
}
{% for image in images %}
{% if image.pseudo %}
.sprite .sprite-container{{ image.pseudo }} .{{ image.label }},
{% endif %}
.{{ image.label }}{{ image.pseudo }} {
View Improved CSS rules for use with Glue
/* This file is generated by an automatic script.
Do not attempt to make changes to it manually! */
.sprite {
background-image: url('/path/to/sprite.png');
background-repeat: no-repeat;
}
.foo {
background-position: 0 0;
width: 25px;
View Example CSS rules using Glue
.sprite-source-foo, .sprite-source-bar, .sprite-source-baz {
background-image:url('source.png');
background-repeat:no-repeat;
}
.sprite-source-foo {
background-position: 0 0;
width: 25px;
height: 25px;
}
View css_selector
.demo {
display: inline-block;
overflow: visible;
background-color: #e6edf6;
color: #666;
font-weight: normal;
text-decoration: none;
white-space: nowrap;
vertical-align: top;
margin-left: 1em;
View gist:5951589
.columns {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 50px;
-moz-column-gap: 50px;
column-gap: 50px;
margin-bottom: 300px;
padding-bottom: 100px;
background: url(divider.png) no-repeat 50% 100%;
@matthewpennell
matthewpennell / Column layout
Created Jul 8, 2013
Creating column layouts with CSS3
View Column layout
#content {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 50px;
-moz-column-gap: 50px;
column-gap: 50px;
-webkit-column-rule: 1px solid #ccc;
-moz-column-rule: 1px solid #ccc;
column-rule: 1px solid #ccc;
@matthewpennell
matthewpennell / gist:3098465
Created Jul 12, 2012
Quick and dirty ExpressionEngine blank page debugging
View gist:3098465
// Switch on all error displays, both by trying to override php.ini, and using the reporting function.
ini_set('display_errors', 1);
error_reporting(E_ALL);
// Also try upping the memory limit for the PHP script, in case we're hitting that limit.
ini_set('memory_limit', '256M');
You can’t perform that action at this time.