Skip to content

Instantly share code, notes, and snippets.

View aconrad's full-sized avatar

Alexandre Conrad-Dormoy aconrad

View GitHub Profile
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
@aconrad
aconrad / pipeline-spec
Created January 14, 2015 03:54
CD pipeline spec
---
- auto-pipeline-locking: false
auto-pipeline-scheduling: true
cron-spec: ''
environment-vars: {}
label-template: ${COUNT}
materials:
- blacklist: []
branch: master
destination-dir: ''
@aconrad
aconrad / bash_prompt.sh
Last active August 29, 2015 14:05 — forked from insin/bash_prompt.sh
bash_prompt
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * colors optimized for iTerm2 color preset Pastel (Dark Background)
#
>>> # Dingus
>>> my_dingus = dingus.Dingus(some_attribute="value",
... some_method__returns="calculated value")
>>> assertEqual("calculated value", my_dingus.some_method())
>>> assertEqual("value", my_dingus.some_attribute)
@aconrad
aconrad / highlight.js
Created December 27, 2011 06:48
bootstrap syntax highlighting on blogger dynamic views
// Read instructions here: http://www.alexconrad.org/2011/12/highlight-code-with-bloggers-dynamic.html
(function() {
try {
prettyPrint();
} catch(e) {
var scriptId = 'prettyPrinter';
if (document.getElementById(scriptId) === null) {
var elem = document.createElement('SCRIPT');
elem.id = scriptId;
elem.onload = function() {