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
jQuery(function($) { | |
$('[data-gaq]').each(function() { | |
var self = $(this), gaq = JSON.parse(self.data('gaq')), | |
bind = self.data('gaq-bind') || 'click'; | |
self[bind](function() { | |
window._gaq.add(gaq); | |
}); | |
} | |
}); |
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('MAX', 100000); | |
define('NUM', 100); | |
$in = array('key'); | |
for ($i = 0; $i < NUM; ++$i) { | |
$in100[] = 'key' . $i; | |
} | |
$is = array('key' => true,); |
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 | |
$mt = microtime(1); | |
for ($i = 0; $i < 10000; ++$i) { | |
clearstatcache(); | |
$file = 'file-prefix.' . date('Ymdh', filemtime('some-file.txt')) . '.txt'; | |
} | |
echo microtime(1) - $mt, PHP_EOL, $file, PHP_EOL; |
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 | |
class Test | |
{ | |
public $title0 = 'string value'; | |
public $title1 = 'string value'; | |
public $title2 = 'string value'; | |
public $title3 = 'string value'; | |
public $title4 = 'string value'; | |
public $title5 = 'string value'; |