Skip to content

Instantly share code, notes, and snippets.

View MoienTajik's full-sized avatar
👾

Moien Tajik MoienTajik

👾
View GitHub Profile
@davidfowl
davidfowl / PureDI.cs
Last active March 16, 2023 09:26
DI under the hood. This is what DI containers automate for you
using System;
using System.Threading;
namespace PureDI
{
class Program
{
static void Main(string[] args)
{
// Create the singletons once
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>
@SamadiPour
SamadiPour / console_easy_excute.js
Last active September 29, 2025 08:30
Snappfood Spent money
// Copy paste this line in your browser console to run the script and get the result
fetch('https://gist.githubusercontent.com/SamadiPour/a18b1e186deac76c4a95fa108d02a6ea/raw/snappfood_enhanced.js').then(r => r.text()).then(code => eval(code));