Skip to content

Instantly share code, notes, and snippets.

View pauleveritt's full-sized avatar

Paul Everitt pauleveritt

View GitHub Profile
@pauleveritt
pauleveritt / buildout
Created January 15, 2012 19:28
buildout [sources]
[sources]
karl = git [email protected]:karlproject/karl.git
karlserve = git [email protected]:karlproject/karlserve.git
osi = git [email protected]:karlhosting/osi.git
eurasia = git [email protected]:karlhosting/eurasia.git
ospc = git [email protected]:karlhosting/ospc.git
oxfam = git [email protected]:karlhosting/oxfam.git
ariadne = git [email protected]:karlhosting/ariadne.git
relstorage = svn svn://svn.zope.org/repos/main/relstorage/trunk
repoze.pgtextindex = svn svn+ssh://[email protected]/svn/repoze.pgtextindex/trunk
@pauleveritt
pauleveritt / buildout
Created January 15, 2012 19:28
[sources]
[sources]
karl = git [email protected]:karlproject/karl.git
karlserve = git [email protected]:karlproject/karlserve.git
osi = git [email protected]:karlhosting/osi.git
eurasia = git [email protected]:karlhosting/eurasia.git
ospc = git [email protected]:karlhosting/ospc.git
oxfam = git [email protected]:karlhosting/oxfam.git
ariadne = git [email protected]:karlhosting/ariadne.git
relstorage = svn svn://svn.zope.org/repos/main/relstorage/trunk
repoze.pgtextindex = svn svn+ssh://[email protected]/svn/repoze.pgtextindex/trunk
@pauleveritt
pauleveritt / development
Created January 17, 2012 18:02
bottlecap development.ini
[app:main]
use = egg:sample
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = true
pyramid.default_locale_name = en
pyramid.includes = pyramid_debugtoolbar
@pauleveritt
pauleveritt / config.log
Created May 21, 2013 18:06
Settings for Python 3.3.2 compile on OS X 10.8.3
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by python configure 3.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/Users/paul/opt/Python-3.3.2
## --------- ##
## Platform. ##
<script type="text/javascript">
deform.addCallback(
'deformField1',
function(oid) {
if (!Modernizr.inputtypes['date'] ||
"date" != "date"){
$('#' + oid).datepicker({'dateFormat': 'yy-mm-dd'});
}
}
);
@pauleveritt
pauleveritt / gist:7007890
Created October 16, 2013 13:40
python3 pyramid_jinja2 pip codec error
env33/bin/pip run on Wed Oct 16 09:33:10 2013
Downloading/unpacking pyramid-jinja2
Getting page https://pypi.python.org/simple/pyramid_jinja2/
URLs to search for versions for pyramid-jinja2:
* https://pypi.python.org/simple/pyramid_jinja2/
Analyzing links from page https://pypi.python.org/simple/pyramid_jinja2/
Found link https://pypi.python.org/packages/source/p/pyramid_jinja2/pyramid_jinja2-0.1.tar.gz#md5=f9eada181a21d305e7fdf01ffa22024a (from https://pypi.python.org/simple/pyramid_jinja2/), version: 0.1
Found link https://pypi.python.org/packages/source/p/pyramid_jinja2/pyramid_jinja2-0.2.tar.gz#md5=62e2b58c70304cb257053d034b40fdbc (from https://pypi.python.org/simple/pyramid_jinja2/), version: 0.2
Found link https://pypi.python.org/packages/source/p/pyramid_jinja2/pyramid_jinja2-0.3.tar.gz#md5=456c00a804f95a4474c0eead2509b20a (from https://pypi.python.org/simple/pyramid_jinja2/), version: 0.3
installing ‘python3-3.4.1’
building path(s) ‘/nix/store/63kllzd2kfrmrngm12ayxf2bwivcjdnp-user-environment’
Wide character in die at /nix/store/jjgyvh88yw37gg5ad5lj1z0qdv31d7jy-buildenv.pl line 79.
collision between ‘/nix/store/p2g2abv3fy44wwc6g6460smn8rd55glc-python-2.7.8/bin/2to3’ and ‘/nix/store/52wfdn1hhi4fr6hw4qcia7q8yxjbk0iy-python3-3.4.1/bin/2to3’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
builder for ‘/nix/store/pv4q6gl08vr43rs14bk9x1xjbgk2ywkn-user-environment.drv’ failed with exit code 255
error: build of ‘/nix/store/pv4q6gl08vr43rs14bk9x1xjbgk2ywkn-user-environment.drv’ failed
@pauleveritt
pauleveritt / controller.specs.js
Created August 16, 2015 02:12
sinon-as-promises .then
"use strict";
import { expect } from "chai";
import sinon from "sinon";
import SinonAsPromised from "sinon-as-promised";
function $q(resolve, reject) {
return new Promise(resolve, reject);
}

Keybase proof

I hereby claim:

  • I am pauleveritt on github.
  • I am pauleveritt (https://keybase.io/pauleveritt) on keybase.
  • I have a public key whose fingerprint is CF74 43E5 395B EE02 9C49 D62F 36BE DE8C 58F7 861B

To claim this, I am signing this object:

@pauleveritt
pauleveritt / todo_models.py
Created February 17, 2016 12:31
SQLAlchemy models for resources
class ToDo(BaseObject):
__tablename__ = 'todo'
id = Column(Integer, primary_key=True)
title = Column(Text)
acl = Column(ArrayType)
default_acl = [
(Allow, Everyone, 'view'),
(Allow, 'group:editors', 'edit')
]
owner_id = Column(Integer, ForeignKey('users.id'))