Skip to content

Instantly share code, notes, and snippets.

View kyleturman's full-sized avatar

Kyle Turman kyleturman

View GitHub Profile
@kyleturman
kyleturman / gist:2875714
Created June 5, 2012 15:34
Google Maps
var point = new google.maps.LatLng(39.7260208, -105.0001613);
var myOptions = {
zoom: 15,
center: point,
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: false,
mapTypeControl: false
}
@kyleturman
kyleturman / OpenClosed.php
Created October 27, 2012 22:33
OpenClosed
<?php
/*
OpenClosed function
Author: Kyle Turman
Displays whether a business is open or closed based on hours given.
*/
strong {
display: inline-block;
font-weight: normal;
overflow: hidden;
margin-top: 2px;
position: relative;
vertical-align: top;
span {
display: block;
/* Foundation v2.2.1 http://foundation.zurb.com */
/* Artfully Masterminded by ZURB */
/* --------------------------------------------------
Table of Contents
-----------------------------------------------------
:: Reset & Standards
:: Links
:: Lists
:: Tables
@kyleturman
kyleturman / dribbble.php
Last active December 22, 2015 20:59
Dribbble Recent Shots
<?php
/**
* PHP wrapper for the Dribbble API.
* Released under the MIT License.
*
* @author Martin Bean <[email protected]>
* @package Dribbble API PHP Wrapper
* @version 2.0
*/
$("nav a").on("click", function(e){
e.preventDefault();
$("html,body").animate({ scrollTop: $( $(e.currentTarget).attr("href") ).offset().top });
});
@kyleturman
kyleturman / Sass Watch Daemon.md
Last active May 14, 2020 13:56
Enable `sass --watch` as a daemonized service on Ubuntu & Debian.

This guide assumes that you have ruby and the sass gem installed, and that you have a basic knowledge of the unix terminal. I use nano here, but you can use whatever editor you'd like.

###Find out Path Info

$ echo $PATH
$ gem environment

Save output from $PATH variable and paths in "GEM PATHS:" in a blank text file somewhere for use in the sass-watch file.

a, img { outline: none; border: none; }
button { cursor:pointer; display: inline-block; background: none; border-radius: none; border: none; outline: none; }
header,nav,section,article,aside,footer,hgroup { display: block; }
meta.foundation-mq-small {
font-family: "/only screen and (max-width: 40em)/";
width: 0em; }
meta.foundation-mq-medium {
<?php
// Prevent Widows Kirby CMS plugin
// Makes line breaking text go from:
// Lorem ipsum dolor sit amet, consectetur adipiscing
// elit.
// To:
// Lorem ipsum dolor sit amet, consectetur
// adipiscing elit.

Keybase proof

I hereby claim:

  • I am kyleturman on github.
  • I am kyleturman (https://keybase.io/kyleturman) on keybase.
  • I have a public key whose fingerprint is D75F 1EB3 C374 51DF FFCB 6C38 B01C 50F0 D8F1 F5E6

To claim this, I am signing this object: