View::share('user', $user);
Makes $user available to all views.
URI::segment(1);
First segement uf an URL (eg. site.com/de/hello = de).
from sys import argv | |
import os | |
script, filename, queries, documents = argv | |
o = open("out.html", "w") | |
o.write("<html><body>") | |
with open(filename) as f: | |
content = f.readlines() |
<?php | |
/** | |
* Turing Machine Simulator in PHP | |
* Purposely built for unary multiplication with a two tape TM. | |
* | |
* input format: 001000 | |
* the '1' seperates the first from the second integer | |
* | |
* result of the multiplication will be on the second tape. | |
* |