Skip to content

Instantly share code, notes, and snippets.

View jacobkimmel's full-sized avatar

Jacob Kimmel jacobkimmel

View GitHub Profile
@tobiaslins
tobiaslins / worker.js
Last active May 5, 2024 20:26
Notion Custom Domain using Cloudflare Workers + Splitbee Analytics
const MY_DOMAIN = "help.splitbee.io"
const START_PAGE = "https://www.notion.so/splitbee/Help-Center-bbf26e2b70574901b9c98e5d11e449de"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",
@halochou
halochou / conv_gru.py
Last active April 6, 2023 07:46
A simple implementation of Convolutional GRU cell in Pytorch
# Inspired by Alfredo Canziani (http://tinyurl.com/CortexNet/)
import torch
import torch.nn as nn
import torch.nn.functional as f
import torch.nn.init as init
from torch.autograd import Variable
class ConvGRUCell(nn.Module):
"""