This file contains hidden or 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
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) |
This file contains hidden or 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
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): |
This file contains hidden or 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
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(); |