This file contains 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 | |
/** | |
* Find all BadWords from the wordlist | |
* | |
* @param array[String] $wordList | |
* @return Tx_Extbase_Persistence_QueryResult | |
*/ | |
public function findByBadWordList($wordList) { | |
$query = $this->createQuery(); | |
$query->matching( |
This file contains 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 | |
/** | |
* Using lib: https://github.com/videlalvaro/php-amqplib | |
* In Tag "v1.0" | |
*/ | |
require_once(__DIR__.'/lib/php-amqplib/amqp.inc'); | |
class TYPO3_RabbitMQ{ | |
public static function writeMessage($host, $port, $user, $pass, $vhost, $channelID, $message, $restore = FALSE) { |
This file contains 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
#!/usr/bin/env python | |
import pika | |
class rabbitmq_basis(object): | |
def __init__(self, host, port, user, password, vhost ): | |
self.host = host | |
self.port = port | |
self.user = user | |
self.password = password | |
self.vhost = vhost |
This file contains 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
private void loadGame() { | |
OpenFileDialog fd = new OpenFileDialog(); | |
fd.Filter = "sudoku files (*.sudoku)|*.sudoku"; | |
if (fd.ShowDialog() == DialogResult.OK) | |
{ | |
String[,] csvFields = GDK.CSV.read(fd.FileName); | |
for (int i = 0; i < 9; i++) | |
{ | |
for (int j = 0; j < 9; j++) { | |
if (csvFields[i, j] != "x") |
This file contains 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 | |
/** A Game of Thrones **/ | |
$links = array(); | |
$links[] = 'http://awoiaf.westeros.org/index.php/A_Game_of_Thrones-Prologue'; | |
for($i=1; $i<=72; $i++) | |
$links[] = 'http://awoiaf.westeros.org/index.php/A_Game_of_Thrones-Chapter_'.$i; | |
$links[] = 'http://awoiaf.westeros.org/index.php/A_Game_of_Thrones-Appendix'; | |
$filename = '1_Game_of_Thrones'; | |
getFiles($links, $filename); |
This file contains 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
var hoverImage = document.createElement('img'); | |
$$('a.hoverImage').invoke('observe', 'mouseover', function(event) { | |
if(this.rel != '') { | |
hoverImage.src = 'wcf/images/avatars/'+this.rel; | |
hoverImage.setStyle({ | |
position: 'absolute', | |
left: event.pageX+'px', | |
top: (event.pageY+10)+'px', |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
{namespace n=Tx_News_ViewHelpers} | |
<rss version="2.0"> | |
<channel> | |
<title>{settings.list.rss.channel.title}</title> | |
<link>{settings.list.rss.channel.link}</link> | |
<description>{settings.list.rss.channel.description}</description> | |
<language>de</language> | |
<f:if condition="{settings.list.rss.channel.copyright}"> | |
<copyright>{settings.list.rss.channel.copyright}</copyright> |
This file contains 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
package Test; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
public class Java extends Frame{ | |
public static void main(String[] args) { |
This file contains 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
wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]|.]//g' |
This file contains 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 | |
# Settings for a PHP Project | |
# Using: | |
# * PHP Lint | |
# *- PHP CS | |
# *- PHP Analyzer | |
# *- EmptyLines Checker | |
# *- Scrutinizer | |
# * PHPCPD |
OlderNewer