Skip to content

Instantly share code, notes, and snippets.

View tsmith512's full-sized avatar

Taylor Smith tsmith512

  • Cloudflare
  • Austin, Texas & Tulsa, Oklahoma
View GitHub Profile
@tsmith512
tsmith512 / macadventures.md
Created November 30, 2012 04:33
My iJourney

An Introduction

Through both a yearning for familiarity and the knowledge that corporate computer defenestration is a terminal act, I have arduously forged this list of tips, less useful for those on a quest to be an ultimate iUser than for those who want to retain a glimpse, however fleeting, of the Windows/Linux they used to know.

-- [tsmith512][]

@tsmith512
tsmith512 / functions-tsmith.php
Created December 24, 2012 23:23
Utility WordPress functions for cleaner output and theme code
<?php
/**
* tsmith512's Common WordPress Functions
*
* Handy WordPress functions for cleaner theme code and WordPress output. This
* is not (yet) a plugin because it is so closely tied to the theme code. Include
* it directly in a theme's functions.php file.
*
* @package tsmith512-wordpress
* @author Taylor Smith (www.tsmithcreative.com)
@tsmith512
tsmith512 / backtrace-errors-bootstrap.inc.patch
Created April 30, 2013 16:19
Quick-n-dirty patch to Drupal 7 bootstrap to examine backtraces on error messages. Requires devel enabled.
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index fe3d7a7..c2c95cc 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1794,6 +1794,11 @@ function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NO
*/
function drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE) {
if ($message) {
+
+ if ($type == 'error') {
@tsmith512
tsmith512 / resources.md
Last active August 29, 2015 14:00
Reading and Resources

Because sometimes, you need to say it with a gif.

Yuuup

No words

Facepalm

Shotgun

@tsmith512
tsmith512 / SassMeister-input-HTML.html
Last active July 21, 2016 17:26
Intro to Singularity: Twelve Column Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample</title>
</head>
<body>
<div class="wrap">
<div class="item">&nbsp;</div>
</div>
@tsmith512
tsmith512 / SassMeister-input-HTML.html
Last active February 25, 2016 18:45
Intro to Singularity: Gist for Calc Output Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample</title>
</head>
<body>
<div class="wrap">
<div class="a">300px</div>
<div class="b">1</div>
@tsmith512
tsmith512 / SassMeister-input-HTML.html
Last active February 25, 2016 18:46
Intro to Singularity: Source Order vs. Visual Order Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample</title>
</head>
<body>
<div class="wrap">
<div class="a">First</div>
<div class="b">Second</div>
@tsmith512
tsmith512 / SassMeister-input-HTML.html
Last active August 29, 2015 14:14
Examples for Presentation: Advanced Responsive Web Design Part 1: Sass Basics
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample</title>
</head>
<body>
<div class="wrap">
<div class="item">&nbsp;</div>
</div>
@tsmith512
tsmith512 / SassMeister-input.scss
Last active August 29, 2015 14:14
Examples for Presentation: Advanced Responsive Web Design Part 2: Compass Basics
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
/**
* Examples for Presentation: Advanced Responsive Web Design
* Part 2: Compass Basics
* For More Information: http://github.com/tsmith512/arwd
*/