Skip to content

Instantly share code, notes, and snippets.

class Rectangle {
width: number;
height: number;
constructor(width: number, height: number) {
this.width = width;
this.height = height;
}
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created March 13, 2025 10:50
fxsound v1.1.31 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-208106577-3430488093-340667708-1000</user>
<keys>
<key installerType="Msi" displayName="FxSound" displayVersion="1.1.31.0">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{686221C2-D1C8-4EED-A285-5006FEFCAFF4}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files\FxSound LLC\FxSound\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{686221C2-D1C8-4EED-A285-5006FEFCAFF4}]]></UninstallString>
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created March 13, 2025 10:50
Rimworld output log published using HugsLib
Log uploaded on Thursday, March 13, 2025, 11:50:03 AM
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)
Interaction Bubbles(Jaxe.Bubbles): Bubbles(3.1.0)
Mood 1000(manuelribeiro.mood1000): (no assemblies)
@hylkevds
hylkevds / STA Version 2 Implementation Plan.md
Created March 13, 2025 10:49
STA Version 2 Implementation Plan
const numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
function printAlternatingElements(arr: number[]) {
let left = 0;
let right = arr.length - 1;
while (left <= right) {
console.log(arr[left]);
if (left !== right) {
console.log(arr[right]);
@9qUmV4
9qUmV4 / Ashley’s Light Fader.yaml
Last active March 13, 2025 10:50 — forked from handcoding/Ashley’s Light Fader.yaml
This script for Home Assistant will fade a lamp over time with your choice of easing, including varieties of ease-in, ease-out, and ease-in-out.
blueprint:
name: Ashley’s Light Fader
domain: script
author: https://gist.github.com/handcoding
alias: Ashley’s Light Fader
description: >
Fades a lamp over time. If you have any questions or comments about this
script, feel free to tweet Ashley Bischoff at @FriendlyAshley. Released under
the Apache 2.0 license. (v2.0)
@DrLarck
DrLarck / main.rs
Created March 13, 2025 10:48
Appeler la méthode par défaut du Trait lors de la surcharge d'une méthode provenant d'un Trait
trait SomeTrait {
fn super_method(&self) {
println!("Hello world!");
}
}
struct SomeStruct;
impl SomeTrait for SomeStruct {}
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created March 13, 2025 10:48
Rimworld output log published using HugsLib
Log uploaded on Thursday, March 13, 2025, 7:48:23 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)

Create a program that implements a feature like a library. In a library objects were categorized as Journal, Book and Audiobook.

These 3 objects of the library object has 2 common properties in them which are Title and Publisher.

And also each of the objects has its own special properties with in them: Journal has AuthorNumber, Book has an NumberOfPages, AccessionNumber and ISBNumber and AudioBook has DurationInMinutes.

On your Program class inside the Main method, implement a code that you can add any objects of Book, Journal or AudioBook on list of library item.