This file contains hidden or 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
class A | |
def initialize(parent) | |
@parent = parent | |
end | |
def test | |
puts "A::test" | |
end | |
end |
This file contains hidden or 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 = 12; | |
$b = <<<EOV | |
fasza cucc {$a} ami erteke \$a. | |
EOV; | |
echo $b; |
This file contains hidden or 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 | |
namespace wsTestLib; | |
require LIB.'/wsYouTube.php'; | |
class wsYouTube { | |
var $name = 'YouTube processor'; | |
public function sunrise() { | |
$this->videos = array( | |
'available' => array( |
This file contains hidden or 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
# ([ 3, 2, 1, 3, 1, 2, 3 ] * (1000/7)).each { |s| (($x||=0) > 997) ? break : $y = ($y||=0) + ( $x += s ) } | |
([ 3, 2, 1, 3, 1, 2, 3 ] * (1000/14)).each { |s| (($x||=0) > 997) ? break : $y = ($y||=0) + ( $x += s ) } |
This file contains hidden or 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
C:\DevKit>gem install mysql2 -- '--with-mysql-lib="c:\Program Files\MySQL\MySQL | |
Server 5.1\lib\opt" --with-mysql-include="c:\Program Files\MySQL\MySQL Server 5. | |
1\include"' | |
Temporarily enhancing PATH to include DevKit... | |
Building native extensions. This could take a while... | |
ERROR: Error installing mysql2: | |
ERROR: Failed to build gem native extension. | |
C:/Ruby192/bin/ruby.exe extconf.rb --with-mysql-lib="c:\Program Files\MySQL\MySQ | |
L Server 5.1\lib\opt" --with-mysql-include="c:\Program Files\MySQL\MySQL Server |
This file contains hidden or 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
.valami_class { | |
font-size: 12px; | |
width: 100px; | |
height: 100px; | |
background-image: url("../images/blog/type_text.png"); } | |
.valami_mas_class { | |
color: #aa0000; | |
width: 150px; | |
height: auto; } |
This file contains hidden or 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 | |
require_once "init.php"; | |
$map = new MongoCode("function() { | |
this.comments_count = this.comments.length; | |
if (this.likes) this.likes_count = this.likes.length; | |
else this.likes_count = 0; | |
emit(this, {count: 1}); | |
}"); |
This file contains hidden or 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 | |
interface ILogin { | |
public function check_password( | |
$username, | |
$password, | |
$opts = array() | |
); | |
public function do_login( | |
$username, | |
$password, |
This file contains hidden or 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 | |
DEFINE('MYSQL_LIMIT', 5000); | |
$datas = array( | |
array(1,2,3), | |
array(1,2,3), | |
array(1,2,3), | |
array(1,2,3), | |
array(1,2,3) | |
); |
This file contains hidden or 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
require "rubygems" | |
require "virtualbox" | |
vms = VirtualBox::VM.all | |
vms.each do |vm| | |
puts <<EOI | |
#{vm.name} | |
#{"="*vm.name.length} | |
Memory: #{vm.memory_size} MB |