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
/** | |
* Coding standard | |
* | |
* @copyright Mikuláš Dítě 2010 | |
* @version 1 | |
*/ | |
________________________________________________________________________________ | |
<?php # full php opening tag on first line | |
# new line after php opening tag | |
namespace Example; # namespace name in CamelCase |
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 | |
/** | |
* Nette automatic getter calling demonstration | |
*/ | |
namespace Model; | |
class Test extends BaseModel |
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
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Regex Sandbox with default Unicode support</title> | |
</head> | |
<body style="font-family: Verdana; "> | |
<h1 style="font-size: 23px;">Regex class with unicode support and objective access</h1> | |
<?php |
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
/** | |
* Mac OS X Console Output Coloring | |
* @author Mikulas Dite | |
* @copyright Mikulas Dite 2012 | |
*/ | |
# Pattern | |
\033[%codes%m%text%\033[0m |
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 | |
/** | |
* Experimental check for hash cycles | |
* Should take about 16 hours, 20 minutes to compute hashes and few more minutes to compare them | |
* @author Mikulas Dite | |
* @copyright Mikulas Dite 2010 | |
* @version MD5 | |
*/ |
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 | |
/* | |
* Toggling block comments | |
* Mikulas Dite 2010 | |
*/ | |
/* |
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\Templating; | |
use Nette\Forms\Form; | |
use Nette\Utils\Strings as String; | |
use Nette\InvalidStateException; | |
use Nette\Object; | |
use Nette\Latte\DefaultMacros; |
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
#!/bin/bash | |
srcLibs="/Volumes/Data/Web" | |
colorPrefix="\033[" | |
colorPostfix="\033[0m" | |
color_default="0" | |
color_red="31" | |
color_red_bold="1;31" |
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 o='open .' | |
alias ls='ls -AG' | |
alias ll='ls -l' | |
alias ..='cd ..' | |
alias w='cd /Volumes/Data/Web/' | |
alias p='cd /Volumes/Data/Projects' | |
alias s="sudo" |
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
#!/bin/bash | |
x=`pwd` | |
x=$(echo $x|sed 's/\/Volumes\/Data\/Web/localhost/g') | |
open -a Google\ Chrome http://$x/www/ | |
exit |
OlderNewer