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 | |
var_dump('12:00' > '11:59'); | |
var_dump('11:30' > '11:29:00'); | |
var_dump('11:30' > '11:30:00'); | |
var_dump('11:30' >= '11:30:00'); |
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 | |
$dirContent = Finder::find('*')->from($directory)->childFirst(); | |
foreach ($dirContent as $file) { | |
if ($file->isDir()) | |
@rmdir($file->getPathname()); | |
else | |
@unlink($file->getPathname()); | |
} |
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 | |
/** | |
* Signály.cz – JP2 | |
* ---------------- | |
* | |
* @license MIT License http://en.wikipedia.org/wiki/MIT_License | |
* @link http://signaly.cz | |
*/ | |
use Nette; |
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 | |
namespace Nette\Templates; | |
use Nette; | |
use Nette\String; | |
use Nette\Forms\Form; | |
/** | |
* Form macros | |
* |
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 | |
/** | |
* @license MIT license | |
*/ | |
namespace Nextras; | |
use Nette, | |
Nette\Latte, | |
Nette\Latte\MacroNode, |
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
alias gui='git gui&' | |
alias gitk='gitk --all &' | |
source /c/dev/git-bash-tools/completion.bash # find it in your git installation path | |
hg_ps1() { | |
hg prompt "{ {branch}}{ at {bookmark}}{{status}}" 2> /dev/null | |
} | |
function color_my_prompt { |
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
@echo off | |
if "%PHPBIN%" == "" set PHPBIN=php.exe | |
"%PHPBIN%" "C:/Program Files (x86)/wamp/bin/php/php5.4.6/composer.phar" %* |
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
``` | |
```abc | |
``` |
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
$('.ameta').each(function() { | |
var i = $(this).find('.a').text(); | |
i = i.substring(0, i.length - 3).replace(',',''); | |
var d = $(this).find('.d').text(); | |
d = d.substring(0, d.length - 3).replace(',',''); | |
$(this).parents('li').data('rank', i - d); | |
}); | |
var l = $('.contrib-data'); | |
var list = l.find('li').sort(function(a,b){ return $(b).data('rank') - $(a).data('rank'); }); | |
l.find('li').remove(); |
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
CREATE TABLE book ( | |
id serial NOT NULL, | |
author_id int NOT NULL, | |
translator_id int, | |
title varchar(50) NOT NULL, | |
PRIMARY KEY (id) | |
); | |
CREATE TABLE book_tag ( | |
book_id int NOT NULL, |
OlderNewer