Skip to content

Instantly share code, notes, and snippets.

View dethe's full-sized avatar

Dethe Elza dethe

View GitHub Profile
@dethe
dethe / gist:10918465
Created April 16, 2014 18:38
Traceback
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/wsgiref/handlers.py", line 93, in run
self.result = application(self.environ, self.start_response)
File "/Users/delza/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 206, in __call__
response = self.get_response(request)
File "/Users/delza/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 196, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Users/delza/.virtualenvs/zamboni/lib/python2.6/site-packages/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/delza/Sites/marketplace/zamboni/apps/amo/decorators.py", line 32, in wrapper
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@dethe
dethe / gist:6aa83a5917ca68738685
Created July 25, 2014 03:54
Split to infinitives!
Why it's supposed to be bad to split infinitives -- Renaissance English intellectuals thought the classics were neatest and Latin was best and in Latin, like several other languages, you can't split infinitives because they are one word -- *esse*: to be and *habere*: to have -- and like that. Therefore, in order to snottily and pointlessly bring their own language into false similarity with Latin they tried to greatly limit its flexibility by imposing the no split infinitives rule. Obviously, this is cultural imperialism to be resisted by all right-minded people.
Same thing with ending sentences with prepositions. In Latin, you can't, no matter how hard you try, so we heirs to grunting German tribes shouldn't be able to. Or so said 16th century assimilationists, and some still listen. Death to tyrants! Split to infinitives!
--Anne Herbert

Keybase proof

I hereby claim:

  • I am dethe on github.
  • I am dethe (https://keybase.io/dethe) on keybase.
  • I have a public key whose fingerprint is 26FE 4B95 89A4 B4EA E177 0553 B0F6 E563 16EB AE8A

To claim this, I am signing this object:

(function(global){
'use strict';
var O = function O(defaults){
defaults.__proto__ = this;
this._listeners = {};
return defaults;
}
pico-8 cartridge // http://www.pico-8.com
version 4
__lua__
-- heroic journey
-- by dethe
-- globals are evil and so am i
frame = 0
class Foo
constructor: (args...) ->
# do something with args
class Bar extends Foo
constructor: (args...) ->
super(args...)
new Bar(1,2,3)
require 'rubygems'
require 'cairo'
require 'rmagick'
img = Magick::Image::read('test.jpg').first
puts 'Getting bounding box'
width = img.columns
height = img.rows
puts 'Finding stride for width ' + width.to_s
@dethe
dethe / gist:721274
Created November 30, 2010 07:01
response from couchdb on attachment upload
Request URL:http://localhost:5984/kinzin/layout_sign_in
Request Method:POST
Status Code:201 Created
Request Headers
Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Length:550139
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryTMHEvBA4sZ200O6E
Origin:http://localhost:5984
Referer:http://localhost:5984/kinzin/_design/obloq/_show/block/layout_sign_in
User-Agent:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-ca) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
/**
* Additional content section / block functions for body.
*/
var rootpath = process.cwd() + '/',
path = require('path'),
calipso = require(path.join(rootpath, 'lib/calipso'));
exports = module.exports = function(req, options, callback) {