Skip to content

Instantly share code, notes, and snippets.

View Ticolyle's full-sized avatar

Lyle Ticolyle

View GitHub Profile
@Ticolyle
Ticolyle / craft_singles_sitemaps
Created August 15, 2016 21:42
Craft snippet for sitemaps to display singles
{% for page in craft.entries.section([
'homepage',
'about',
'videosPage',
'partners',
'services',
'contact'
]).order('uri') %}
<url>
<loc>{{ page.url }}</loc>
@Ticolyle
Ticolyle / advanced_prompt.bash
Last active June 22, 2016 17:59
Dotfile fun!
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt”
# Shamelessly copied from https://github.com/gf3/dotfiles
# Screenshot: http://i.imgur.com/s0Blh.png
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi
@Ticolyle
Ticolyle / gist:95611ba1b9ed0c1132176ce1de78a499
Created May 24, 2016 17:14 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@Ticolyle
Ticolyle / git_update.sh
Created May 19, 2016 17:08 — forked from cacycleworks/git_update.sh
Simple sh script to automate a git update
#!/bin/sh
if [ $# != 2 ]; then
echo "\nchris k's git update automater sh script. Edit to put a bunch of \`git add blah'"
echo "lines in the body then evoke with the branch name and commit description\n"
echo "Usage: $0 <branch_name> <\"Description of update\">\n"
echo " branch_name: the name of the git branch to be created"
echo " Description: Text for: git commit -m \"Description of update\""
echo ""
echo "Example:"
BRANCH="core_override"
{"type":"FeatureCollection","features":[
{"type":"Feature","id":"01","properties":{"name":"Alabama","density":94.65},"geometry":{"type":"Polygon","coordinates":[[[-87.359296,35.00118],[-85.606675,34.984749],[-85.431413,34.124869],[-85.184951,32.859696],[-85.069935,32.580372],[-84.960397,32.421541],[-85.004212,32.322956],[-84.889196,32.262709],[-85.058981,32.13674],[-85.053504,32.01077],[-85.141136,31.840985],[-85.042551,31.539753],[-85.113751,31.27686],[-85.004212,31.003013],[-85.497137,30.997536],[-87.600282,30.997536],[-87.633143,30.86609],[-87.408589,30.674397],[-87.446927,30.510088],[-87.37025,30.427934],[-87.518128,30.280057],[-87.655051,30.247195],[-87.90699,30.411504],[-87.934375,30.657966],[-88.011052,30.685351],[-88.10416,30.499135],[-88.137022,30.318396],[-88.394438,30.367688],[-88.471115,31.895754],[-88.241084,33.796253],[-88.098683,34.891641],[-88.202745,34.995703],[-87.359296,35.00118]]]}},
{"type":"Feature","id":"02","properties":{"name":"Alaska","density":1.264},"geometry":{"type":"MultiPolygon
@Ticolyle
Ticolyle / telephoneFormat.twig
Created April 12, 2016 21:35
Craft CMS Twig macros
{% macro telFormat(number) %}
{% set trioOne = number|slice(1,3) %}
{% set trioTwo = number|slice(4,3) %}
{% set trioThree = number|slice(7,4) %}
{% set formattedTel = '[' ~ trioOne ~ '] ' ~ trioTwo ~ '-' ~ trioThree %}
{{ formattedTel }}
{% endmacro %}
{# Shows all categories in the news group #}
{% set categories = craft.categories.group('news') %}
<ul>
{% nav category in categories %}
<li>
<a title="{{ category.title }}" href="{{ category.url }}">{{ category.title }}</a>
{# Output a nested <ul> if this category has any children #}
{% ifchildren %}
<ul>{% children %}</ul>
@Ticolyle
Ticolyle / sbtmkdirs.sh
Created April 11, 2016 20:43 — forked from alvinj/sbtmkdirs.sh
A shell script to create an SBT project directory structure
#!/bin/bash
#------------------------------------------------------------------------------
# Name: sbtmkdirs
# Purpose: Create an SBT project directory structure with a few simple options.
# Author: Alvin Alexander, http://alvinalexander.com
# Info: http://alvinalexander.com/sbtmkdirs
# License: Creative Commons Attribution-ShareAlike 2.5 Generic
# http://creativecommons.org/licenses/by-sa/2.5/
#------------------------------------------------------------------------------
@Ticolyle
Ticolyle / gist:76f656c58e339bf69a2a
Created March 22, 2016 19:42
Markitup Obsidian Portal Example
h1. *Reynard*
Male Half-Elf swashbuckler 1 *Archetypes* Picaroon,
CG Medium humanoid (elf, human)
*Init* +3, *Senses* low-light vision; Perception +5
h2. DEFENSE
*AC* 14, touch 13, flat-footed 11 (+3 Dex, +1 shield)
*hp* 12 ( (1d10 )+ 2)
@Ticolyle
Ticolyle / resume.md
Last active February 19, 2016 00:00

Resume

Lyle Reed

lylereed.com Nashville, TN

I'm passionate about creating unique, modern, and functional digital experiences.

Experience

Web Developer & Team Lead, Feb 2013 - June 2015