Skip to content

Instantly share code, notes, and snippets.

View Deltachaos's full-sized avatar

Maximilian Ruta Deltachaos

View GitHub Profile
@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:

@Deltachaos
Deltachaos / Images
Last active August 29, 2015 14:00
Images
This is a place where i put images postet in Chats
package ;
import js.Node;
@:coreApi class Sys
{
public static function sleep( seconds : Float ) : Void {
#if nodejsSleepFallback
var stopTime : Float = time() + seconds;
@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.
**/
#!/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
public class Muenze {
private int farbe;
public Muenze(int farbe) {
// TODO Auto-generated constructor stub
this.farbe = farbe;
}
public void zeichnen() {
function testCompositeImage() {
echo "<h2>compositeImage</h2>";
$this->ImageMagickCanvas = new ImageMagickCanvasLib(400, 500, 'red');
//$this->ImageMagickCanvas->setBackgroundColor('red');
$this->ImageMagickCanvas->ellipse(10, 10, 100, 200);
$res = $this->ImageMagickCanvas->newLayer(130, 200, 'yellow');
$res->loadFromFile(dirname(__FILE__).DS.'imagick'.DS.'test.jpg');
@Deltachaos
Deltachaos / hover-menu.css
Created April 26, 2012 10:24
DokuWiki hover für Menü Einträge
div#p-x-navigation div.dtree a.nodeFdUrl:hover, div#p-x-navigation div.dtree a.nodeFdUrl:focus, div#p-x-navigation div.dtree a.nodeFdUrl.hover,
div#p-x-navigation div.dtree a.nodeUrl:hover, div#p-x-navigation div.dtree a.nodeUrl:focus, div#p-x-navigation div.dtree a.nodeUrl.hover,
div#p-x-navigation div.dtree a.nodeSel:hover, div#p-x-navigation div.dtree a.nodeSel:focus, div#p-x-navigation div.dtree a.nodeSel.hover,
div#p-x-navigation div.dtree a.node:hover, div#p-x-navigation div.dtree a.node:focus, div#p-x-navigation div.dtree a.node.hover,
div#p-x-navigation div.dtree a.navSel:hover, div#p-x-navigation div.dtree a.navSel:focus, div#p-x-navigation div.dtree a.navSel.hover{
position:absolute;
z-index: 2;
background-color: #fff;
background-color: rgba(255, 255, 255, 0.99);
padding: 5px;
@Deltachaos
Deltachaos / yt18.html
Created April 24, 2012 21:16
Translate a "18bla, you must login to see this video" Videolink into blupp viewable without login (http://yt18.natenom.name)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>yt18</title>
<style type="text/css">
body {
background-color: #abcdef;
overflow: hidden;
text-decoration: bold;
@Deltachaos
Deltachaos / types.js
Created March 27, 2012 20:17
StrongTypes for JavaScript
/**
* StrongTypes (http://github.com/fireflyjs/strongtypesjs)
* Copyright 2012, Maximilian Ruta <[email protected]> (http://deltachaos.de/)
*
* This is a Type System for JavaScript. It is desinged to run
* on node.js and in the Browser. Tested with:
* • Chromium 15
* • Firefox 8
* • Opera 11.52
* • Internet Explorer 9