Skip to content

Instantly share code, notes, and snippets.

View matthewpennell's full-sized avatar

Matthew Pennell matthewpennell

View GitHub Profile
[
{
"text": "Bruce Wayne",
"value": "Bruce Wayne"
},
{
"text": "Clark Kent",
"value": "Clark Kent"
}
]
[
{
"text": "Information Technology",
"value": "it"
},
{
"text": "Human Resources",
"value": "hr"
}
]
[
{
"label": "Single",
"value": "single"
},
{
"label": "Married",
"value": "married"
},
{
[{"x": 1518393600000, "y": 73 },{"x": 1518394464000, "y": 112 },{"x": 1518395328000, "y": 33 },{"x": 1518396192000, "y": 98 },{"x": 1518397056000, "y": 127 },{"x": 1518397920000, "y": 105 },{"x": 1518398784000, "y": 124 },{"x": 1518399648000, "y": 91 },{"x": 1518400512000, "y": 68 },{"x": 1518401376000, "y": 91 },{"x": 1518402240000, "y": 30 },{"x": 1518403104000, "y": 104 },{"x": 1518403968000, "y": 50 },{"x": 1518404832000, "y": 89 },{"x": 1518405696000, "y": 113 },{"x": 1518406560000, "y": 55 },{"x": 1518407424000, "y": 43 },{"x": 1518408288000, "y": 64 },{"x": 1518409152000, "y": 115 },{"x": 1518410016000, "y": 58 },{"x": 1518410880000, "y": 90 },{"x": 1518411744000, "y": 68 },{"x": 1518412608000, "y": 56 },{"x": 1518413472000, "y": 53 },{"x": 1518414336000, "y": 44 },{"x": 1518415200000, "y": 35 },{"x": 1518416064000, "y": 32 },{"x": 1518416928000, "y": 100 },{"x": 1518417792000, "y": 98 },{"x": 1518418656000, "y": 110 },{"x": 1518419520000, "y": 73 },{"x": 1518420384000, "y": 86 },{"x": 1518421248000, "
[
{
"id": 1,
"name": "Clark Kent",
"balance": 10180.98,
"date": "2019-03-19",
"active": true
},
{
"id": 2,
{
"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."
}
@matthewpennell
matthewpennell / gist:973198
Created May 15, 2011 14:25
Browser sniffing with regular expressions in PHP
<?php
# Set browser and version environment variables based on the visitor's browser
preg_match_all("/(Opera|Chrome|Version|Firefox|MSIE)[\/|\s](\d+)/", $_SERVER['HTTP_USER_AGENT'], $matches, PREG_SET_ORDER);
list($browser, $version) = array($matches[0][1], $matches[0][2]);
?>
[
{
"id": 1,
"value": "attractions",
"text": "Attractions"
},
{
"id": 2,
"value": "booking_basic",
"text": "Booking.Basic"
@matthewpennell
matthewpennell / gist:5951589
Created July 8, 2013 19:10
.columns class.
.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%;