Skip to content

Instantly share code, notes, and snippets.

View firecopstation6's full-sized avatar

Jim Metzger firecopstation6

View GitHub Profile
@firecopstation6
firecopstation6 / index.html
Created October 2, 2017 21:47
Spirograph in Pure CSS
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
$year += 1900;
print "$sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst\n";
my $nowlocal = localtime(); # Result: Sat Feb 18 14:25:21 2017
my $nowGMT = gmtime(); # Result: Sat Feb 18 14:25:21 2017
@firecopstation6
firecopstation6 / AltUSNPSBannerIframe.html
Created January 31, 2017 04:06
Fragment to add Alt-USNPS banner to your website!
<iframe src="https://firecopstation6.github.io/AltUSNPS-box.html" width="260" height="520" style="border: none; scrolling: no;"></iframe>
@firecopstation6
firecopstation6 / gist:cc0bc0bcebf863cef569a8ebc221f0e2
Created January 7, 2017 01:04
Sample JSON Output for Google Maps API for Distance Matrix Raw
{
"destination_addresses" : [ "Beverly Hills, CA 90210, USA" ],
"origin_addresses" : [ "West Chester, PA 19380, USA" ],
"rows" : [
{
"elements" : [
{
"distance" : {
"text" : "2,698 mi",
"value" : 4341471
@firecopstation6
firecopstation6 / gist:0b7928ad4783484f3be896afa002a45d
Created January 7, 2017 01:02
Sample XML Output for Google Maps API for Distance Matrix
<DistanceMatrixResponse>
<status>OK</status>
<origin_address>West Chester, PA 19380, USA</origin_address>
<destination_address>Beverly Hills, CA 90210, USA</destination_address>
<row>
<element>
<status>OK</status>
<duration>
<value>140922</value>
<text>1 day 15 hours</text>
@firecopstation6
firecopstation6 / gist:1f07c189268165f668d4fa908a9cad46
Last active January 7, 2017 01:07
Sample Link for Google Maps API for Distance Matrix
https://maps.googleapis.com/maps/api/distancematrix/xml?units=imperial&origins=19380&destinations=90210&key=YOUR-API-KEY
@firecopstation6
firecopstation6 / gist:f3f68bcbe6d5ee37b6584a42a8409d2e
Created May 4, 2016 22:48
Social Media Widgets using 100% Fonts
<!DOCTYPE html>
<html>
<head>
<title>100% Pure Fonts!</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css">
<link rel='stylesheet' id='extra-fonts-css' href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&#038;subset=latin,latin-ext' type='text/css' media='all' />
<style>
li {
font-size: 20px;
}
@firecopstation6
firecopstation6 / current-dd-extra-css.css
Created March 3, 2016 18:36
Original dropdown CSS in Extra
.et_pb_widget.widget_categories select {
width: auto;
display: block;
margin: 15px 20px 20px;
max-width: 100%;
}
.et_pb_widget.widget_archive select {
width: auto;
display: block;
@firecopstation6
firecopstation6 / add-to-extra-css.css
Created March 2, 2016 18:38
Modification for Extra template dropdowns
/* ----------------------------------------------------- */
/* Add this code in the Custom CSS block in the General */
/* Tab of Extra's Theme Options on Admin Dashboard. */
/* ----------------------------------------------------- */
/* Fix Categories Dropdown Menu */
.et_pb_widget.widget_categories select {
background-color: #ffffff;
height: auto;