Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexandre Conrad-Dormoy aconrad

View GitHub Profile
View gist:9b5aa2ea7891a411bb36
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 Jan 14, 2015
CD pipeline spec
View 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 Aug 29, 2015 — forked from insin/bash_prompt.sh
bash_prompt
View bash_prompt.sh
#!/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)
#
View gist:9814372
>>> # 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 Dec 27, 2011
bootstrap syntax highlighting on blogger dynamic views
View highlight.js
// 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() {