Install freeact
pip install freeact
Get a Gemini API key and add it to .env
pip install freeact
Get a Gemini API key and add it to .env
#!/bin/bash | |
# cool_gpu2.sh This script will enable or disable fixed gpu fan speed | |
# | |
# Description: A script to control GPU fan speed on headless (non-X) linux nodes | |
# Original Script by Axel Kohlmeyer <[email protected]> | |
# https://sites.google.com/site/akohlmey/random-hacks/nvidia-gpu-coolness | |
# | |
# Modified for newer drivers and removed old work-arounds |
import java.nio.ByteBuffer | |
import java.util.concurrent.TimeUnit | |
import org.apache.kafka.clients._ | |
import org.apache.kafka.common.metrics.{MetricConfig, Metrics, MetricsReporter} | |
import org.apache.kafka.common.network.Selector | |
import org.apache.kafka.common.protocol.ApiKeys | |
import org.apache.kafka.common.record.{CompressionType, MemoryRecords} | |
import org.apache.kafka.common.requests.{ProduceRequest, RequestSend} | |
import org.apache.kafka.common.utils.SystemTime |
I hereby claim:
To claim this, I am signing this object:
A list of Akka Persistence plugins is now maintained at http://akka.io/community/. Please edit this page to add a new plugin.
import akka.actor._ | |
import akka.persistence._ | |
object EventsourcingExample extends App { | |
class EventsourcedProcessor extends Processor { | |
var events: List[Any] = Nil | |
var awaitStack: List[Actor.Receive] = Nil | |
def receive = { | |
case Persistent(event, _) if recoveryRunning ⇒ update(event) |
import java.io.File | |
import scala.concurrent.duration._ | |
import akka.actor._ | |
import akka.util.Timeout | |
import org.eligosource.eventsourced.core._ | |
import org.eligosource.eventsourced.journal.leveldb.LeveldbJournalProps |
package example | |
import scala.concurrent._ | |
import scala.concurrent.duration._ | |
import akka.actor._ | |
import akka.pattern.ask | |
import akka.util.Timeout | |
object Parwrite extends App { |
case class Order(id: Int = -1, details: String, | |
creditCardNumber: String, | |
creditCardValidation: Validation = Validation.Pending) | |
sealed trait Validation | |
object Validation { | |
case object Pending extends Validation | |
case object Success extends Validation | |
case object Failure extends Validation | |
} |