This file contains hidden or 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
\documentclass[DIN,10pt,a4paper,fromphone=true]{scrlttr2} | |
\usepackage[ngerman]{babel} | |
\usepackage{graphicx} | |
\usepackage{rechnung} | |
\usepackage[utf8x]{inputenc} | |
\setkomavar{fromname}{Mark Schmale} | |
\setkomavar{fromaddress}{Ihne 3\\58540 Meinerzhagen} | |
\setkomavar{fromphone}{02358 699} | |
\setkomavar{subject}{Rechnung \#001} | |
\firsthead{\null\hfill |
This file contains hidden or 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
%% | |
%% This is file `rechnung.sty', | |
%% generated with the docstrip utility. | |
%% | |
%% The original source files were: | |
%% | |
%% rechnung.dtx (with options: `package') | |
%% | |
%% IMPORTANT NOTICE: | |
%% |
This file contains hidden or 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
// ==UserScript== | |
// @match http://*.stargate-galaxys.com/* | |
// ==/UserScript== | |
var elements = new Array(), | |
currentIndex = 0, | |
selectElement = document.getElementById('planetid'), | |
currentValue = selectElement.value, | |
optionElements = selectElement.getElementsByTagName('option'), | |
formElement = document.getElementById('form'); | |
for(var i=0;i<optionElements.length;i++) { |
This file contains hidden or 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
#!/bin/sh | |
CURL=`which curl` | |
TAR=`which tar` | |
path=$1 | |
shift | |
params=$* | |
$CURL $path | $TAR -x $params |
This file contains hidden or 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
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#define MAXLINE 4096 |
This file contains hidden or 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
(function() { | |
document.cE = document.createElement; | |
var s = [], div = document.cE('div'); | |
var text = document.cE('input'); | |
var col = [0, 0, 0]; | |
var aE = "attachEvent", oc = "onchange", ok = "onkeyup"; | |
var uB = function() { | |
var c = text.value.match(/\w\w?/g), n, i; | |
for(i in c) { | |
s[i].value = col[i] = parseInt(c[i], 16) || 0; |
This file contains hidden or 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
$exif = (int)$image->getImageProperty("exif:Orientation"); | |
switch($exif) { | |
case 2: | |
$image->flopImage(); | |
break; | |
case 3: | |
$image->rotateImage('black', 180); | |
break; | |
case 4: | |
$image->flipImage(); |
This file contains hidden or 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
<?php | |
class ServerStatus | |
{ | |
private $cachePath = './status.cache'; | |
private $cacheLifetime = 60; // in sekunden | |
private $statusUrl = 'http://www.swtor.com/de/server-status'; | |
public function dispatch($url) | |
{ |
This file contains hidden or 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
<?php | |
class CoolStringClass | |
{ | |
public function __construct($content) | |
{ | |
$this->contents = $content; | |
} | |
public function __toString() |
This file contains hidden or 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
<htmlzeugsblafoo> | |
<?php | |
$request = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['REQUEST_URI']; | |
$dirname = __DIR__ . '/'; | |
$request = preg_replace('(^'.$dirname.')', '', $request); | |
$page = trim($request, '/'); | |
$path = './content/' . $page . '.html'; | |
$allowed = array_merge(glob('./content/*.html'), glob('./content/*/*.html')); | |
if(in_array($path, $allowed)) include $path; | |
else include './content/home.html'; |