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
Math.floor(Math.random()*1980).toString(); |
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
try | |
{ | |
} | |
catch (Exception $e) | |
{ | |
echo $e->getMessage(); | |
} |
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
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> |
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
switch (expression) | |
{ | |
case label1: | |
statements1 | |
break; | |
case label2: | |
statements2 | |
break; | |
default: | |
statements_def |
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
public function colorAverage($rect) | |
{ | |
//$rect = array(x, y, w, h); | |
$im = @imagecreatetruecolor($rect[2], $rect[3]); | |
if (!$im) { return false; } | |
imagecopy($im, $this->info, 0, 0, $rect[0], $rect[1], $rect[2], $rect[3]); | |
$imgW = $rect[2]; | |
$imgH = $rect[3]; |
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
function isset () { | |
// http://kevin.vanzonneveld.net | |
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
// + improved by: FremyCompany | |
// + improved by: Onno Marsman | |
// + improved by: Rafał Kukawski | |
// * example 1: isset( undefined, true); | |
// * returns 1: false | |
// * example 2: isset( 'Kevin van Zonneveld' ); | |
// * returns 2: true |
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
$(document).ready | |
( | |
function() | |
{ | |
} | |
); |
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
<? | |
function GetFileParts($file_name) | |
{ | |
$tmp = explode("/", $file_name); | |
$_filename = array_pop($tmp); | |
$tmp = explode(".", $_filename); | |
$ext = array_pop($tmp); | |
$fil = substr($_filename, 0, ((strlen($ext)+1) * -1)); | |
$r = array(); | |
$r["name"] = $fil; |
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
<VirtualHost 127.0.0.1> | |
ServerAdmin webmaster@www.cake3.local.com.br | |
DocumentRoot "C:/um/xampp/projetos/git/job0003_cakephp3" | |
ServerName www.cake3.local.com.br | |
ErrorLog "logs/www.cake3.local.com.br-error.log" | |
CustomLog "logs/www.cake3.local.com.br-access.log" common | |
<Directory "C:/um/xampp/projetos/git/job0003_cakephp3"> | |
Options FollowSymLinks Indexes | |
AllowOverride All | |
Order deny,allow |
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
- Ignores. | |
.(rar$|gz$|zip$|exe$|pdf$|log$) | |
- Text files. | |
.(php$|ctp$|mustache$|js$|css$|scss$|htm$|html$|less$|md$|txt$|yml$|map$|htaccess$|rb$|) | |
- No extension files. | |
(LICENSE|COPYING|empty) | |
- Languages files. |