Skip to content

Instantly share code, notes, and snippets.

View lonegunmanb's full-sized avatar
💭
五行缺钱

lonegunmanb

💭
五行缺钱
  • Microsoft
View GitHub Profile
@lonegunmanb
lonegunmanb / README.md
Created February 9, 2026 10:38 — forked from emschwartz/README.md
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@lonegunmanb
lonegunmanb / Stack.cs
Created January 17, 2020 02:31 — forked from mikhailshilkov/Stack.cs
Mock-based unit tests examples in C#
class MyStack : Stack
{
public MyStack()
{
var group = new SecurityGroup("web-secgrp", new SecurityGroupArgs
{
Ingress =
{
new SecurityGroupIngressArgs { Protocol = "tcp", FromPort = 22, ToPort = 22, CidrBlocks = {"0.0.0.0/0" } },
new SecurityGroupIngressArgs { Protocol = "tcp", FromPort = 80, ToPort = 80, CidrBlocks = {"0.0.0.0/0" } }
@lonegunmanb
lonegunmanb / upgradablelock.go
Created April 2, 2019 05:40 — forked from bnyeggen/upgradablelock.go
Upgradable read -> write locks in Go
package main
import (
"fmt"
"runtime"
"sync"
)
type UpgradableLock struct {
uglMutex sync.RWMutex