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
puts "Test" |
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 ruby | |
ARGV[0] = ARGV[0] + "/" if ARGV[0][-1] != "/" | |
puts ":: Opening " + ARGV[0] | |
Dir.open( ARGV[0] ).each { |name| | |
if name.include? ARGV[1] then | |
r_name = name.gsub ARGV[1], ARGV[2] | |
puts ":: Replacing " + name + " to " + r_name | |
File.rename ARGV[0] + name, ARGV[0] + r_name |
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 | |
class ErrorHandler | |
{ | |
public static function initalize() | |
{ | |
set_error_handler( array("ErrorHandler", "handle") ); | |
} | |
public static function handle($errno, $errstr, $errfile, $errline, $errcontext) |
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
%p= site.id |
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
<? | |
//* Made by Kofel ([email protected]) | |
//* Under GPL | |
//* Writed in PHP5 and used SimpleXML | |
//well, this version is refactored | |
class ServerStatus | |
{ | |
protected $IP, $port; |
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
127.0.0.1 facebook.com | |
127.0.0.1 www.facebook.com | |
127.0.0.1 facebook.pl | |
127.0.0.1 www.facebook.pl | |
127.0.0.1 www.facebook.com | |
127.0.0.1 facebook.com | |
127.0.0.1 ok.facebook.com | |
127.0.0.1 www.ok.facebook.com | |
127.0.0.1 a.ok.facebook.com | |
127.0.0.1 www.a.ok.facebook.com |
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 | |
/** | |
* RockMongo english translation | |
* | |
* @package rockmongo | |
* @author iwind.liu <[email protected]> | |
* @version 1.1 | |
*/ | |
$message["TRANSLATION_NAME"] = "Polski"; |
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 | |
class Dump | |
{ | |
public static function from( $host, $username, $password, $database, $charset = 'utf8' ) | |
{ | |
$o = new self; | |
$o->host = $host; | |
$o->username = $username; | |
$o->password = $password; |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.clone(); |
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 Robot = function(robot){ | |
robot.turnLeft(robot.angle % 90); | |
robot.turnGunRight(90); | |
robot.clone(); | |
this.direction = 1; | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(1); | |
if (robot.parentId) { |
OlderNewer