Skip to content

Instantly share code, notes, and snippets.

@magnucki
magnucki / titelseite.tex
Last active December 20, 2015 23:39
Datei zum Tutorial Titelseite und Inhaltsverzeichnis http://youtu.be/FhOuvmHQ0Nk
\documentclass[12pt,a4paper]{scrartcl}
\usepackage[utf8x]{inputenc}
\usepackage[ngerman]{babel}
\parindent0cm
\author{Rico \thanks{Allen die zuschauen} \and www.icancode.de}
\title{Beispieldokument}
\date{\today}
\subject{Bachelorarbeit}
@magnucki
magnucki / listenundbeschr.tex
Created August 12, 2013 19:09
Code zum Videotutorial Listen und Beschreibungen http://youtu.be/Vdeaxuw0Qtw
\documentclass[12pt,a4paper]{scrartcl}
\usepackage[utf8]{inputenc} %keine Probleme mit Umlauten
\usepackage[lmodern]{fontenc}
\usepackage[ngerman]{babel} %Deutsche Rechtschreibprüfung
\begin{document}
Partyvorbereitung:\\
\begin{tabular}[c]{l@{x\ }l}
10 & Chips\\
10 & Cola\\
@magnucki
magnucki / tabellen.tex
Created August 13, 2013 07:47
Code zum LaTeX Tutoiral Tabellen http://youtu.be/bgNunQFpBgo
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[lmodern][fontenc]
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{lmodern}
\author{Rico}
\begin{document}
@magnucki
magnucki / absatz.tex
Last active December 21, 2015 00:18
Code zum Tutorial »Absätze und Absatzabstände« http://youtu.be/q6pjSlTX9Uo
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[lmodern][fontenc]
\begin{document}
%\vspace*{2cm}
Ich bin Blindtext. Von Geburt an. Es hat lange gedauert,
bis ich begriffen habe, was es bedeutet, ein blinder Text zu sein:
Man macht keinen Sinn. Man wirkt hier und da aus dem Zusammenhang gerissen.
@magnucki
magnucki / farben.tex
Created August 19, 2013 09:37
Code aus dem Video zu Farben in LaTeX
\documentclass[12pt,a4paper]{scrartcl}
\usepackage[utf8x]{inputenc}
\usepackage[ngerman]{babel}
\author{Rico}
\usepackage{color}
%\textcolor{farbe}{text}
%\color{farbe}{text}
%\pagecolor{farbe}
%\colorbox{farbe}{text}
@magnucki
magnucki / count values
Created October 16, 2013 17:08
Creates a dict() where the key is the element and the value is the amount of times it is it the given list.
#Creates a dict() where the key is the element and the value is the amount of times it is it the given list.
def count_v(data):
output = dict()
for value in data:
print data[value]
if output.has_key(data[value]):
output[data[value]] += 1
else:
output[data[value]] = 1
return output
@magnucki
magnucki / .gitignore
Created October 13, 2014 11:42
Android Studio .gitignore
# Mac OS X
*.DS_Store
# Windows
Thumbs.db
# Built application files
*.apk
*.ap_
@magnucki
magnucki / qsort.hs
Created October 13, 2014 16:56
simple quicksort
qsort:: [Int] -> [Int]
qsort [] = []
qsort [a] = [a]
qsort (x:xs) = (qsort [b | b <- xs , b < x]) ++ [x] ++ (qsort [b | b <- xs, b > x])
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite