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:OrderDateHeader> | |
<h2><mt:Date format="%a, %d %b %Y"></h2> | |
<div id="datebox"> | |
</mt:OrderDateHeader> |
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 Base(object): | |
def data(self): | |
return {'base': True} | |
class A(Base): | |
def data(self): | |
data = super(A, self).data() | |
data.update({'a': True}) | |
return data |
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
diff --git a/plugins/Order/config.yaml b/plugins/Order/config.yaml | |
index 46181f2..f4da46d 100644 | |
--- a/plugins/Order/config.yaml | |
+++ b/plugins/Order/config.yaml | |
@@ -14,3 +14,5 @@ tags: | |
OrderFooter: $Order::Order::Plugin::tag_order_footer | |
OrderDateHeader: $Order::Order::Plugin::tag_order_date_header | |
OrderDateFooter: $Order::Order::Plugin::tag_order_date_footer | |
+ function: | |
+ OrderDate: $Core::MT::Template::Context::_hdlr_date |
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
#!/bin/sh | |
UPDATE="git update-index --remove $@" | |
echo "git filter-branch --prune-empty -f --index-filter '$UPDATE' HEAD" | |
git filter-branch --prune-empty -f --index-filter "$UPDATE" HEAD |
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
FIRST_NAMES = """ | |
JAMES | |
JOHN | |
ROBERT | |
MICHAEL | |
WILLIAM | |
DAVID | |
RICHARD | |
CHARLES | |
JOSEPH |
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
Last login: Tue Feb 7 17:26:28 on ttys000 | |
markpasc@markpascbook:~$ cd Work/ | |
markpasc@markpascbook:~/Work$ mkdir riaktest | |
riaktest | |
markpasc@markpascbook:~/Work$ cd riaktest/ | |
markpasc@markpascbook:~/Work/riaktest$ virtualenv env | |
New python executable in env/bin/python | |
Installing distribute....................................................................................................................................................................................done. | |
Installing pip...............done. | |
markpasc@markpascbook:~/Work/riaktest$ python --version |
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
$ curl -i 'http://www.kickstarter.com/services/oembed?url=http%3A%2F%2Fwww.kickstarter.com%2Fprojects%2Fidlethumbs%2Fidle-thumbs-video-game-podcast' | |
HTTP/1.1 200 OK | |
Server: nginx/1.0.10 | |
Date: Tue, 21 Feb 2012 15:30:27 GMT | |
Content-Type: text/html; charset=utf-8 | |
Connection: close | |
Status: 200 OK | |
Set-Cookie: abid=BAgiFWE2MDQwYTBhZTA3ODVmMjY%3D--7224c851a2fbb91c52ccc73ce8e4bee3ca5aa21d; path=/; expires=Sat, 21-Feb-2032 15:30:27 GMT | |
Set-Cookie: last_page=%2Fservices%2Foembed%3Furl%3Dhttp%253A%252F%252Fwww.kickstarter.com%252Fprojects%252Fidlethumbs%252Fidle-thumbs-video-game-podcast; path=/; expires=Tue, 21-Feb-2012 16:00:27 GMT | |
ETag: "7c4641f43a97f9019d313da5067eaf86" |
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 os | |
import recurly | |
from recurly import Account, PageError | |
recurly.API_KEY = os.environ['RECURLY_API_KEY'] | |
def all_accounts(): | |
accounts = Account.all() |
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
$ curl -I https://twitter.com/statuses/user_timeline.atom?screen_name=markpasc | |
HTTP/1.1 200 OK | |
Date: Thu, 06 Sep 2012 03:17:59 GMT | |
Status: 200 OK | |
X-MID: 883d8e4575e5f12f60e1383bf38888728c981d7f | |
Content-Type: application/atom+xml; charset=utf-8 | |
ETag: "1cd2a359db6ce15fc5e1c536b404d721" | |
Expires: Tue, 31 Mar 1981 05:00:00 GMT | |
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0 | |
X-RateLimit-Reset: 1346902028 |