This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
behave mswin | |
" allow backspacing over everything in insert mode | |
set backspace=indent,eol,start | |
set nobackup | |
set nowritebackup | |
set noswapfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class lesson1 { | |
/* Main Klasse */ | |
public static void main(String args[]) { | |
System.out.println("Ausgabe in der Konsole"); //muss ja auch mal | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IchObjekt{ | |
int zahl = 3; | |
String zeichen = null; | |
public IchObjekt(int argument1) { | |
zahl = argument1; | |
} | |
public void ausgabe() { | |
System.out.println("Zahl: " + zahl + " String: " + zeichen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $UID -eq 0 ]; then LOGINCOLOR="red"; else LOGINCOLOR="blue"; fi | |
function virtualenv_info { | |
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') ' | |
} | |
PROMPT='%{${fg[blue]}%}[%{$reset_color%}%m%{${fg[blue]}%}]%{$reset_color%} %{${fg[magenta]}%}%B%3~%b %{$reset_color%}%{${fg[$LOGINCOLOR]}%}»%{$reset_color%} ' | |
RPROMPT='$(git_prompt_info)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set history=100 | |
set incsearch | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U colors && colors | |
autoload -U compinit && compinit | |
# completion | |
zstyle ':completion:*' menu select | |
setopt completealiases | |
# history | |
HISTFILE=$HOME/.zsh_history | |
HISTSIZE=1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func filterEntities(s []*Entity, key string, val string) (res []*Entity) { | |
val = strings.ToLower(val) | |
for _, e := range s { | |
switch reflect.ValueOf(e).Elem().FieldByName(key).Kind() { | |
case reflect.Slice: | |
imm := reflect.ValueOf(e).Elem().FieldByName(key) | |
for i := 0; i < imm.Len(); i++ { | |
v := imm.Index(i).String() |