Skip to content

Instantly share code, notes, and snippets.

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.

@Anyboom
Anyboom / analysis.md
Last active March 13, 2025 12:08
Анализ бэкенд проекта

FormsController

  1. Index Выводит все формы.
  2. New Создает новую форму. Модель опциональная.
  3. Destroy Удаляет форму по ИД.
  4. Get Получает форму по ИД.
https://docs.google.com/forms/d/e/1FAIpQLSde9nKZCAYUG_hpJmAHMHlBnNQZ5BHxmq4K0sZ3RZ1IsIrw3g/viewform?usp=pp_url&entry.890894262=19%20-%2025&entry.1936179470=%C4%90%C3%A3%20nghe%20qua&entry.1603202310=%C4%90%E1%BA%A7y%20%C4%91%E1%BB%A7%20th%C3%B4ng%20tin&entry.1603202310=Thi%E1%BA%BFt%20k%E1%BA%BF%20b%E1%BA%AFt%20m%E1%BA%AFt&entry.1603202310=H%C3%ACnh%20%E1%BA%A3nh%20b%E1%BA%AFt%20m%E1%BA%AFt&entry.1603202310=Nhi%E1%BB%81u%20ho%E1%BA%A1t%20%C4%91%E1%BB%99ng%2C%20ch%C6%B0%C6%A1ng%20tr%C3%ACnh%20th%C3%BA%20v%E1%BB%8B&entry.1302000598=Kotex&entry.1302000598=Diana&entry.1302000598=UUcare&entry.1166028313=Instagram&entry.1166028313=S%E1%BB%B1%20gi%E1%BB%9Bi%20thi%E1%BB%87u%20c%E1%BB%A7a%20ng%C6%B0%E1%BB%9Di%20th%C3%A2n%2C%20b%E1%BA%A1n%20b%C3%A8&entry.1231286201=%C4%90%C3%A3%20bi%E1%BA%BFt&entry.2086564180=%E1%BA%A4n%20t%C6%B0%E1%BB%A3ng&entry.1087618374=C%C3%B3&entry.681200782=C%C3%B3&entry.1567845541=R%E1%BA%A5t%20h%E1%BA%A5p%20d%E1%BA%ABn&entry.1003509405=Nguy%E1%BB%85n%20Thi%E1%BB%87n%20V%C3%A2n%20Anh&pageHistor
@nuttxpr
nuttxpr / ci-risc-v-02.log
Created March 13, 2025 10:47
[risc-v-02] CI Log for nuttx @ e0b02314e6e28b10ee84837bfe62b1e48700f85a / nuttx-apps @ 3b03636e95f6202b512d8af32629da4c0dc4af2c
Script started on 2025-03-13 17:54:20+08:00 [COMMAND="/home/luppy/nuttx-release/run-job.sh risc-v-02 3" TERM="tmux-256color" TTY="/dev/pts/9" COLUMNS="100" LINES="10"]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh risc-v-02 3
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=risc-v-02
+ [[ risc-v-02 == '' ]]
+ instance=3
+ set
+ grep TMUX
+ true
+ neofetch
@pynappo
pynappo / make-clips.sh
Last active March 13, 2025 10:49
Reencoding mpvs to upload as discord clips
#!/usr/bin/env bash
# A script that reencodes mkvs to a target filetype for uploading to discord
current_datetime=$(date +%Y-%m-%d_%H-%M-%S)
output_dir="discord-sized/$current_datetime"
if [[ ! -d "$output_dir" ]]; then
mkdir -p "$output_dir"
fi
reencoded_files=()
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created March 13, 2025 10:46
ClickUp-Official v3.5.87 - 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="Custom" displayName="ClickUp 3.5.87" displayVersion="3.5.87">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\c74c0073-61c4-5f5c-aa1c-6722d538bc46</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\vagrant\AppData\Local\Programs\desktop\Uninstall ClickUp.exe" /currentuser /S]]></UninstallString>
@xlplugins
xlplugins / gist:2393a90c560255bfaa3e91b8a9f847ca
Last active March 13, 2025 13:17
Funnelkit Checkout: Display Shipping Method Placeholder Message when Hide shipping costs until an address is entered is on
class WFACP_Display_Shipping_Method_Placeholder {
public function __construct() {
add_filter('wfacp_display_shipping_placeholder_message', array($this, 'action'));
}
public function action($status) {
// Check if WooCommerce is active and initialized
if (!function_exists('WC') || !WC()->shipping()) {
return $status;
}
@send0moka
send0moka / 2dconv_calc.ipynb
Created March 13, 2025 10:44
2dconv_calc.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created March 13, 2025 10:43
poster-font v1.6.0 - 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="InnoSetup" displayName="Poster Font version 1.6" displayVersion="1.6">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Poster Font_is1</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files (x86)\Poster Font\]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files (x86)\Poster Font\unins000.exe" /SILENT]]></UninstallString>
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created March 13, 2025 10:43
Rimworld output log published using HugsLib
Log uploaded on Thursday, March 13, 2025, 3:43:02 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)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0MultiplayerAPI(av:0.3.0,fv:0.3.0), 0PrepatcherAPI(1.1.1), ExplosiveTrailsEffect(1.0.7140.31563), GraphicCustomization(1.0.0), HeavyWeapons(1.0.0), KCSG(av:1.1.2,fv:25.2.18), MVCF(2.0.0.1), NoCamShakeExplosions(1.0.0), OPToxic(1.0.0), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), RecipeInheritance(1.0.1), RRO(1.0.0), SmokingGun(1.0.0), VanillaStorytellersExpanded(1.0.0), VanillaWeaponsExpandedLaser(0.0.0), VFECore(av:1.1.7,fv:1.1.9), VWEMakeshift(1.0.0)
Vehicle Framework