Skip to content

Instantly share code, notes, and snippets.

@taylorhughes
taylorhughes / gist:5398956
Created April 16, 2013 19:42
Post-compile "Run Script" build phase for Xcode to add a "radioactive" symbol to your app name when built in debug mode.
INFO_PLIST="$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH"
# Copy from this key to the DisplayName key so we don't have to
# worry about re-reading from the same plist later.
SOURCE_NAME_KEY="CFBundleName"
DISPLAY_NAME_KEY="CFBundleDisplayName"
DISPLAY_NAME=`defaults read $INFO_PLIST $SOURCE_NAME_KEY`
if [ "$CONFIGURATION" = "Debug" ]
then
DEBUG_DISPLAY_NAME="$DISPLAY_NAME ☢"
else
import os.path
import json
import logging
from django.conf import settings
from django.contrib.staticfiles.storage import CachedFilesMixin
from storages.backends.s3boto import S3BotoStorage
INDEX_FILENAME = os.path.join(os.path.dirname(__file__), 'static-index.json')
@taylorhughes
taylorhughes / gist:3735840
Created September 17, 2012 06:27 — forked from madrobby/gist:3733875
Fade out to solid color on WebKit and Firefox and IE
<style>
#mask-demo {
background: #d0d0d0;
height: 100px;
width: 500px;
padding: 10px;
position: relative;
overflow: hidden;
}
.fade-right .mask {