Skip to content

Instantly share code, notes, and snippets.

@emschwartz
emschwartz / README.md
Last active February 16, 2026 15:29
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.

@redmcg
redmcg / kubedf
Last active September 5, 2025 15:25
Bash script to show k8s PVC usage
#!/usr/bin/env bash
NODESAPI=/api/v1/nodes
function getNodes() {
kubectl get --raw $NODESAPI | jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\
@simonnanty
simonnanty / minimalRNN.py
Last active May 5, 2018 09:08
Implementation of Minimal RNN [M. Chen, 2017]
import tensorflow as tf
from tensorflow.python.ops import math_ops, init_ops
from tensorflow.python.ops.rnn_cell_impl import RNNCell, _linear
class MinimalRNNCell(RNNCell):
"""Minimal RNN where Phi is a multi-layer perceptron.
This implementation is based on:
Minmin Chen (2017)
"MinimalRNN: Toward More Interpretable and Trainable Recurrent Neural Networks"

C#编码规范

概述

规范制定原则

  • 方便代码的交流和维护。
  • 不影响编码的效率,不与大众习惯冲突。
  • 使代码更美观、阅读更方便。
  • 使代码的逻辑更清晰、更易于理解。