Skip to content

Instantly share code, notes, and snippets.

View graybill's full-sized avatar

Linus Graybill graybill

  • Philadelphia, PA
View GitHub Profile
{
"address1":"Love Park",
"address2":"",
"byob":false,
"cash_only":false,
"city":"Philadelphia",
"debug":
[
],
19:14 admin@meatball: ~/.kegbot [1]
> kegbot-admin.py runserver
Validating models...
Unhandled exception in thread started by <bound method Command.inner_run of <django.core.management.commands.runserver.Command object at 0x10110b550>>
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/django/core/management/commands/runserver.py", line 88, in inner_run
self.validate(display_num_errors=True)
File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
> python -c 'import sys; print "\n".join(["%s %s" % (i, v) for i, v in enumerate(sys.path)])'
0
1 /Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg
2 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip
3 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
4 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin
5 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac
6 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages
7 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python
8 /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk
19:17 admin@meatball: ~/.kegbot
> pip install PIL
Downloading/unpacking PIL
Downloading PIL-1.1.7.tar.gz (506Kb): 506Kb downloaded
Running setup.py egg_info for package PIL
Installing collected packages: PIL
Running setup.py install for PIL
--- using frameworks at /System/Library/Frameworks
building '_imaging' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -DHAVE_LIBJPEG -DHAVE_LIBZ -I/System/Library/Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/System/Library/Frameworks/Python.framework/Versions/2.6/include -I/usr/local/include -I/usr/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _imaging.c -o build/temp.macosx-10.6-universal-2.6/_imaging.o
# Returns sorted array of types of items that there are changes for.
def change_item_types
return ActiveRecord::Base.connection.select_values('SELECT DISTINCT(item_type) FROM versions ORDER BY LOWER(item_type)')
end
# we should be running psql in dev since heroku does.
default: &DEFAULT
adapter: postgresql
encoding: utf8
min_messages: warning
development:
<<: *DEFAULT
database: tedx_dev
test:
<<: *DEFAULT
[email protected]
<im:html xmlns:im='http://jabber.org/protocol/xhtml-im'><xht:body xmlns:xht='http://www.w3.org/1999/xhtml' style='background-color:#c0e668;color:#000000;'><xht:span style='font-family: 'Helvetica';font-size: 12px;'>now that's not letting me download</xht:span></xht:body></im:html>
<im:html xmlns:im='http://jabber.org/protocol/xhtml-im'><xht:body xmlns:xht='http://www.w3.org/1999/xhtml' style='background-color:#c0e668;color:#000000;'><xht:span style='font-family: 'Helvetica';font-size: 12px;'>ha</xht:span></xht:body></im:html>
<im:html xmlns:im='http://jabber.org/protocol/xhtml-im'><xht:body xmlns:xht='http://www.w3.org/1999/xhtml' style='background-color:#c0e668;color:#000000;'><xht:span style='font-family: 'Helvetica';font-size: 12px;'>ill restart</xht:span></xht:body></im:html>
has_attached_file :photo, :styles => { :medium => '220x220#', :thumb => '48x48#' },
:storage => :s3,
:bucket => 'weworkinphilly',
:s3_credentials => {
:access_key_id => ENV['S3_KEY'],
:secret_access_key => ENV['S3_SECRET']
}
aptype "string"
caption "City"
description "The city of the collateral property."
key "ag5kZXZ-bGFjb2RhemVyb3I...W1wbGF0ZVByb3BlcnR5GA4M"
required false
it("should make a server request from passed options", function() {
runs(function(){
var options = { endPoint: '/json/admin/user',
method: 'get_list',
data: {},
successCallback: function(res) {
// can i put a spy here to make sure the callback is fired?
console.log("SUCCESS")
console.log(res)
}