Skip to content

Instantly share code, notes, and snippets.

View a-musing-moose's full-sized avatar

Jonathan Moss a-musing-moose

View GitHub Profile

Keybase proof

I hereby claim:

  • I am a-musing-moose on github.
  • I am a_musing_moose (https://keybase.io/a_musing_moose) on keybase.
  • I have a public key whose fingerprint is 76E5 68FF 321D B261 E3BE E210 F03D 44BE B6C5 08E9

To claim this, I am signing this object:

@a-musing-moose
a-musing-moose / keybase.md
Last active September 24, 2015 23:00
keybase.md

Keybase proof

I hereby claim:

  • I am a-musing-moose on github.
  • I am a_musing_moose (https://keybase.io/a_musing_moose) on keybase.
  • I have a public key whose fingerprint is A99E B41B 7635 E93B 1B4E C007 7404 1E6B 904A D4D2

To claim this, I am signing this object:

{% extends "oscar/base.html" %}
{% block body_id %}{% if LANGUAGE_BIDI %}bidi-rtl{% else %}bidi-ltr{% endif %}{% endblock %}
{% block extrastyles %}
<link rel="stylesheet" type="text/css" href="{% static "project/css/site-rtl.css" %}" />
{% endblock %}
class CompanyRecordRow(Row):
format = [
('id', '2s', converters.StringConverter(2)),
('acount_id', '10s', converters.StringConverter(10)),
('total_orders', '8s', converters.IntegerConverter(8)),
('file_version', '10s', converters.StringConverter(10)),
('affiliate_id', '20s', converters.StringConverter(20)),
('_filler', '99s', converters.BlankConverter(99)),
]
@a-musing-moose
a-musing-moose / gist:9266059
Last active August 29, 2015 13:56
How nasty is this?
from oscar_op.ingram import files, converters
class Hmmm(files.FileReader):
rows = {
"R1": type(
'R1Row',
(files.Row, object),
{
@a-musing-moose
a-musing-moose / s3utils.py
Last active August 29, 2015 13:56
S3 static and media storage
# S3 config to separate media and static roots
from storages.backends.s3boto import S3BotoStorage
StaticRootS3BotoStorage = lambda: S3BotoStorage(
location='static',
secure_urls=False,
)
var site = (function ($) {
"use strict";
if (typeof console === 'undefined') {
var console = {
log: function (message) {
// noop
}
};
}