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
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
# | |
# sigbytes.py | |
# | |
# Read and print the first 8 or so bytes of a file, | |
# For, like, tests and stuff | |
# (c) 2015 Alexander Bohn, All Rights Reserved | |
# | |
u""" |
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
/// Makes use of “hashes.js” -- q.v. https://git.io/fjsmQ | |
(function (hashes, undefined) { | |
var SIGNATURE_LENGTH = 27, | |
SIGNATURE_SALT = 'django.core.signing.Signer', | |
SIGNATURE_SECRET = 'YO DOGG', | |
SIGNATURE_SEPARATOR = ':', | |
SIGNATURE_DJANGO_SALT = 'signer'; | |
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
# encoding: utf-8 | |
class display(object): | |
""" A decorator to make short work of using custom display/format methods | |
in Django ModelAdmin subclasses -- they'd have you do shit like this: | |
class DoggAdmin(ModelAdmin): | |
list_display = ['id', 'with_name'] | |
def with_name(self, obj): |
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
# encoding: utf-8 | |
# Usage: `pad_csv(«uneven CSV data»)` -> «padded CSV data» | |
try: | |
from functools import reduce | |
except ImportError: | |
pass | |
segments = lambda line: len(line.split(',')) |
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
#!/usr/bin/env bash | |
#: * `receipt` <formula> [<formula>...]: | |
#: Show the syntax-highlighted JSON install receipt for the specified formulae | |
function brew () { | |
"${HOMEBREW_PREFIX}/bin/brew" "$@" | |
} | |
irfilename="INSTALL_RECEIPT.json" | |
pygmentize="$(command -v pygmentize)" |
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
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
import plistlib | |
import zict | |
import os | |
import appdirs | |
from replutilities import attr, isstring, isbytes |
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
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch of the current git/mercurial repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
cieXYZ.py | |
Party like it's 1931. | |
Created by FI$H 2000 on 2011-04-18. | |
Copyright (c) 2011 OST, LLC. All rights reserved. |
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
Homebrew build logs for cginternals/cginternals/cpplocate on macOS 10.14.3 | |
Build date: 2019-01-26 04:28:08 |
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
Homebrew build logs for cginternals/cginternals/cppassist on macOS 10.14.3 | |
Build date: 2019-01-26 04:26:36 |