Skip to content

Instantly share code, notes, and snippets.

@raymondctc
raymondctc / batch_clickup.mjs
Created February 25, 2022 07:28
Batch update ClickUp tasks
import fetch from "node-fetch";
const tasks = {
"tasks": {}
}
const TOKEN = ""
const excludedIndex = [0, 1, 4, 5, 6, 7, 8, 9, 10, 23, 24]
@stephenroller
stephenroller / mixout.py
Last active February 10, 2023 23:49
Example of mixout on generic modules.
#!/usr/bin/env python3
"""
Example of a generic Mixout implementation. (Lee et al., 2019).
https://arxiv.org/abs/1909.11299
Implementation by Stephen Roller (https://stephenroller.com).
Updated 2020-02-10 to include 1/(1 - p) correction term. Thanks to
Cheolhyoung Lee for making this correction.
@pbojinov
pbojinov / README.md
Last active August 23, 2025 10:48
Two way iframe communication- Check out working example here: http://pbojinov.github.io/iframe-communication/

Two way iframe communication

The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.

Parent

Send messages to iframe using iframeEl.contentWindow.postMessage Recieve messages using window.addEventListener('message')

iframe