- Somewhat lighter-weight (i.e. does not use as much memory necessarily)
- Widespread support by many apps
- Table partioning simple and built-in
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 | |
$a = true; | |
$b = false; | |
var_dump(${ 1 ? 'a' : 'b' }); | |
${"your mom is your mom http://www.google.com/"} = 'a'; |
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
_=$=+!![];$__=((_$={})+'')[_+$+_+$+_];__$=((![])+'')[$];_$_=((_$={})+'') | |
[_+$+_+$+_+$];____=[][$__+((_$={})+'')[$]+(($)/(![])+'')[$]+$__+__$+_$_];$__$=(!![]+"") | |
[$+$+$]+([][(![]+"")[$+$+$]+(+[]+{})[$+$]+(!![]+"")[$]+(!![]+"")[+[]]]+"")[($+$)+""+ | |
($+$+$)]+(![]+"")[$]+(![]+"")[$+$];$_$_=____()[$-$][$__$]("\"\\"+($)+($+$+$+$+$+$+$)+ | |
($+$)+"\"");_$=(![]+'')[$-$]+([][[]]+[])[$+$+$+$+$]+$_$_+$_$_;$_=(_+{})[$+$+$]+(!![]+'') | |
[_+$]+$_$_+$_$_;_--,$$=$+$;____()[$-$][$__$]((![]+"")[+[]]+(+[]+{})[$+$]+(!![]+"")[$]+ | |
"(;++_;)$$$=!(_%("+($$+$$+$)+")),____()[+[]][__$+((![])+'')["+($+$)+"]+((!![])+'')["+ | |
($+$+$)+"]+((!![])+'')[+!![]]+_$_](!(_%("+($$+$)+"))?$$$?_$+$_:_$:$$$?$_:_);"); |
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 | |
//This is for PRACTICE only! | |
$d=date('D', strtotime('-1 day')); | |
if ($d=="Tue") | |
echo "Have a nice Tuesday!"; | |
elseif ($d=="Mon") | |
echo "Have a nice Monday!"; | |
else |
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 | |
class Model { | |
/** | |
* Load a row from the database | |
* | |
* Pulls data from the database for a given model into the object. Note | |
* that this clears any state (modifications/etc.) that have been set | |
* on the object first, for any Model-controlled columns. |
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 | |
// Function d checks | |
function d($a, $b) { | |
//$c = intval(8E7, 16);//80000000 | |
$c = 2147483648; | |
$a = $a & 0xffffffff; | |
if ($c & $a) { | |
$a >>= 1; | |
$a &= ~$c; | |
$a = $a | 1073741824; |
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 | |
/** | |
* Converts any valid PHP callable into a Closure. Requires PHP 5.4.0+. | |
* | |
* The ramifications of this are many, but basically it means that any function | |
* or method can be converted into a Closure, bound to another scope, and | |
* executed easily. Works properly even with private methods. | |
* | |
* - On success, returns a Closure corresponding to the provided callable. | |
* - If the parameter is not callable, issues an E_USER_WARNING and returns a |
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 | |
use Ribcage\Rib; | |
/** | |
* public function render($filename, $renderer = null); | |
* | |
* @param $filename Filename relative to the "views" folder in the | |
* root directory. | |
* @param $renderer (Optional) Name of the renderer class to use; | |
* determined by file extension by default. |
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 Haml; | |
class Haml | |
{ | |
public static function getTree($data) | |
{ | |
$root = $last_node = new Node('', -1); | |
$re = '/^[\r\n]*([ \t]*)([^ \t]?(?:(?=.*?{[^}]*)\s*[^}]*}.*?|' . | |
'(?:(?=.*?\s*\|\s*)(?:.*?\s*\|\s*)*|.*?)))(\s*?)[\r\n]*$/m'; |
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
+---------------+ | |
| organizations | | |
+---------------+ | |
+------>| id(PK) |<---------+ | |
| +---------------+ | | |
| | | |
| +--------+ +----------+ | | |
| | groups | | profiles | | | |
| +--------+ +----------+ | | |
+---| org_id | | org_id |---+ |
OlderNewer