Skip to content

Instantly share code, notes, and snippets.

View passy's full-sized avatar
😷
Wear a mask.

Pascal Hartig passy

😷
Wear a mask.
View GitHub Profile
Error detected while processing function <SNR>30_PyflakesUpdate..<SNR>30_GetPyfl
akesMessage:
line 18:
E121: Undefined variable: b:showing_message
E15: Invalid expression: b:showing_message == 1
/* line 7, ../../src/partials/tagcloud.sass */
.tags { font-size: 100%; }
/* line 2, ../../src/partials/tagcloud.sass */
.tags .tagcloud-1 { font-size: 110%; }
/* line 2, ../../src/partials/tagcloud.sass */
.tags .tagcloud-2 { font-size: 120%; }
/* line 2, ../../src/partials/tagcloud.sass */
.tags .tagcloud-3 { font-size: 130%; }
/* line 2, ../../src/partials/tagcloud.sass */
.tags .tagcloud-4 { font-size: 140%; }
var myObject = {
a: 42,
b: 140,
c: 'hello'},
key,
result = [];
for (key in myObject) {
if (myObject.hasOwnProperty(key)) {
result.push({
# -*- coding: utf-8 -*-
"""
Tests dynamic inheritence with python.
"""
class MixinA(object):
my_attr = 5
def __init__(self):
print "hey, berry scott here!"
@passy
passy / gist:375113
Created April 22, 2010 11:43 — forked from remy/gist:375100
/**
* == Can it be done? ==
*
* I want to get from keyIdentifier to actual character, eg from U+0023
* to \u0023 - which if dropped in a string is the # character:
* http://jsconsole.com/?%22\u0023%22
*
* The problem is the starting point, and I know I can do it using an
* eval, but eval is evil, right? So how can I do it?
*
#!/usr/bin/env python2.6
# -*- coding: utf-8 -*-
"""
Serienjunkies Decrypter
~~~~~~~~~~~~~~~~~~~~~~~
Decrypts a serienjunkies.org download page and outputs a list of links. Easily
copy-paste-able.
"""
Clones a list of repositories from git.local.lan and pushes it
into a (from the outside) "read-only" branch on weluse.de.
"""
import subprocess
import tempfile
import os
import shutil
"""
Clones a list of repositories from git.local.lan and pushes it
into a (from the outside) "read-only" branch on weluse.de.
"""
import subprocess
import tempfile
import os
import shutil
# -*- coding: utf-8 -*-
"""
welcal
~~~~~~
Erzeut eine Liste mit Wochen und zwei Namen als CSV auf STDOUT.
:copyright: 2010, Pascal Hartig <phartig@weluse.de>
:license: BSD
File "/mnt/nfs/python/yoosello/yoosello/../yoosello/apps/product_photo/views.py", line 62, in upload_video_photo
pphoto.save()
File "/home/pascal/yoosello/lib/python2.6/site-packages/django/db/models/base.py", line 435, in save
self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/home/pascal/yoosello/lib/python2.6/site-packages/django/db/models/base.py", line 518, in save_base
for f in meta.local_fields if not isinstance(f, AutoField)]
File "/home/pascal/yoosello/lib/python2.6/site-packages/django/db/models/fields/files.py", line 255, in pre_save
file.save(file.name, file, save=False)
File "/home/pascal/yoosello/lib/python2.6/site-packages/easy_thumbnails/files.py", line 492, in save
**kwargs)