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
if (typeof console === 'undefined') { | |
window.console = { | |
log: function () {} | |
}; | |
} | |
function loggerFactory(label) { | |
return (function () { | |
var timestamp = function () {}; | |
timestamp.toString = function () { |
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
# -*- coding: utf-8 -*- | |
''' | |
feedgen_facebook.instant_article | |
~~~~~~~~~~~~~~~~~~~ | |
Extends the FeedGenerator to produce Facebook InstantArticle. | |
:copyright: 2016, Jonathan Vanasco <jonathan@findmeon.com> | |
:license: FreeBSD |
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
# -*- coding: utf-8 -*- | |
''' | |
feedgen_facebook.instant_article | |
~~~~~~~~~~~~~~~~~~~ | |
Extends the FeedGenerator to produce Facebook InstantArticle. | |
:copyright: 2016, Jonathan Vanasco <jonathan@findmeon.com> | |
:license: FreeBSD |
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
# -*- coding: utf-8 -*- | |
''' | |
feedgen_facebook.instant_article | |
~~~~~~~~~~~~~~~~~~~ | |
Extends the FeedGenerator to produce Facebook InstantArticle. | |
:copyright: 2016, Jonathan Vanasco <jonathan@findmeon.com> | |
:license: FreeBSD |
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 argparse | |
import os.path | |
import pprint | |
""" | |
flake8 parser. | |
this is a quick and dirty tool. | |
Flake8 output was giving me a headache, so i wrote this quick parser. It will convert a `--file` of flake8 text to a "checklist" format , json or pretty-printed json. |
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 argparse | |
import os.path | |
import pprint | |
_sample_data = """/Users/me/path/to/project/files/lib/data/bar.py:52:1: W293 blank line contains whitespace | |
/Users/me/path/to/project/files/lib/data/foo.py:101:1: W293 blank line contains whitespace | |
/Users/me/path/to/project/files/lib/utils/date.py:328:5: F811 redefinition of unused 'currentYear' from line 306 | |
/Users/me/path/to/project/files/lib/utils/date.py:331:5: F811 redefinition of unused 'currentMonth' from line 310 | |
/Users/me/path/to/project/files/lib/utils/date.py:334:5: F811 redefinition of unused 'currentDay' from line 314 | |
/Users/me/path/to/project/files/lib/utils/foo.py:595:1: W293 blank line contains whitespace |
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 argparse | |
import os | |
import subprocess | |
""" | |
$ mailq | |
show mail queue contents | |
$ sudo postcat -q {queue_id} | |
show message details |
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
""" | |
Memory Backend | |
-------------- | |
Provides a simple dictionary-based backend. | |
""" | |
from dogpile.cache.api import CacheBackend, NO_VALUE |
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
from sqlalchemy import * | |
from sqlalchemy.orm import * | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.ext import mutable as sa_mutable | |
import sqlalchemy.dialects.postgresql | |
import string | |
import pdb |
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
from pyramid.paster import bootstrap | |
from pyramid.request import Request | |
from pyramid.scripting import prepare as prepare_request | |
import MYAPP | |
import MYAPP.lib.handlers | |
import sqlalchemy | |
import time |