Skip to content

Instantly share code, notes, and snippets.

View rubenfiszel's full-sized avatar

Ruben Fiszel rubenfiszel

View GitHub Profile
@rubenfiszel
rubenfiszel / gist:199f236e9334f1ffcbf71c6cebf47f2b
Created March 25, 2026 11:46
Windmill: relative imports and wmill.runScript examples (Python & TypeScript)
# Windmill: Relative Imports & wmill.runScript Examples
Two patterns for reusing scripts in Windmill — **relative imports** (inlined, same job) and **wmill.runScript** (separate child job).
---
## Python
### `f/common/send_email.py` — reusable unit
@rubenfiszel
rubenfiszel / windmill-doctor.sh
Created March 5, 2026 13:56
Windmill Doctor - Diagnose LSP, Debugger, and Multiplayer issues in Windmill deployments. Checks server health, WebSocket connectivity, reverse proxy routing, and Docker container status.
#!/usr/bin/env bash
# ============================================================================
# Windmill Doctor - Diagnose LSP, Debugger, and Multiplayer issues
# ============================================================================
#
# Usage:
# ./windmill-doctor.sh [OPTIONS]
#
# Options:
# --base-url URL Windmill base URL (default: http://localhost)
import spatial.dsl._
import org.virtualized._
import spatial.SpatialCompiler
import spatial.interpreter.Interpreter
import spatial.interpreter.Streams
import spatial.metadata._
trait ParticleFilter extends SpatialStream {
val N: scala.Int = 10
from __future__ import print_function
from keras import layers
from keras.layers import Activation
from keras.layers.normalization import BatchNormalization
from keras import models
from keras.datasets import cifar10
from keras.utils import np_utils
from keras.callbacks import CSVLogger
from keras import layers
from keras.layers import Activation
from keras import models
def residual_network(x):
def resnet_conv(channels, kernel_size, strides, y):
import com.scalakata._
import scala.reflect._
@instrument class Playground {
Prog.main()
}
import com.scalakata._
@instrument class Playground {
Prog.main()
}
trait Expr {
sealed trait Exp[T]
import com.scalakata._
@instrument class Playground {
Prog.main()
}
trait Expr {
sealed trait Exp[T]
case class Lambda[A:Rep, B:Rep](f: A => B) extends (A => B) {
val rA = rep[A]
val rB = rep[B]
type InternalB = rB.Internal
lazy val lambda: Exp[rA.Internal => InternalB] = doLambdaDef(f)(rA, rB)
def apply(arg:A):B = {
case class Lambda[A:Rep, B:Rep](f: A => B) extends (A => B) {
val rA = rep[A]
val rB = rep[B]
type InternalB = rB.Internal
lazy val lambda: Exp[rA.Internal => InternalB] = doLambdaDef(f)(rA, rB)
def apply(arg:A):B = {