Skip to content

Instantly share code, notes, and snippets.

View Ticolyle's full-sized avatar

Lyle Ticolyle

View GitHub Profile
@artlawry
artlawry / radio-control ie7 ie8 shim.js
Last active August 29, 2015 14:04
Adds a checked class to all checked radio buttons for
(function () {
var labels, label, inputs, input, type, i, ilen;
if (!document.addEventListener) {
labels = document.getElementsByTagName('label');
inputs = document.getElementsByTagName('input');
function inputClick() {
clicked = window.event.srcElement;
@jnowland
jnowland / display-categories.twig
Last active February 28, 2017 16:53
Craft Snippets
{# 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 / ce_img regex name
Created May 13, 2014 20:36
CE_Img for ExpressionEngine while site under /~dev_url/
$config['ce_image_document_root'] = '/usr/home/site_username/www/';
//remove the extra '/~site_username' from the source
$config['ce_image_src_regex'] = array( '/~site_username' => '' );
//after the image is manipulated, replace the first '/'
//with the extra '/~site_username/' so it works with the URL
$config['ce_image_made_regex'] = array( '^/' => '/~site_username/' );
@natelandau
natelandau / .bash_profile
Last active October 27, 2025 14:01
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@willtonkin
willtonkin / contact-csv-output.html
Created January 24, 2014 21:20
ExpressionEngine template that creates a CSV file from FreeForm data.
"First Name","Email"
{exp:freeform:entries
form_name="contact"
orderby="entry_date"
sort="asc"
limit="9999"
}"{freeform:field:first_name}","{freeform:field:email}"
{/exp:freeform:entries}
<?php
@brandonkelly
brandonkelly / templating.md
Last active March 11, 2025 21:41
Templating in EE vs. Craft
@aras-p
aras-p / preprocessor_fun.h
Last active October 9, 2025 17:55
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@pe3
pe3 / scrape_entire_website_with_wget.sh
Last active April 13, 2025 15:45
Scrape An Entire Website with wget
this worked very nice for a single page site
```
wget \
--recursive \
--page-requisites \
--convert-links \
[website]
```
wget options
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active October 26, 2025 08:45
A badass list of frontend development resources I collected over time.
@jareware
jareware / SCSS.md
Last active October 21, 2025 14:22
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso