Skip to content

Instantly share code, notes, and snippets.

View ohrstrom's full-sized avatar

Jonas Ohrstrom ohrstrom

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ohrstrom on github.
  • I am ohrstrom (https://keybase.io/ohrstrom) on keybase.
  • I have a public key ASDl2XZwZRDRKIZMBpzEWvDl5cqcRvwNttNr9PzkIt-N7Ao

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<title>jQuery</title>
<script src="js/lib/jquery-1.8.3.min.js"></script>
<style type="text/css">
body {
padding: 0;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Object</title>
<style type="text/css">
#stage .monster {
top: 0px;
left: 0px;
@ohrstrom
ohrstrom / httpd_vhosts.conf
Created August 23, 2012 10:33 — forked from anonymous/httpd_vhosts.conf
mein eintrag in der vhosts des xampp
NameVirtualHost *
<VirtualHost *:80>
DocumentRoot C:/xampp/htdocs/picturearts/www_root
ServerName local.picturearts.ch
DirectoryIndex index.html index.php
<Directory "C:/xampp/htdocs/picturearts/www_root">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
AllowOverride All
from django.db import models
from django.utils.translation import ugettext_lazy as _
from cms.models.pagemodel import Page
from filer.fields.image import FilerImageField
class PageTeasers(models.Model):
page = models.ForeignKey(Page, unique=True, verbose_name=_("Page"), editable=False, related_name='extended_fields')
picture = FilerImageField(null=True, blank=True)
headline = models.CharField(max_length=255, null=True, blank=True)
@ohrstrom
ohrstrom / admin.py
Created September 20, 2011 08:54
event plugin / django-cms
from django.contrib import admin
from dummy.models import *
class EventAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['title']}),
('Date information', {'fields': ['date_start', 'date_end']}),
]