Skip to content

Instantly share code, notes, and snippets.

View nutjob4life's full-sized avatar
💭
Contemplating next hair color

Sean Kelly nutjob4life

💭
Contemplating next hair color
View GitHub Profile
--- setup.py.orig 2014-06-26 17:16:26.000000000 -0500
+++ setup.py 2014-06-26 17:21:35.000000000 -0500
@@ -333,9 +333,7 @@
if platform in ('darwin', 'ipod'):
kwds["extra_link_args"] = \
- lflags + ['-install_name', '@rpath/libjcc.dylib',
- '-current_version', jcc_ver,
- '-compatibility_version', jcc_ver]
+ lflags + []
@nutjob4life
nutjob4life / gist:7a9211b05c6796baa201
Created June 26, 2014 21:51
My collective python "local.cfg"
# 1. /usr/bin/python2.7 bootstrap.py -c local.cfg
# 2. env MACOSX_DEPLOYMENT_TARGET=10.9 bin/buildout -c local.cfg
# 3. (Wait quite a bit of time)
#
# Then I can use the binaries in /Users/kelly/Tools/python/bin and /Users/kelly/Tools/parts/opt/bin.
[buildout]
extends =
src/base.cfg
src/readline.cfg
@nutjob4life
nutjob4life / digpss2014.txt
Created June 20, 2014 18:40
Digitally Imported Goa/Psy Summer Solstice 2014 Schedule
Artist -------------------- US EST --------- UK --------- CET ----- JST
Deadly Groove ------------ 12:00 PM ----- 05:00 PM ----- 18:00 --- 01:00
Hanz Dwight -------------- 02:59 PM ----- 07:59 PM ----- 20:59 --- 03:59
I.R.I.S. ----------------- 04:29 PM ----- 09:29 PM ----- 22:29 --- 05:29
Tampered DNA ------------- 06:06 PM ----- 11:06 PM ----- 00:06 --- 07:06
Kri ---------------------- 07:07 PM ----- 12:07 AM ----- 01:07 --- 08:07
Audialize ---------------- 08:07 PM ----- 01:07 AM ----- 02:07 --- 09:07
Astrojen ----------------- 09:08 PM ----- 02:08 AM ----- 03:08 --- 10:08
DJ Tomocomo -------------- 11:17 PM ----- 04:17 AM ----- 05:17 --- 12:17
[buildout]
extends = dev.cfg
[ports]
instance-debug = 8888
supervisor = 8887
zeo-monitor = 8886
zeo-server = 8885
@nutjob4life
nutjob4life / gist:e6eb3978e07133f35fe8
Created May 27, 2014 20:12
When developing a Python package ...
[buildout]
extensions = buildout.packagename
parts = python
develop = .
[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:package-name}
@nutjob4life
nutjob4life / gist:443f2c2d93dc334b7223
Created May 7, 2014 20:01
Last 48 lines of my ~/.emacs file
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
from setuptools import setup, find_packages
setup(
name='fancy',
version='1.0.0',
author='Mike',
author_email='[email protected]',
description='Fancy installable package',
entry_points={
'console_scripts': [
[versions]
Pillow = 1.7.5
Products.DocFinderTab = 1.0.5
Products.PloneHotfix20110720 = 1.2
Products.PythonField = 1.1.3
Products.TALESField = 1.1.3
Products.TemplateFields = 1.2.5
Products.Zope-Hotfix-20110622 = 1.0
collective.recipe.backup = 1.3
collective.recipe.omelette = 0.11
@nutjob4life
nutjob4life / sample.rdf
Created November 6, 2013 21:37
Sample RDF containing a bag
<?xml version='1.0' encoding='utf-8'?>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns:dc='http://purl.org/dc/terms/'>
<rdf:Description rdf:about='urn:isbn:978-3-16-148410-0'>
<rdf:type rdf:resource='urn:publishing:schema:book'/>
<dc:creator>
<rdf:Bag>
<rdf:li rdf:resource='http://people.apache.org/mattmann'/>
<rdf:li rdf:resource='http://twitter.org/nutjob4life'/>
<rdf:li rdf:resource='urn:foaf:registered-people:joyce'/>
@nutjob4life
nutjob4life / bag.py
Created November 6, 2013 21:34
Example of making an RDF "Bag" with rdflib in Python
# encoding: utf-8
import rdflib
book = rdflib.URIRef(u'urn:isbn:978-3-16-148410-0')
bookType = rdflib.URIRef(u'urn:publishing:schema:book')
authorPredicate = rdflib.URIRef(u'http://purl.org/dc/terms/creator')
joyce = rdflib.URIRef(u'urn:foaf:registered-people:joyce')
kelly = rdflib.URIRef(u'http://twitter.org/nutjob4life')
mattmann = rdflib.URIRef(u'http://people.apache.org/mattmann')