Skip to content

Instantly share code, notes, and snippets.

@smart-onion
smart-onion / main.py
Created December 7, 2025 17:36
django api
py
docker
@smart-onion
smart-onion / dockerfile
Created December 1, 2025 18:09
docker hw 6
docker hw6
@smart-onion
smart-onion / hw5
Created December 1, 2025 17:38
hw5
docker
@smart-onion
smart-onion / hw4
Created November 21, 2025 16:13
docker hw4
hw4
@smart-onion
smart-onion / hw3
Created November 12, 2025 13:01
docker_hw3
hw3
@smart-onion
smart-onion / docker
Created October 26, 2025 10:45
docker_hw2
hw2
@smart-onion
smart-onion / docker
Last active October 22, 2025 15:46
Docker HW1
Docker hw
@smart-onion
smart-onion / Program.cs
Created September 3, 2025 17:02
Auth Lesson
using System.Security.Claims;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
using MVCSTEP.Models;
var people = new List<Person>
{
new Person("tom@gmail.com", "12345"),
new Person("bob@gmail.com", "55555")
@smart-onion
smart-onion / Program.cs
Created August 20, 2025 08:53
ASP.NET HW5 Minimal API
using WebApplication1.Middlewares;
using WebApplication1.Model;
using WebApplication1.Services;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("upload/image", async (context) =>