Skip to content

Instantly share code, notes, and snippets.

View Deltachaos's full-sized avatar

Maximilian Ruta Deltachaos

View GitHub Profile
public class Muenze {
private int farbe;
public Muenze(int farbe) {
// TODO Auto-generated constructor stub
this.farbe = farbe;
}
public void zeichnen() {
#!/bin/bash
#
# Short hacked script to automatically increase
# the serial of a zonehead file for BIND9. The
# zonehead file has the following format.
#
# Examle zonehead file
# ====================
# $TTL 86400
@Deltachaos
Deltachaos / typed
Created April 8, 2014 11:56
nodejs implementation of sys package. Untyped vs typed using node externs
package sys;
import js.Node;
using StringTools;
#if !macro
/**
This class allows you to get informations about the files and directories.
**/
package ;
import js.Node;
@:coreApi class Sys
{
public static function sleep( seconds : Float ) : Void {
#if nodejsSleepFallback
var stopTime : Float = time() + seconds;
@Deltachaos
Deltachaos / Images
Last active August 29, 2015 14:00
Images
This is a place where i put images postet in Chats
@Deltachaos
Deltachaos / keybase.md
Created September 11, 2019 11:37
keybase.md

Keybase proof

I hereby claim:

  • I am deltachaos on github.
  • I am deltachaos (https://keybase.io/deltachaos) on keybase.
  • I have a public key ASAf6UK68VczQnUnmEJZtay66qGHsw2GJ-46GkalWNnTogo

To claim this, I am signing this object:

import time
import xml.etree.ElementTree as ET
# Create test data
ITERATIONS = 10000
TEXT_WITH_SPECIAL_CHARS = "This is a test with <, >, &, and other symbols. " * 1000
TEXT_ESCAPED = TEXT_WITH_SPECIAL_CHARS.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
PLAIN_TEXT = "This is a test with only plain text and no special characters. " * 1000
def generate_xml_with_cdata(text):