Skip to content

Instantly share code, notes, and snippets.

@bobbygrace
bobbygrace / trello-css-guide.md
Last active May 15, 2024 16:01
Trello CSS Guide

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

@jdp
jdp / jarg.py
Last active August 29, 2015 14:09
JSON shorthand for your CLI
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import os
import sys
class InvalidJSONError(ValueError):
def __init__(self, key, *args, **kwargs):
self.key = key
@jdp
jdp / searchindex.py
Created November 25, 2012 00:06
Autocomplete search with Redis and Python
from functools import partial
from itertools import imap, izip, product
from redis import Redis
class SearchIndex(object):
"""Autocomplete search index.
>>> index = SearchIndex(Redis())
@msabramo
msabramo / gist:2722177
Created May 17, 2012 23:06
Installing py2cairo-1.10.0 (for Graphite) on a CentOS 5.5 box
(graphite.py27.venv)marca@live-web01:/opt/graphite$ export LD_LIBRARY_PATH=/usr/local/lib
(graphite.py27.venv)marca@live-web01:/opt/graphite$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
### Build and install pixman-0.24.4 from source ###
### Build and install cairo-1.12.0 from source ####
(graphite.py27.venv)marca@live-web01:/opt/graphite/py2cairo-1.10.0$ LDFLAGS="-lm -ldl -lutil" ./waf configure --prefix=/usr/local
./options()
Setting top to : /opt/graphite/py2cairo-1.10.0
Setting out to : /opt/graphite/py2cairo-1.10.0/build_directory