Skip to content

Instantly share code, notes, and snippets.

View TimWolla's full-sized avatar

Tim Düsterhus TimWolla

View GitHub Profile
Object.defineProperty(window || global, "yadayadayada", {
get: function () {
throw new Error("Not implemented");
}
});
if (true) {
yadayadayada
}
<?php
include('/srv/www/de/bisaboard/www/wcf/config.inc.php');
$mysqli = new mysqli($dbHost, $dbUser, $dbPassword, $dbName);
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
#!/usr/bin/env php
<?php
if ($argc !== 2) {
echo "Usage: ".$argv[0]." 127.0.0.1/8";
exit;
}
list($ip, $net) = explode('/', $argv[1]);
if ($net > 32 || $net < 0) exit;
$long = ip2long($ip);
$size = $net;
<?php
$results = [];
for ($i = 0; $i < 100000; $i++) mt_rand();
for ($i = 0; $i < 70000; $i++) {
do {
$items = [
1 => 1,
2 => 2,
3 => 3,
[tolle Accelerators (Vulcanisation) 33]
[griechische Accordions 131]
[tolle Oliven 161]
[spanische Absorbent cotton H 222]
[griechische Abrasive pads for kitchen 247]
[griechische Bananen 374]
[griechische Kartoffeln 377]
[spanische Bananen 411]
[tolle Accelerators (Vulcanisation) 436]
[tolle Accumulator boxes 459]
@TimWolla
TimWolla / dabblet.css
Created March 17, 2014 03:01
Untitled
input {
border: 1px solid black;
}
input[readonly] {
border-right: 0;
width: 20px;
}
input:not([readonly]) {
border-left: 0;
input {
padding-right: 50px;
border: 1px solid;
width: 500px;
}
@TimWolla
TimWolla / otherfile
Last active August 29, 2015 13:56
Example for Stack Overflow
Example for Stack Overflow
@TimWolla
TimWolla / dabblet.css
Created February 4, 2014 01:59
Stackoverflow question 21541494 - Coffeescript add button on hover
/**
* Stackoverflow question 21541494 - Coffeescript add button on hover
*/
.prf_cvr_edt {
opacity: 0;
transition: opacity .5s linear;
}
.prf_cover:hover + .prf_cvr_edt {
opacity: 1;
}
import static org.junit.Assert.*;
import org.junit.Test;
public class KreisTest {
@Test
public final void testBerechneFlaeche() {
assertEquals(Math.PI, (new Kreis(1, 0, 0)).berechneFlaeche(), 5);
assertEquals(Math.PI * 4, (new Kreis(2, 0, 0)).berechneFlaeche(), 5);