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
| <?php | |
| namespace App\Http\Middleware; | |
| use Carbon\Carbon; | |
| use Closure; | |
| use Illuminate\Support\Facades\Cache; | |
| class Idempotency | |
| { |
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
| // Given a large input image, this script generates map tiles of 256*256px | |
| // at power-of-2 zoom levels. It's not super efficient or anything, just a | |
| // quickly hacked together script. | |
| //Use the tiles in leaflet.js like this: | |
| /* | |
| <div id='map' style='height:100%;'></div> | |
| <script> | |
| var map = L.map('map', { | |
| attributionControl: false |
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
| <?php | |
| $db = new mysqli("localhost", "root", "", "test"); | |
| $db->query("INSERT INTO messages (text, time) VALUES ('".$_POST["text"]."', '".time()."');"); |
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
| // Original version of this file was part of InterClient 2.01 examples | |
| // | |
| // Copyright InterBase Software Corporation, 1998. | |
| // Written by com.inprise.interbase.interclient.r&d.PaulOstler :-) | |
| // | |
| // Code was modified by Roman Rokytskyy to show that Firebird JCA-JDBC driver | |
| // does not introduce additional complexity in normal driver usage scenario. | |
| // | |
| // A small application to demonstrate basic, but not necessarily simple, JDBC features. | |
| // |