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
/** | |
* [0.9.x] BattleMessenger - chat fiters & antispam | |
* Author: Assassik | |
* Version: 3.0 | |
* | |
* Readme: https://github.com/PavelMaca/WoT-BattleMessenger/blob/master/readme.markdown | |
* | |
* Forum link: http://forum.worldoftanks.eu/index.php?/topic/235204- | |
* Source code: https://github.com/PavelMaca/WoT-BattleMessenger | |
* |
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
{ | |
"config": { | |
"load_error": "<font face='$FieldFont' size='13'>Konfigurační soubor nenalezen. Použito standardní nastavení!</font>", | |
"server_error": "<font face='$FieldFont' size='13'>Server není podporován.</font>", | |
"update": "<font face='$FieldFont' size='13'><b>Aktualizace k dispozici:</b> </font>", | |
"reload": "<font face=\"$FieldFont\" size=\"13\"><b>Konfigurace a jazyk byli znovu načteny!</b> </font>" | |
}, | |
"language": { | |
"error": "<font face='$FieldFont' size='13'>V souboru clanMod.lang nebyl nalezen překlad pro vaše jazykové nastavení. Bude použita angličtina!</font>" | |
}, |
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
#Embedded file name: InfoPanel | |
""" | |
(c) Dellux 2013 | |
Recompiled by Skino88 | |
Fixed by: Assassik, webium | |
""" | |
import BigWorld, GUI, Keys | |
import weakref | |
import CommandMapping | |
import Vehicle |
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 | |
//regex test: http://regexhero.net/tester/?id=c4b2c455-b1e3-40b8-969e-b5b8240b7324 | |
public static function twitterify($text) { | |
$search = array( | |
'|(http://[^ ]+)|', | |
'/(^|[^a-z0-9_])@(\w*[a-z]+[0-9a-ž_]*)/i', | |
'/(^|[^a-z0-9_])#(\w*[a-z]+[0-9a-ž_]*)/i', | |
); | |
$replace = array( |
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/bash | |
# My first shell script :) | |
# Backup domains directories and MySQL database. | |
clear | |
# CONFIGURATION | |
MODE_D="0740" | |
MODE_F="0640" | |
DAY=$(date +%F) # YYYY-MM-DD |
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 secure = true; | |
var files = [{ | |
"name" : "file1.txt", | |
"contents" : "foo1", | |
"ext" : "txt", | |
}, { | |
"name" : "file2.php", | |
"contents" : "<?php phpinfo();", | |
"ext" : "php", |
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
int pridano = 0; | |
for( .... .... ..){ | |
if(platy[pocet] > 10000){ | |
pridano++; | |
} | |
} |
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 | |
/** | |
* Draft for EditableGrid | |
* @author Pavel Máca | |
*/ | |
$grid = new Gridito\EditableGrid($this, $name); | |
$em = Nette\Environment::getService("Doctrine\ORM\EntityManager"); | |
$model = new Model\UsersEditableGriditoDoctrineModel($em); | |
$grid->setModel($model); |
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 | |
/** | |
* Expands %placeholders% in string. Return mixed when expanding pure ^%item%$. | |
* @param string | |
* @return mixed | |
* @throws Nette\InvalidStateException | |
*/ | |
public function expand($s) | |
{ |
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 | |
/** | |
* Returns array item or $default if item is not set. | |
* Example: $val = Arrays::get($arr, 'i', 123); | |
* @param mixed array | |
* @param mixed key | |
* @param mixed default value | |
* @return mixed | |
*/ | |
public static function get(array $arr, $key, $default = NULL) |
OlderNewer