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
# -*- coding: utf-8 -*- | |
import os | |
import shutil | |
import time | |
import yaml | |
from pegbot.utils import get_project_root |
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
<body> | |
{{#constant}} | |
<div id="fb-root"></div> | |
{{/constant}} | |
<div> {{> fb_pic}} {{loginButtons}}</div> | |
<br /> | |
<div><h2>Click to post to your feed:</h2> {{> feed}} </div> | |
</body> |
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
// cat schema/schema-create.js | mongo production # where `production` is the name of the database | |
db.createCollection('braintree', {capped: true, size: 1024*1024*1024}); |
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 types import MethodType | |
import braintree | |
import jsonpickle | |
import json | |
def serialize(self): | |
""" Serialize a Braintree SuccessfulResult or ErrorResult object to a Python dict """ | |
return json.loads(jsonpickle.encode(self)) | |
braintree.ErrorResult.serialize = MethodType(serialize, None, braintree.ErrorResult) |
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
find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \; |
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
<useragentswitcher><useragent description="iPhone 3.0.1" useragent="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0_1 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A400 Safari/528.16" appcodename="Mozilla" appname="Netscape" appversion="5.0 (iPhone; U; CPU iPhone OS 3_0_1 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A400 Safari/528.16" platform="iPhone" vendor="Apple Computer, Inc." vendorsub=""/></useragentswitcher> |