Skip to content

Instantly share code, notes, and snippets.

View Lip-Z's full-sized avatar
🎯
Focusing

lipZ Lip-Z

🎯
Focusing
View GitHub Profile
@jianyun8023
jianyun8023 / weread.user.js
Last active December 20, 2025 07:58
weread download,直接生成epub。仅用于技术研究。目前已失效
// ==UserScript==
// @name 微信读书下载(已失效)
// @namespace http://tampermonkey.net/
// @version 0.5.2
// @description 下载微信读书的书籍资源
// @author tang
// @match https://weread.qq.com/web/reader/*
// @grant unsafeWindow
// @grant GM_setValue
// @grant GM_getValue
@hazdzz
hazdzz / casualconv.py
Created May 2, 2021 05:31
Dilated Causal Convolution
import torch
import torch.nn as nn
import torch.nn.functional as F
class CausalConv1d(nn.Conv1d):
def __init__(self, in_channels, out_channels, kernel_size, stride=1, enable_padding=False, dilation=1, groups=1, bias=True):
if enable_padding == True:
self.__padding = (kernel_size - 1) * dilation
else:
self.__padding = 0