View zio-temporal-activity-retry.scala
This file contains 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
// Run with scala-cli as `scala-cli zio-temporal-activity-retry.scala` | |
//> using scala "3.3.0-RC3" | |
//> using lib "dev.zio::zio:2.0.10" | |
//> using lib "dev.zio::zio-logging:2.1.11" | |
//> using lib "dev.zio::zio-logging-slf4j2-bridge:2.1.11" | |
//> using lib "dev.vhonta::zio-temporal-core:0.1.0-RC6" | |
// TODO: This can be removed once https://github.com/vitaliihonta/zio-temporal/pull/37 is merged |
View zio-temporal-activity-retry.scala
This file contains 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
// Run with scala-cli as `scala-cli zio-temporal-activity-retry.scala` | |
//> using scala "3.3.0-RC3" | |
//> using lib "dev.zio::zio:2.0.10" | |
//> using lib "dev.zio::zio-logging:2.1.11" | |
//> using lib "dev.zio::zio-logging-slf4j2-bridge:2.1.11" | |
//> using lib "dev.vhonta::zio-temporal-core:0.1.0-RC6,exclude=$com.google.protobuf%protobuf-java" | |
// This option allows assigning directly from a tuple in a for comprehension without a separate `=` |
View zio-temporal.scala
This file contains 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
// Run Temporalite (https://github.com/temporalio/temporalite/) and application with scala-cli: | |
// scala-cli zio-temporal.scala | |
//> using scala "3.3.0-RC3" | |
//> using repository "sonatype:snapshots" | |
//> using resourceDir "./resources" | |
//> using lib "dev.zio::zio:2.0.10" | |
//> using lib "dev.zio::zio-http:0.0.4+9-66d4e892-SNAPSHOT" | |
//> using lib "dev.zio::zio-logging:2.1.10" |
View .gtkwaverc
This file contains 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
fontname_signals Menlo 16 | |
fontname_waves Menlo 16 | |
fill_waveform 1 | |
use_roundcaps 1 | |
wave_scrolling 1 | |
disable_mouseover 0 | |
highlight_wavewindow 1 | |
use_scrollwheel_as_y on |
View PipelineOps.scala
This file contains 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
#!/usr/bin/env -S scala-cli shebang | |
//> using scala "3" | |
/** Test functions */ | |
val triple = (x: Int) => 3 * x | |
val half = (x: Int) => x / 2 | |
val sum = (x: Int) => (y: Int) => x + y | |
/** with extension infix */ | |
// extension [A, B](a: A) |
View MemMask.scala
This file contains 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
//> using scala "2.13.8" | |
//> using lib "edu.berkeley.cs::chisel3::3.5.4" | |
//> using lib "com.sifive::chisel-circt::0.6.0" | |
//> using plugin "edu.berkeley.cs:::chisel3-plugin::3.5.4" | |
//> using options "-unchecked", "-deprecation", "-language:reflectiveCalls", "-feature", "-Xcheckinit", "-Xfatal-warnings", "-Ywarn-dead-code", "-P:chiselplugin:genBundleElements", "-Ywarn-unused" | |
import chisel3._ | |
import circt.stage.ChiselStage | |
import chisel3.stage.ChiselGeneratorAnnotation |
View ChiselArgs.scala
This file contains 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
//> using scala "2.13.8" | |
//> using lib "edu.berkeley.cs::chisel3::3.5.4" | |
//> using lib "com.sifive::chisel-circt::0.6.0" | |
//> using plugin "edu.berkeley.cs:::chisel3-plugin::3.5.4" | |
import chisel3._ | |
import circt.stage.ChiselStage | |
import chisel3.stage.ChiselGeneratorAnnotation | |
class FooBundle extends Bundle { |
View boxstarter.ps1
This file contains 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
# Description: Boxstarter Script | |
# Author: CarlosEDP | |
# | |
# First set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Install boxstarter: | |
# . { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; Get-Boxstarter -Force | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?https://github.com/carlosedp/dotfiles/raw/master/boxstarter.ps1 |
View SemVer.scala
This file contains 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
/** SemVer bump mode type | |
*/ | |
object BumpMode extends Enumeration { | |
type Mode = Value | |
val Major, Minor, Patch, None = Value | |
} | |
object SemVer { | |
/** Creates a new [[SemVer]] with bump and manipulation | |
* |
View el_docker.py
This file contains 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
#!/usr/bin/python3 | |
import os | |
import shutil | |
import subprocess | |
import sys | |
import logging | |
import shlex | |
logging.basicConfig(level=logging.DEBUG) | |
logger = logging.getLogger("EdalizeLauncher") |
NewerOlder