Skip to content

Instantly share code, notes, and snippets.

@mrmrs
mrmrs / scalable-css-draft.md
Last active February 19, 2023 16:02
WIP thoughts on my last few years thinking about how to scale css for large and small teams working on large and small web applications.

How not to scale css

Several years ago I got curious about how css worked at scale. When I first started out, there weren’t nearly as many learning resources as there are now. CSS zen garden was amazing, at the time it showed how much you could change a design without altering the html.

In the beginning, that’s what people sold me as a feature. By writing css, you could make a change one place and have it propagate everywhere. In principle this sounds pretty good. I’m lazy so I like doing things one time. But eleven years later, my experience on both large and small teams is that this is the most terrifying thing about css.

https://twitter.com/thomasfuchs/status/493790680397803521

In the past few years a lot of very smart people have been thinking more about CSS and this has lead to some fascinating discussions around how to build ‘scalable’ ui and how that relates to CSS. When I first started to think about scalability I naturally started to read every blog post and watch every tech talk I could get

@gravejester
gravejester / Get-Mockaroo.ps1
Last active August 29, 2015 14:08
Get-Mockaroo
# the EnumUtils code was nicked from Wayne Hartman (http://blog.waynehartman.com/articles/84.aspx)
Add-Type -TypeDefinition @"
using System;
using System.Reflection;
using System.ComponentModel;
public enum MockarooType
{
Boolean,
City,
@aaronwaldon
aaronwaldon / 1) readme.md
Last active March 30, 2025 19:51
How to set up Gulp for Compass compilation and minification, JavaScript minification, livereloading, and use with ExpressionEngine.

How to set up Gulp with an ExpressionEngine project

I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).

Install Node.js

  • If Node is not yet installed on the machine, it will need to be installed

Install Gulp (if needed)

@brandonkelly
brandonkelly / templating.md
Last active November 14, 2025 22:07
Templating in EE vs. Craft
@everdaniel
everdaniel / json.html
Created October 27, 2013 19:53
Return Low Search results as JSON
{
{exp:low_search:results query="{segment_3}" limit="10"}
{if count == 1}
"search_keywords": "{low_search_keywords}",
"total_results": {total_results},
{/if}
{if count == 1}
"results": [
{/if}
{
@hofmannsven
hofmannsven / README.md
Last active February 24, 2026 02:03
Git CLI Cheatsheet
@trinne
trinne / Colorful Bash Prompt
Last active December 10, 2015 15:28
Colorful Bash Prompt, inspired by "Extravagant Zsh Prompt"Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.pngA big thanks to \amethyst on Freenode
# Colorful Bash Prompt, inspired by "Extravagant Zsh Prompt"
# Screenshot: http://img.gf3.ca/d54942f474256ec26a49893681c49b5a.png
# A big thanks to \amethyst on Freenode
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
if tput setaf 1 &> /dev/null; then
tput sgr0
@croxton
croxton / stash_nested_embeds.md
Created October 29, 2012 14:23
Stash & template partials - nested embed

Required:

Stash 2.3.4 (beta) or later

Stash template directory

	/layouts/
		standard.html

	/partials/

listing.html

set :application, "example.com"
server "209.61.142.41", :app, :web, :db, :primary => true
set :deploy_to, "/srv/www/#{application}"
set :user, "root"
default_run_options[:pty] = true
set :repository, "ssh://git@bitbucket.org/mattfordham/capistrano.git"
set :scm, :git
@davist11
davist11 / gist:2421316
Created April 19, 2012 14:29
Work Index Template
{embed="_layouts/index"}
{preload_replace:channel="work"}
{exp:switchee variable="{segment_2}" parse="inward"}
{!-- Work listing --}
{case value=""}
{exp:stash:set_value name="title" value="Our Work | Viget"}
{exp:stash:set_value name="body_class" value="page-work page-primary page"}
{exp:stash:set_value name="body_page" value="work"}