This file contains hidden or 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
class EndTagSet(object): | |
def __init__(self, *tags): | |
self.tags = set(tags) | |
def __contains__(self, token_contents): | |
# Grab out the command so we can match on the tag name, not the | |
# whole tag contents. | |
try: | |
command = token_contents.split()[0] |
This file contains hidden or 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
<!DOCTYPE html> | |
<html><head> | |
<meta charset="utf-8"> | |
<title>lastface</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<style type="text/css"> | |
img { background: url(http://static.typepad.com/.shared/images/spinner.gif) no-repeat center center; | |
</style> |
This file contains hidden or 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 urlparse | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp import util | |
from oauth.oauth import OAuthToken, OAuthConsumer | |
import typepad | |
class MainHandler(webapp.RequestHandler): | |
def get(self): |
This file contains hidden or 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
<!DOCTYPE html> | |
<html><head> | |
<meta charset="utf-8"> | |
<title>Background border-radius fringing example</title> | |
<style type="text/css"> | |
/* 960.gs reset.css */ | |
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0} | |
/* 960.gs text.css */ |
This file contains hidden or 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
from oauth.oauth import OAuthConsumer, OAuthToken | |
import typepad | |
consumer = OAuthConsumer('your consumer token', 'your consumer secret') | |
app = typepad.Application.get_by_id('your Application ID') | |
oauth_client = typepad.OAuthClient(consumer, None) | |
oauth_client.request_token_url = app.oauth_request_token_url | |
oauth_client.access_token_url = app.oauth_access_token_url |
This file contains hidden or 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
javascript:s=document.createElement('script');s.type='text/javascript';s.src='https://gist.github.com/raw/674826/typekit-colophon.js';document.getElementsByTagName('head').item(0).appendChild(s);void('') |
This file contains hidden or 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
GET /users/@self.json HTTP/1.0 | |
Host: api.typepad.com | |
Authorization: OAuth realm="", oauth_nonce="95331075", oauth_timestamp="1289847587", oauth_consumer_key="649e9c735a549ead", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_token="lNE79f2DGUGSzaqB", oauth_signature="Fvo3W7X8It6b8xeR9SacmUfsWKI%3D" |
This file contains hidden or 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 | |
from subprocess import call | |
import time | |
ho = 'h' | |
def ooer(): | |
while True: | |
for i in range(6): | |
yield 'o' | |
yield '-o' |
This file contains hidden or 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
markpasc@markpascbook:~$ ytf http://www.youtube.com/watch?v=bWBbt--UUP8 | |
IT'S CAT-ERTAINMENT! (3:29) | |
Posted 2011-03-22 by BargainBinofOblivion to 5801 views | |
www.everythingisterrible.com | |
markpasc@markpascbook:~$ yt http://youtu.be/rTUwqxHpXMY | |
Android on crack..lol (2:25) | |
Posted 2011-03-21 by dark32 to 155718 views |
This file contains hidden or 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
<mt:Order> | |
<mt:OrderHeader> | |
<div class="site-activity"> | |
</mt:OrderHeader> | |
<mt:Entries> | |
<mt:DateHeader> | |
<mt:OrderItem unique="true"> |