This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Notebook Control-Run | |
// @description Make Ctrl+Enter run the current notebook cell (without jumping to the next one) in Synapse and Azure ML | |
// @downloadURL https://gist.github.com/emlyn/0dccc7f1093e1c64758745e73c4befa4/raw/notebook_control.js | |
// @updateURL https://gist.github.com/emlyn/0dccc7f1093e1c64758745e73c4befa4/raw/notebook_control.js | |
// @namespace https://gist.github.com/emlyn | |
// @version 0.4 | |
// @author Emlyn Corrin | |
// @match https://web.azuresynapse.net/* | |
// @match https://ml.azure.com/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const decodePart = async function(data) { | |
const ds = new DecompressionStream("gzip"); | |
const resp = await fetch(`data:application/octet-stream;base64,${data}`); | |
const blob = await resp.blob(); | |
return new Response(blob.stream().pipeThrough(ds)).text(); | |
} | |
const decodeLine = async function(line) { | |
const GzipCompressionMagicHeader = 'H4sI'; | |
for (const part of line.split(',')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Exatrct all embedded images from a Word document in their full resolution. | |
# In Word: File, Save As, choose XML format | |
# Then run the resulting Word XML file through this script. | |
import sys | |
import base64 | |
from xml.dom.minidom import parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Don't F With Paste | |
// @description Stop idiots who think they're clever | |
// @downloadURL https://gist.github.com/emlyn/e8a626ad794d36eb0856655c32bcf955/raw/dontfwithpaste.user.js | |
// @updateURL https://gist.github.com/emlyn/e8a626ad794d36eb0856655c32bcf955/raw/dontfwithpaste.user.js | |
// @namespace https://gist.github.com/emlyn | |
// @version 0.2 | |
// @author Emlyn Corrin | |
// @match http*://*/* | |
// @grant none |
OlderNewer