This file contains hidden or 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
| # >>> Canonical Redirect (HTTPS + WWW) | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| # Allow Let's Encrypt validation | |
| RewriteRule ^\.well-known/acme-challenge/ - [L] | |
| # Force canonical HTTPS + WWW domain | |
| RewriteCond %{HTTP_HOST} !^www\.example\.ch$ [NC,OR] | |
| RewriteCond %{HTTPS} !=on |
This file contains hidden or 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
| 'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048', |
This file contains hidden or 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
| // Atleast one uppercase, one lowercase and one number | |
| regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/ |
This file contains hidden or 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
| Generator | |
| empty:->stack | |
| push:stack,E->stack | |
| Operations | |
| size:stack->E | |
| pop:stack->stack | |
| top:stack->E | |
| Axioms | |
| size(empty) = 0 | |
| size(push(s,e)) = succ(size(s)) |
This file contains hidden or 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
| generator | |
| empty:->list | |
| append: list, natural ->list | |
| Operations | |
| size: list->natural | |
| nth: list, natural ->list | |
| Axioms | |
| size(empty) = 0 | |
| size(append(l,n)) = size(l)+1 | |
| nth(append(l,n),0) = 0 |
This file contains hidden or 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
| for key, value in pairs(petrinet.transitions.t1.arcs) do | |
| print (key, value.source.name, value.weight, petrinet.transitions.t1.name) | |
| end |
This file contains hidden or 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
| local petrinet = { | |
| places = {"p1","p2","p3"}, | |
| transitions = {"t"}, | |
| flow = { | |
| -- places, transitions, weight | |
| { places[0], transitions[0],2 }, | |
| { places[1], transitions[0],1 }, | |
| { places[2], transitions[0],2 }, | |
| } | |
| } |