Skip to content

Instantly share code, notes, and snippets.

import inspect
import logging
import re
# from https://github.com/baniuyao/Python-CLog/blob/master/CLog.py
class LogRecordWithStack(logging.LogRecord):
def __init__(self, *args, **kargs):
super(LogRecordWithStack, self).__init__(*args, **kargs)
self.chain = self.get_meta_data()
@deepgully
deepgully / BasicReq.cs
Created March 15, 2019 10:45 — forked from ruel/BasicReq.cs
A basic HTTP request class in C# that makes things a little bit easier.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Drawing;
namespace BasicReq
{