Skip to content

Instantly share code, notes, and snippets.

View SebiBasti's full-sized avatar

Sebastian Remm SebiBasti

View GitHub Profile
@SebiBasti
SebiBasti / CloudImage.vue
Created October 28, 2025 13:35
Optimized CloudImage Component
<script setup lang="ts">
import { Cloudinary } from '@cloudinary/url-gen'
import { sharpen } from '@cloudinary/url-gen/actions/adjust'
import { dpr, format, quality } from '@cloudinary/url-gen/actions/delivery'
import { limitFit } from '@cloudinary/url-gen/actions/resize'
import { auto as fAuto } from '@cloudinary/url-gen/qualifiers/format'
import { auto as qAuto } from '@cloudinary/url-gen/qualifiers/quality'
import { AdvancedImage, lazyload } from '@cloudinary/vue'
import { useDebounce, useResizeObserver } from '@vueuse/core'
import { nextTick, onBeforeUnmount, onMounted, ref, watchEffect } from 'vue'
@SebiBasti
SebiBasti / Challenge3.cs
Created April 13, 2023 21:08
FactFinder Challenge
using System;
public class Class1 { // find a more descriptive class name
public static bool IsFormat(string str, string f) // rename f to format and rename to IsFormatValid
{
var allowedDict = new Dictionary<string, bool>() // use an Array instead of a Dictionary
{
{ "number",true},
{ "date",true},
{ "timespan",true}