

[package] | |
name = "tasks" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
futures = "0.3.30" | |
tokio = { version = "1.40.0", features = ["full"] } |
<Target Name="SetContainerTagTarget" BeforeTargets="CoreCompile"> | |
<PropertyGroup> | |
<ContainerImageTag>$(GitCommitId)</ContainerImageTag> | |
</PropertyGroup> | |
</Target> |
-- Create StackOverflow-like Database | |
CREATE DATABASE StackOverflowClone | |
GO | |
USE StackOverflowClone | |
GO | |
-- Users table |
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 commandDown Arrow
: Will show your next commandTab
: Will auto-complete your commandCtrl + L
: Will clear the screen# 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; |
#################################################################################################### | |
# 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 |