Skip to content

Instantly share code, notes, and snippets.

View TimWolla's full-sized avatar

Tim Düsterhus TimWolla

View GitHub Profile
(21:26:33) Chatbot hat Aphrodite in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat APOKALYPSE in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat Aves in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat Lavie in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat Lence in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat Leon in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat Lucario29 in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat mayhem in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat Mew123 in den Raum "Neben-Chat" geschoben.
(21:26:33) Chatbot hat Mizu in den Raum "Neben-Chat" geschoben.
{if $user->banned == 0}
<li><a href="index.php?action=UserProfileBan&amp;userID={$userID}&amp;banReason=&amp;t={@SECURITY_TOKEN}{@SID_ARG_2ND}" id="userBan">{lang}wcf.user.profile.userprofileban{/lang}</a></li>
{else}
<li><a href="index.php?action=UserProfileUnBan&amp;userID={$userID}&amp;t={@SECURITY_TOKEN}{@SID_ARG_2ND}">{lang}wcf.user.profile.userprofileunban{/lang}</a></li>
{/if}
<script type="text/javascript">
//<![CDATA[
$('userBan').observe('click', function (e) {
e.stop();
.,-:;//;:=,
. :H@@@MM@M#H/.,+%;,
,/X+ +M@@M@MM%=,-%HMMM@X/,
-+@MM; $M@@MH+-,;XMMMM@MMMM@+-
;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
,%MM@@MH ,@%= .---=-=:=,.
=@#@@@MX., -%HX$$%%%:;
=-./@M@M$ .;@MMMM@MM:
X@/ -$MM/ . +MM@@@M$
,@M@H: :@: . =X#@@@@-
<?php
class FlyingObject extends Exception {
public $object;
public function __construct($object) {
$this->object = $object;
}
}
abstract class Object {
public function outOfWindow() {
package de.wbbaddons.timwolla.example.random;
import java.util.Random;
public class Example {
public static Random random = new Random();
public void main(String[] args) {
System.out.println(this.random.nextInt(3)); // 0 - 2
}
addThousandsSeparator: function(number) {
var $numberString = String(number);
// extract the parts the number
var parts = $numberString.split(/[^0-9]+/);
// Determine the chars that represent the decimalPoint
var $decimalPoint = $numberString.match(/[^0-9]+/);
$numberString = parts[0];
if ($decimalPoint == null) {
// if the number is an integer set the decimalPart to ''
<?php
$terms = array();
$path_hierarchy = array(); // function that returns an array
return array_reduce(
$terms,
function($val1, $val2) use ($path_hierarchy) {
return $val1 || in_array($val2, $path_hierarchy);
}
);
@TimWolla
TimWolla / cowsay.php
Created January 4, 2012 17:03
Pure PHP Cowsay
#!/usr/bin/env php
<?php
array_shift($argv);
if (!isset($argv[0])) $message = fread(STDIN, 2048);
else $message = implode(' ', $argv);
$message = wordwrap($message, 20, "\n");
$message = explode("\n", str_replace("\t", ' ', $message));
$longestLine = 0;
foreach($message as $line) if (strlen($line) > $longestLine) $longestLine = strlen($line);
function work(offset) {
if (typeof offset == 'undefined') offset = 0;
$.ajax('worker.php?offset='+offset, {
data: 'html',
success: function (data) {
if (data != 'Finished') work(offset + 20);
}
});
}
<div class="border">
<table class="tableList">
<tr class="tableHead">
<th><span class="emptyHead">[size=12][b]Gruppe A[/b][/size]</span></th>
<th><span class="emptyHead">[size=12][b]Gruppe B[/b][/size]</span></th>
<th><span class="emptyHead">[size=12][b]Gruppe C[/b][/size]</span></th>
</tr>
<tr class="container-2">
<!-- Gruppe 1 -->
<td>[b][color=#009900]1. USER <br />