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
module Main where | |
import Prelude | |
import Effect (Effect) | |
import Effect.Aff (launchAff_) | |
import Halogen.Aff as HA | |
import Halogen.Store.Monad (runStoreT) | |
import Halogen.VDom.Driver (runUI) | |
import Data.Maybe (Maybe(..)) |
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
module Main where | |
import Prelude | |
import Effect (Effect) | |
import Effect.Aff (launchAff_) | |
import Halogen.Aff as HA | |
import Halogen.Store.Monad (runStoreT) | |
import Halogen.VDom.Driver (runUI) | |
import Data.Maybe (Maybe(..)) |
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
// Combination of: | |
// https://github.com/actix/examples/tree/master/juniper | |
// https://github.com/actix/examples/tree/master/websocket | |
mod schema; | |
use crate::schema::{create_schema, Schema}; | |
use actix::prelude::*; | |
use actix_web::{middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer}; | |
use actix_web_actors::ws; |
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 | |
$decimals = 2; | |
// test iterations | |
$iterations = 1000; | |
printf("Iterations: %d\n\n", $iterations); | |
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 | |
// reset && /usr/bin/time php lcs.php | |
$utf8test = true; // utf8 or ascii test input | |
$decimals = 2; | |
// test iterations | |
// amount is chosen so that each test takes about 10 minutes on my PC (AMD Ryzen 2400G) | |
// tune: round((10×60) × (iterations / runtime)) for 10 minutes | |
if ($utf8test) { |
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
# other stuff before this (imports & other code) | |
runner = run_app_nonblocking.setup_app(app, host='localhost', port=8080) | |
# Extra asyncio stuff here | |
loop = asyncio.get_event_loop() | |
# maybe add another site | |
extra_site = web_runner.TCPSite(runner, "127.0.0.1", 8099, |
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
module Main where | |
import Codec.Picture | |
import Codec.Picture.Types | |
import Debug.Trace | |
type X = Int | |
type Y = Int | |
type Width = Int | |
type Height = Int |
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 | |
/** | |
* DoctrineExtensions Vendor Specific DQL Query Features | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* If you did not receive a copy of the license and are unable to | |
* obtain it through the world-wide-web, please send an email |