Title=Coding Example Created=2011-05-02 Categories=coding Tags=python,html -----#####----- so let us look at syntax highlighting and see what will happen after I added pygments
import markdown2
from pygments.lexers import guess_lexer
Title=Coding Example Created=2011-05-02 Categories=coding Tags=python,html -----#####----- so let us look at syntax highlighting and see what will happen after I added pygments
import markdown2
from pygments.lexers import guess_lexer
# -*- coding: utf-8 -*- | |
import io | |
def write(site): | |
""" | |
write content to disc | |
<- site object | |
""" |
set nocompatible | |
behave mswin | |
" allow backspacing over everything in insert mode | |
set backspace=indent,eol,start | |
set nobackup | |
set nowritebackup | |
set noswapfile |
class lesson1 { | |
/* Main Klasse */ | |
public static void main(String args[]) { | |
System.out.println("Ausgabe in der Konsole"); //muss ja auch mal | |
} | |
} |
class IchObjekt{ | |
int zahl = 3; | |
String zeichen = null; | |
public IchObjekt(int argument1) { | |
zahl = argument1; | |
} | |
public void ausgabe() { | |
System.out.println("Zahl: " + zahl + " String: " + zeichen); |
[2012-03-18 09:31:30] make -j2 | |
CC = /usr/bin/gcc-4.2 | |
LD = ld | |
LDSHARED = /usr/bin/gcc-4.2 -dynamiclib | |
CFLAGS = -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe -arch i386 -arch x86_64 | |
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT | |
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I. -I.ext/include/universal-darwin10.8.0 -I./include -I. | |
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/tizi/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1 -Wl,-unexported_symbol,_Init_* -Wl,-unexported_symbol,*_threadptr_* -Wl,-u,_objc_msgSend -arch i386 -arch x86_64 | |
SOLIBS = | |
compiling main.c |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
from django.db import models | |
class Post(models.Model): | |
title = models.CharField(max_length=1000) | |
pub_date = models.DateTimeField(auto_now_add=True) | |
content = models.TextField() | |
class Url(models.Model): | |
title = models.CharField(max_length=1000) | |
pub_date = models.DateTimeField(auto_now_add=True) |
from django.db import models | |
from django.contrib.contenttypes import generic | |
from django.contrib.contenttypes.models import ContentType | |
class Entry(models.Model): | |
content_type = models.ForeignKey(ContentType) | |
object_id = models.PositiveIntegerField() | |
content_object = generic.GenericForeignKey('content_type', 'object_id') |
from django.db import models | |
from django.contrib.contenttypes import generic | |
from django.contrib.contenttypes.models import ContentType | |
from django.db.models.signals import post_save | |
class Entry(models.Model): | |
content_type = models.ForeignKey(ContentType) | |
object_id = models.PositiveIntegerField() | |
content_object = generic.GenericForeignKey('content_type', 'object_id') |