Skip to content

Instantly share code, notes, and snippets.

View dethe's full-sized avatar

Dethe Elza dethe

View GitHub Profile
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
class Foo
constructor: (args...) ->
# do something with args
class Bar extends Foo
constructor: (args...) ->
super(args...)
new Bar(1,2,3)
pico-8 cartridge // http://www.pico-8.com
version 4
__lua__
-- heroic journey
-- by dethe
-- globals are evil and so am i
frame = 0
(function(global){
'use strict';
var O = function O(defaults){
defaults.__proto__ = this;
this._listeners = {};
return defaults;
}

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:

@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
<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: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