Skip to content

Instantly share code, notes, and snippets.

@mzvonar
mzvonar / Free.purs
Created August 4, 2021 20:12
Example of Reader context not working in Free interpreter
module Test.Free where
import Prelude
import Control.Monad.Free (Free, liftF, foldFree)
import Control.Monad.Reader (ReaderT, ask, lift, local, runReaderT)
import Effect (Effect)
import Effect.Console as Console
data Filter = All | Info | Error
@mzvonar
mzvonar / chromedrive.log
Created November 30, 2016 11:11
chromedrive.log
[0.045][INFO]: COMMAND InitSession {
"capabilities": {
"desiredCapabilities": {
"browserName": "chrome",
"handlesAlerts": true,
"javascriptEnabled": true,
"locationContextEnabled": true,
"loggingPrefs": {
"browser": "ALL",
"driver": "ALL"
@mzvonar
mzvonar / wdio.seleniumlogs1.log
Created November 30, 2016 10:54
webdriver.io click after wait selenium logs
=======================================================================================
Selenium 2.0 / webdriver protocol bindings implementation with helper commands in nodejs.
For a complete list of commands, visit http://webdriver.io/api.html.
=======================================================================================
[11:46:19] COMMAND POST "/wd/hub/session"
[11:46:19] DATA {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"maxInstances":5,"browserName":"chrome","loggingPrefs":{"browser":"ALL","driver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"4.4.0","name":"webdriverio"}}}
=======================================================================================
Selenium 2.0 / webdriver protocol bindings implementation with helper commands in nodejs.
@mzvonar
mzvonar / index.html
Created October 13, 2016 09:56
slice vs substring vs substr (http://jsbench.github.io/#7b54875689d6339e2b935e4366c634d7) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>slice vs substring vs substr</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>