Skip to content

Instantly share code, notes, and snippets.

@juokaz
juokaz / gist:19d98274b2e1a02e3d3d
Created April 17, 2015 15:32
php ebnf grammar
main: inner_statement* [EOF];
inner_statement: statement
| function_declaration_statement
| class_declaration_statement ;
statement: "{" inner_statement* "}"
| "if" "(" expr ")" statement elseif_branch? else_single?
| "if" "(" expr ")" ":" inner_statement* new_elseif_branch?
new_else_single? "endif" ";"
@juokaz
juokaz / webscale.php
Created December 3, 2014 03:14
#webscale PHP Framework 0.1
<?php
gc_disable();
goto webscale;
webscale:
print "WEB SCALE" . PHP_EOL;
# Split tree, from http://fossplanet.com/f6/%5Bsymfony-devs%5D-%5Bsymfony2%5D-zf2-dependency-resending-sf-ml-80224/
git subtree split --prefix=library/Zend/Paginator/ --annotate="[Zend_Paginator]" --rejoin -b zf2/zend_paginator
git checkout zf2/zend_paginator
# Push to our repo
git remote add origin git@github.com:juokaz/zend-paginator.git
git push zf2/zend_paginator:master
<?xml version="1.0"?>
<project name="" default="empty" basedir=".">
<description>W</description>
<property file="config.properties"/>
<target name="empty">
<echo>Please choose what to deploy: all, nginx, website</echo>
</target>