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
.block { display: block; } | |
.inline { display: inline; } | |
.clrfix { display:inline-block; } | |
.hide { display: none; } | |
.fleft { float: left; } | |
.fright { float: right; } | |
.fclear { clear: both; } | |
.hi { background-color: rgb(255, 255, 204); } | |
.sub { vertical-align: sub; } | |
.super { vertical-align: super; } |
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
:⌉ | |
=⌉ | |
¦-) as opposed to | | |
☺ | |
☹ | |
☻ | |
⍣ | |
⍤ | |
⍥ om nom nom | |
⍨ |
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
find . -name .svn -exec rm -rf {} \; |
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
import smtplib | |
to = '[email protected]' | |
gmail_user = '[email protected]' | |
gmail_pwd = 'xxxxxx' | |
subject = 'xxxxxx' | |
message = ''' | |
xxxxxx | |
''' |
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
# encoding: utf-8 | |
""" Python General Helpers | |
Copyright (c) 2010 Kenneth Reitz. Creative Commons Attribution 3.0 Lisense. | |
""" | |
import urllib, re, time | |
import paramiko | |
def enc(str): |
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
html{width: 85%; min-width: 600px;margin: 0 auto; font-family: sans-serif;} | |
h1,h2,h3,h4,h5,h6{border:0!important;} | |
h1{font-size:170%!important;border-top:4px solid #aaa!important;padding-top:.5em!important;margin-top:1.5em!important;} | |
h1:first-child{margin-top:0!important;padding-top:.25em!important;border-top:none!important;} | |
h2{font-size:150%!important;margin-top:1.5em!important;border-top:4px solid #e0e0e0!important;padding-top:.5em!important;} | |
h3{margin-top:1em!important;} | |
p{margin:1em 0!important;line-height:1.5em!important;} | |
ul{margin:1em 0 1em 2em!important;} | |
ol{margin:1em 0 1em 2em!important;} | |
ul ul, ul ol, ol ol, ol ul{margin-top:0!important;margin-bottom:0!important;} |
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
attrib="[^"\r\n]*" |
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
$.fn.markCurrentLocation = function() { | |
var path = window.location.href | |
return this.each(function(){ | |
var self = $(this); | |
var href = self.attr('href'); | |
if(RegExp(href).test(path)){ | |
self | |
.wrap('<em></em>') | |
} | |
}) |
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
$.fn.orderedFigure = function() { | |
return this.each(function(){ | |
var self = $(this); | |
var cont = self.html(); | |
var cont2 = cont.replace(/(\d)(st|nd|rd|th)/g,'$1<sup>$2</sup>') | |
self.html(cont2); | |
}) | |
}; |
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
<IfModule mod_deflate.c> | |
SetOutputFilter DEFLATE | |
# file-types indicated will not be compressed | |
SetEnvIfNoCase Request_URI | |
\.(?:gif|jpe?g|png|rar|zip|pdf)$ no-gzip dont-vary | |
<IfModule mod_headers.c> | |
Header append Vary User-Agent | |
</IfModule> | |
</IfModule> |