This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /**************************************************************************************** | |
| * Include files | |
| ****************************************************************************************/ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| /**************************************************************************************** | |
| * Function prototypes | |
| ****************************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "spec": { | |
| "template": { | |
| "spec": { | |
| "initContainers": [{ | |
| "name": "sysctl", | |
| "image": "alpine:3.10", | |
| "securityContext": { | |
| "privileged": true | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try: | |
| from django.utils.deprecation import MiddlewareMixin | |
| except ImportError: | |
| MiddlewareMixin = object | |
| class ForceDefaultLanguageMiddleware(MiddlewareMixin): | |
| """ | |
| Ignore Accept-Language HTTP headers | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 不兼容 | |
| set nocompatible | |
| " 显示行号 | |
| set number | |
| " 不发出错误滴滴声 | |
| set noerrorbells |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| import numpy as np | |
| from PIL import Image | |
| # 得到需要裁剪边框的距离 | |
| def remove_image_rim(np_img, boundary=0.8): | |
| _np_img = np_img | |
| h, w, c = np_img.shape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import shutil | |
| import tempfile | |
| from datetime import datetime, timedelta | |
| import jieba | |
| import pandas as pd | |
| from django.conf import settings | |
| from django.core.management.base import BaseCommand | |
| from sklearn.feature_extraction.text import CountVectorizer | |
| from sklearn.feature_extraction.text import TfidfTransformer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| from datetime import datetime, timedelta | |
| from django.conf import settings | |
| from django.core.management.base import BaseCommand | |
| from apps.articles.models import Article | |
| idf_path = getattr(settings, "IDF_PATH", None) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pprint import pprint | |
| words = {'Bakkt': 2, 'Telegram': 1, 'Dfinity': 2, '大公司': 5, 'EOS': 2, 'BTC': 7, '开发者': 4, '联盟链': 1, '期货合约': 1, '投资': 3, 'ETH': 2, '安全': 1, '矿业': 3, '交易所': 1, '政策': 1, '公链': 1, '分叉': 1} | |
| # sorted with value | |
| sorted_words = sorted(words.items(), key=lambda x: x[1], reverse=True) | |
| pprint(sorted_words, indent=2) |
NewerOlder