Skip to content

Instantly share code, notes, and snippets.

View timzolleis's full-sized avatar
🎯
Focusing

Tim Zolleis timzolleis

🎯
Focusing
View GitHub Profile
@timzolleis
timzolleis / defer.server.ts
Created October 7, 2025 12:50
effect-defer
export const DeferLive = Layer.sync(Defer, () => {
return {
defer: (key, effect) =>
Effect.gen(function* () {
// Convert Exit to Either and serialize it to match EffectLoader behavior
const eitherPromise = ServerRuntime.runPromiseExit(effect).then((exit) => {
const either = Exit.match(exit, {
onSuccess: (value) => Either.right(value),
onFailure: (error) => {
const leftValue = Cause.isFailType(error)
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
# Set the aesthetic style of the plots
sns.set_theme(style="whitegrid")
plt.rcParams['figure.figsize'] = (14, 8)
plt.rcParams['font.size'] = 12
def frequency_line_plot(data_frame):
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.platform.win32.Ole32;
import com.sun.jna.platform.win32.WTypes;
import com.sun.jna.win32.W32APIOptions;
public class DieterMainApp {
public static void main(String[] args) {
Initialize();