Skip to content

Instantly share code, notes, and snippets.

View FindZach's full-sized avatar
🎯
Getting After It

Zach FindZach

🎯
Getting After It
View GitHub Profile
@FindZach
FindZach / file.java
Created September 25, 2022 08:24
tester
@GetMapping("/tutorial/{slug}")
public ResponseEntity<TutorialDTO> getTutorialBySlug(@PathVariable String slug) {
log.info("Slug read: " + slug);
Optional<Tutorial> possibleTutorial = Optional.ofNullable(tutorialService.getTutorialBySlug(slug));
if (possibleTutorial.isPresent()) {
log.info("Found " + possibleTutorial.get().getTitle());
} else {
log.info("Unable to find tutorial by the slug");
@FindZach
FindZach / html
Created June 20, 2023 22:48
navbar.component.html
<!-- Section: Design Block -->
<section class="" [ngClass]="colorScheme?.background" class="">
<nav
class="flex-no-wrap relative flex w-full items-center justify-between py-2 shadow-md shadow-black/5 dark:shadow-black/10 lg:flex-wrap lg:justify-start lg:py-2.5"
data-te-navbar-ref>
<div class="flex w-full flex-wrap items-center justify-between px-3">
<button
[ngClass]="colorScheme?.text"
class="block border-0 bg-transparent px-2 hover:no-underline hover:shadow-none focus:no-underline focus:shadow-none focus:outline-none focus:ring-0 lg:hidden"