Skip to content

Instantly share code, notes, and snippets.

View lowellk's full-sized avatar

Lowell Kirsh lowellk

View GitHub Profile
This file has been truncated, but you can view the full file.
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Screen Verification: Flows</title><style>* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; padding: 24px; max-width: 1600px; margin: 0 auto; }
h1 { font-size: 24px; margin-bottom: 8px; } h2 { font-size: 18px; margin: 16px 0 8px; }
.meta { color: #666; font-size: 14px; margin-bottom: 16px; }
.summary-dashboard { background: white; border-radius: 12px; padding: 24px; border: 1px solid #e0e0e0; margin-bottom: 32px; }
.stats-bar { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.stats-bar .stat { padding: 10px 16px; border-radius: 8px; font-size: 14px; border: 1px solid #e0e0e0; }
.stat-total { background: #f5f5f5; } .stat-captured { background: #e8f5e9; color: #2e7d32; }
.stat-skipped { background: #fff3e0; color: #ef6c00; } .stat-failed { bac
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Screen Verification: Flows</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
sealed class Result<out T> {
object Idle : Result<Nothing>()
object Loading : Result<Nothing>()
data class Error(val error: Throwable) : Result<Nothing>()
data class Success<T>(val data: T) : Result<T>()
}
@lowellk
lowellk / make-regex.js
Created January 25, 2016 21:11
Utility for making regexes in JS more readable.
function makeRegex() {
var argsArray = Array.prototype.slice.call(arguments);
return new RegExp(argsArray.map(function (r) {
return r.source
}).join(''));
}
// async script loading a la souders
TWHIST.loadScript = function(url, onload) {
var domscript = TWHIST.window.document.createElement('script');
domscript.src = url;
if ( onload ) {
domscript.onloadDone = false;
domscript.onload = function() {
if ( !domscript.onloadDone ) {
domscript.onloadDone = true;