Skip to content

Instantly share code, notes, and snippets.

"book7": {
"dropdownName": "Full Page Mode 1",
"siteTitle": { "en": "Full Page Mode 1", "tr": "Tam Ekran 1" },
"chapters": [
{ "titles": { "en": "Introduction", "tr": "Giriş" },
"images": ["en/fullpagemode-1/1.png" , "en/fullpagemode-1/2.png" ] },
{ "titles": { "en": "Content", "tr": "İçerik" },
"images": [
"en/fullpagemode-1/3.png",
<div class="galleryOverlay hidden">
<div class="closeGallery">
✖️
</div>
<p class="back opacity">◄</p>
<div class="sliderImages">
<img src="" class="coverPage" alt="Book Cover">
<p class="paragraph"></p>
import torch, os
from diffusers import StableDiffusionPipeline
from moviepy.editor import ImageSequenceClip
pipe = StableDiffusionPipeline.from_pretrained(
"runwayml/stable-diffusion-v1-5",
torch_dtype=torch.float16,
).to("cuda")
for i in {1..49}; do [ -f "$i.jpeg" ] &&
echo "Processing $i.jpeg..." && tesseract "$i.jpeg" "$i" 2>/dev/null && echo "=== $i.txt ==="
&& cat "$i.txt" && echo -e "\n";
done
🔹 1. C# / .NET Technical Questions
What is the difference between .NET Framework and .NET Core? When would you choose one over the other?
How do you implement dependency injection in .NET Core? Why is it useful?
Explain the difference between Task, Thread, and async/await in C#. Provide a small code example.
How would you design a REST API in .NET Core for high availability?
<CascadingAuthenticationState>
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<CascadingValue Value="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</CascadingValue>
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
using Azure.Communication.Email;
using Azure.Storage.Blobs;
using Invio.Extensions.Authentication.JwtBearer;
using Markdig;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
\documentclass[10pt, letterpaper]{article}
% Packages:
\usepackage[
ignoreheadfoot, % set margins without considering header and footer
top=2 cm, % seperation between body and page edge from the top
bottom=2 cm, % seperation between body and page edge from the bottom
left=2 cm, % seperation between body and page edge from the left
right=2 cm, % seperation between body and page edge from the right
footskip=1.0 cm, % seperation between body and footer
using DynamicData;
using DynamicData.Binding;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Programming.Team.AI.Core;
using Programming.Team.Business.Core;
using Programming.Team.Core;
using ReactiveUI;
using System;
<div class="panels">
@{
int index = 0;
}
<MudExpansionPanels MultiExpansion="true" >
@foreach (var position in ViewModel.Entities)
{
@if (index == 0)
{
<MudCard Class="thin-panel">