This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Folded corner effect — at an angle | |
*/ | |
div { | |
position: relative; | |
width: 12em; | |
background: #58a; /* Fallback */ | |
background: linear-gradient(-150deg, transparent 1.5em, #58a 0); | |
padding: 2em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl | |
# version 1.1 | |
# if the host+path are in matrix then the redirect is to a single location | |
# if just the host is in matrix then the redirect is to host+the request uri | |
# nwk-productred 17.149.160.28 & 17.172.224.28 | |
# | |
# to distibute this file us /usr/local/scr/distfilex | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## WARNING: This file is generated | |
"""Create a "virtual" Python installation | |
""" | |
# If you change the version here, change it in setup.py | |
# and docs/conf.py as well. | |
virtualenv_version = "1.6" | |
import base64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load pagination_tags %} | |
{% load sorting_tags %} | |
{% block body %} | |
{% autosort filter.qs as sorted_objects %} | |
{% autopaginate sorted_objects 10 as object_list %} | |
{% for object in object_list %} | |
{{ object }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
osascript -e 'tell application "Tweetie"' -e "quit" -e "end tell" | |
defaults write com.atebits.tweetie-mac filterTerms -array-add "#pycon" | |
osascript -e 'tell application "Tweetie"' -e "open" -e "end tell" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~/Library/Mail | |
$ sqlite3 Envelope\ Index | |
SQLite version 3.4.0 | |
Enter ".help" for instructions | |
sqlite> select avg(size) from messages; | |
32984.7982999518 |