Skip to content

Instantly share code, notes, and snippets.

View darkfrog26's full-sized avatar
🦊
Crazy like a fox

Matt Hicks darkfrog26

🦊
Crazy like a fox
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dynamic Contested Permit Viewer</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f6f9;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pooling Order Visualization</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f6f9;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pooling Case Visualization</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f6f9;
@scala {
object Example {
@java {
public void main(String[] args) {
...
}
}
val json = @json {
one: 1,
import cats.effect.{Deferred, IO}
import java.util.concurrent.ConcurrentHashMap
trait WorkCache[Key, Result] {
private val map = new ConcurrentHashMap[Key, Deferred[IO, Result]]
protected def persisted(key: Key): IO[Option[Result]]
protected def work(key: Key): IO[Result]
import cats.effect.IO
import cats.effect.unsafe.implicits.global
import scala.concurrent.duration._
object Maintenance {
def schedule(schedule: FiniteDuration,
initialDelay: Option[FiniteDuration] = None)
(action: IO[TaskResult]): MaintenanceTask = {
var normalSchedule = schedule
package live.prepared
import cats.data.EitherT
import cats.effect._
import cats.implicits._
import fabric.parse.Json
import fabric.rw._
import fs2.Chunk
import org.http4s._
import org.http4s.dsl.Http4sDsl
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class Screen {
final String key;
final Nav? nav;
final Widget Function() createWidget;
Screen({
required this.key,
import 'package:flutter/material.dart';
import 'package:get/get.dart';
void main() {
runApp(MyApp());
}
class MyNavModel {
static final Map<String, MyNavModel> urls = {};
final IconData icon;
/*
Allows me to write MUnit tests like:
"Such and such" should {
"do something" in {
value should be(123)
}
}
*/