Skip to content

Instantly share code, notes, and snippets.

transition each start
✗ invokes the listener after the specified delay
» expected [ 706, 706 ] to be in within 20 of [ 350, 350 ] // transition-test-each.js:43
transition each end
✗ invokes the listener after the specified delay
» expected [ 2452, 2452 ] to be in within 20 of [ 350, 350 ] // transition-test-each.js:115
✗ Broken » 2583 honored ∙ 2 broken (22.382s)
#!/usr/bin/env python
import colander
import deform
from deform.widget import TextAreaWidget, SequenceWidget
class AnswerEditSchema(colander.Schema):
title = colander.SchemaNode(
#!/usr/bin/env python
import colander
import deform
from deform.widget import TextAreaWidget, SequenceWidget
class AnswerEditSchema(colander.Schema):
title = colander.SchemaNode(
#!/usr/bin/env python
import colander
import deform
from deform.widget import TextAreaWidget, SequenceWidget
class AnswerEditSchema(colander.Schema):
answer_title = colander.SchemaNode(
typedef struct color {
byte r,g,b;
} color;
// if I delete the word 'struct' from the following line - the programm doesn't compile anymore
void writeToDiode(struct color aColor) {
}
void setup() {
}
@dwt
dwt / traceback
Created July 3, 2015 10:39
traceback
2015-07-03T10:04:22.855073+00:00 app[web.1]: Internal Server Error: /admin/process/processstep/2/
2015-07-03T10:04:22.855079+00:00 app[web.1]: Traceback (most recent call last):
2015-07-03T10:04:22.855081+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 164, in get_response
2015-07-03T10:04:22.855083+00:00 app[web.1]: response = response.render()
2015-07-03T10:04:22.855085+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/template/response.py", line 158, in render
2015-07-03T10:04:22.855086+00:00 app[web.1]: self.content = self.rendered_content
2015-07-03T10:04:22.855088+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/template/response.py", line 135, in rendered_content
2015-07-03T10:04:22.855090+00:00 app[web.1]: content = template.render(context, self._request)
2015-07-03T10:04:22.855092+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/templ
@dwt
dwt / gist:3ab3489cbed83f9aa789
Created July 14, 2015 14:05
Ansible bug in variable resolution order
foo
#import <Foundation/Foundation.h>
@implementation NSArray (BlocksTest)
- (void) do:(void (^)(id))aBlock;
{
[self enumerateObjectsUsingBlock:
^(id obj, NSUInteger idx, BOOL *stop) {
aBlock(obj);
}];
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script>
<script>
$(function(){
console.log("$('dt:first').text()", $('dt:first').text())
console.log("should only be foo", $('dt:first').text() === "foo");
var dls = $('dl');
console.log("dls.find('dt:first').text()", dls.find('dt:first').text())
console.log("should only be foo", dls.find('dt:first').text() === "foo");
class Object
def chain_method(with_symbol, &with_block_returned_from)
old_method = method with_symbol
new_method = with_block_returned_from.call old_method
eigenclass = class << self; self; end
eigenclass.class_eval do
define_method with_symbol, new_method
end
end
end