Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / Install.txt
Created February 11, 2025 22:04
psservice v2.25 - Failed - Package Tests Results
2025-02-11 22:04:34,589 880 [DEBUG] - XmlConfiguration is now operational
2025-02-11 22:04:34,712 880 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:04:34,733 880 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:04:34,733 880 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:04:34,733 880 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 22:04:34,733 880 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:04:34,746 880 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 22:04:34,746 880 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:04:34,746 880 [DEBUG] - Adding new type 'RubyGe
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 22:04
Rimworld output log published using HugsLib
Log uploaded on Wednesday, February 12, 2025, 6:04:12 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Visual Exceptions(brrainz.visualexceptions)[mv:1.3.2.0]: CrossPromotion(1.1.2), VisualExceptions(1.3.2)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 22:03
pspasswd v1.24 - Failed - Package Tests Results
2025-02-11 22:03:33,925 5844 [DEBUG] - XmlConfiguration is now operational
2025-02-11 22:03:34,048 5844 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:03:34,048 5844 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:03:34,065 5844 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:03:34,065 5844 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 22:03:34,065 5844 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:03:34,081 5844 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 22:03:34,081 5844 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:03:34,081 5844 [DEBUG] - Adding new typ
@Ifihan
Ifihan / main.md
Created February 11, 2025 22:03
Remove All Occurrences of a Substring

Question

Approach

I start by using a while loop to check if the substring part exists in s. As long as part is present, I keep removing the first occurrence of it using s.replace(part, "", 1). This ensures that I only remove one instance at a time, starting from the left. I repeat this process until part no longer appears in s. Once all instances are removed, I return the modified string.

Implementation

class Solution:
 def removeOccurrences(self, s: str, part: str) -> str:
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 22:02
psloggedon v1.35 - Failed - Package Tests Results
2025-02-11 22:02:34,028 3388 [DEBUG] - XmlConfiguration is now operational
2025-02-11 22:02:34,154 3388 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:02:34,154 3388 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:02:34,154 3388 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:02:34,154 3388 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 22:02:34,172 3388 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:02:34,172 3388 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 22:02:34,172 3388 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:02:34,184 3388 [DEBUG] - Adding new typ
@Aborja-dev
Aborja-dev / RegisterForn.tsx
Created February 11, 2025 22:02
problema con proyecto de next
'use client'
import { zodResolver } from "@hookform/resolvers/zod"
import { User, Mail, Lock } from "lucide-react"
import { useForm, Controller } from "react-hook-form"
import { Button, ButtonBack } from "../../components/Button"
import Field from "../../components/Field"
import { registerSchema } from "./schema"
import { z } from "zod"
@Adam-R-A
Adam-R-A / Blend Utilization Report Version
Created February 11, 2025 22:02
To check for new updates
1.6.5
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 22:01
pslist v1.40 - Failed - Package Tests Results
2025-02-11 22:01:35,656 5268 [DEBUG] - XmlConfiguration is now operational
2025-02-11 22:01:35,777 5268 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:01:35,777 5268 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:01:35,795 5268 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:01:35,795 5268 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 22:01:35,795 5268 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:01:35,795 5268 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 22:01:35,811 5268 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:01:35,811 5268 [DEBUG] - Adding new typ
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 22:00
psgetsid v1.45 - Failed - Package Tests Results
2025-02-11 22:00:29,784 5000 [DEBUG] - XmlConfiguration is now operational
2025-02-11 22:00:29,907 5000 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:00:29,907 5000 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:00:29,907 5000 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:00:29,926 5000 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 22:00:29,926 5000 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 22:00:29,926 5000 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 22:00:29,926 5000 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 22:00:29,941 5000 [DEBUG] - Adding new typ

Certainly! Here's a detailed class-level Javadoc comment summarizing what the class is doing:

/**
 * The {@code IFFServices} class provides methods for managing and performing service calls 
 * to primary and secondary data sources with resilience and error handling.
 * <p>
 * This class operates in a fault-tolerant manner, attempting to make calls to the primary data source
 * first, and if it fails or takes too long, it will proceed to the secondary data source. The class is 
 * designed to switch between these sources dynamically based on certain conditions, such as the success