Skip to content

Instantly share code, notes, and snippets.


ipid ipid

  • Beijing University of Posts and Communications
  • Beijing, China
  • Twitter @ipid__
View GitHub Profile
vxgmichel /
Last active Dec 1, 2022
High-level UDP endpoints for asyncio
"""Provide high-level UDP endpoints for asyncio.
async def main():
# Create a local UDP enpoint
local = await open_local_endpoint('localhost', 8888)
# Create a remote UDP enpoint, pointing to the first one
52cik /
Last active Sep 13, 2022
npm 淘宝镜像配置
npm set registry # 注册模块镜像
npm set disturl # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set sass_binary_site # node-sass 二进制包镜像
npm set electron_mirror # electron 二进制包镜像
npm set ELECTRON_MIRROR # electron 二进制包镜像
npm set puppeteer_download_host # puppeteer 二进制包镜像
npm set chromedriver_cdnurl # chromedriver 二进制包镜像
npm set operadriver_cdnurl # operadriver 二进制包镜像
p2004a / defer.cpp
Last active May 30, 2022
Simple defer macro for c++
View defer.cpp
// SPDX-FileCopyrightText: 2015 Marek Rusinowski
// SPDX-License-Identifier: MIT
#include <memory>
#include <cstdio>
template<typename F>
class defer_finalizer {
F f;
bool moved;
jbroadway /
Last active Sep 8, 2022
Slimdown - A simple regex-based Markdown parser.
View regex-japanese.txt
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna!
Regex for matching Hirgana or Katakana
Regex for matching Non-Hirgana or Non-Katakana
Regex for matching Hirgana or Katakana or basic punctuation (、。’)