Skip to content

Instantly share code, notes, and snippets.

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 
@GVabal
GVabal / java-very-basics.txt
Last active February 11, 2025 22:01
java-very-basics.txt
# create .java file
touch HelloWorld.java
# compile .java file into .class file
javac *.java
# disassemble class file
javap *.class
# special file which contains meta-information about what is packaged in JAR file
META-INF/MANIFEST.MF Main-Class: HelloWorld
# package .class files to JAR: --create --manifest=<manifest_file> --verbose --file=<jar_name>
jar cmvf META-INF/MANIFEST.MF my-awesome-jar.jar HelloWorld.class
@mdotk
mdotk / code-editor-rules.md
Created February 11, 2025 22:00 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
n1=input('digite um numero:')
n2=input('digite um segundo número:')
s=int(n1)+int(n2)
print('a soma entre',n1,'e',n2,'é',s)
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 21:59
psfile v1.03 - Failed - Package Tests Results
2025-02-11 21:59:28,999 1888 [DEBUG] - XmlConfiguration is now operational
2025-02-11 21:59:29,183 1888 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 21:59:29,203 1888 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 21:59:29,203 1888 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 21:59:29,203 1888 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 21:59:29,217 1888 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 21:59:29,217 1888 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 21:59:29,217 1888 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 21:59:29,217 1888 [DEBUG] - Adding new typ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 21:59
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 4:59:36 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (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)
Allow Tool(UnlimitedHugs.AllowTool): AllowTool(av:3.6.0,fv:3.13.1)
Graphics Settings+(Telefonmast.GraphicsSettings)[mv:1.0.0]: GraphicSetter(1.0.0)
@ycmjason
ycmjason / Icon.tsx
Created February 11, 2025 21:59
expo-icon FontAwesome 5 / 6 type safe icon component
import type { createIconSet } from '@expo/vector-icons';
import Untyped_FontAwesome6 from '@expo/vector-icons/FontAwesome6';
import type { FA6Style } from '@expo/vector-icons/build/FontAwesome6';
import type { ComponentProps, ReactNode } from 'react';
type FA6Variant = keyof typeof FA6Style;
type IconComponent = ReturnType<typeof createIconSet<string, string>>;
const FontAwesome6: IconComponent = Untyped_FontAwesome6;
export const Icon = ({
@DavidBiesack
DavidBiesack / gist:92dd0a7d71aaeaa838cec1e902520082
Created February 11, 2025 21:58 — forked from lovemycodesnippets/gist:6f79757a5fa5f067f7a1d107df198978
Example: OpenAPI Overlay adds a license to an OpenAPI description:
overlay: 1.0.0
info:
title: Add MIT license
version: 1.0.0
actions:
- target: '$.info'
update:
license:
name: MIT
url: https://opensource.org/licenses/MIT