Skip to content

Instantly share code, notes, and snippets.

View andrexx's full-sized avatar

Andrii Chumak andrexx

View GitHub Profile
@neon-sunset
neon-sunset / Cargo.toml
Last active May 9, 2025 08:58
Наївне порівняння вартості асинхронних примітивів поміж C#, Go та Elixir
[package]
name = "tasks"
version = "0.1.0"
edition = "2021"
[dependencies]
futures = "0.3.30"
tokio = { version = "1.40.0", features = ["full"] }
@timheuer
timheuer / project.csproj
Created February 16, 2024 05:01
set nbgv before
<Target Name="SetContainerTagTarget" BeforeTargets="CoreCompile">
<PropertyGroup>
<ContainerImageTag>$(GitCommitId)</ContainerImageTag>
</PropertyGroup>
</Target>
@kamilogorek
kamilogorek / _screenshot.md
Last active May 29, 2025 21:24
Clutter-free VS Code Setup
image
@davepcallan
davepcallan / StackOverflowCloneInsertData.sql
Created August 16, 2023 13:22
Create schema and insert dummy data into Stack Overflow clone
-- Create StackOverflow-like Database
CREATE DATABASE StackOverflowClone
GO
USE StackOverflowClone
GO
-- Users table
@bradtraversy
bradtraversy / terminal-commands.md
Last active June 16, 2025 21:54
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@davidfowl
davidfowl / .NET6Migration.md
Last active April 11, 2025 11:12
.NET 6 ASP.NET Core Migration
@NickCraver
NickCraver / Microsoft.PowerShell_profile.ps1
Last active March 5, 2025 22:33
Craver's oh-my-posh profile
# This goes in your Microsoft.PowerShell_profile.ps1 (can find the path via $PROFILE in your prompt)
Import-Module -Name posh-git,oh-my-posh,Terminal-Icons
Set-PoshPrompt -Theme craver
using System;
using System.Threading.Tasks;
namespace System.Collections.Concurrent
{
public static class ConcurrentDictionaryExtensions
{
/// <summary>
/// Provides an alternative to <see cref="ConcurrentDictionary{TKey, TValue}.GetOrAdd(TKey, Func{TKey, TValue})"/> that disposes values that implement <see cref="IDisposable"/>.
/// </summary>
/// <summary>
/// A hash combiner that is implemented with the Fowler/Noll/Vo algorithm (FNV-1a). This is a mutable struct for performance reasons.
/// Taken from https://gist.github.com/StephenCleary/4f6568e5ab5bee7845943fdaef8426d2
/// </summary>
public struct FnvHash
{
/// <summary>
/// The starting point of the FNV hash.
/// </summary>
public const ulong Offset = 14695981039346656037;
@RealDotNetDave
RealDotNetDave / .editorConfig
Last active May 1, 2025 15:51
.editorConfig by David (dotNetDave) McCarter - dotNetTips.com
####################################################################################################
# dotNetDave's (David McCarter) Editor Config - dotNetTips.com
# Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5
# Updated May 1, 2025
# Code performance book is available at: https://bit.ly/DotNetCodePerf4
# Coding standards book is available at: https://bit.ly/CodingStandards8
####################################################################################################
root = true