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
import sys | |
import jiphy # pip install | |
from os import path | |
from types import ModuleType | |
class JsFinder(object): | |
def find_module(self, name, m_path): | |
name += '.js' | |
if m_path is not None: |
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
/* | |
DDL: | |
CREATE TABLE `bindata` ( | |
`id` INT NOT NULL AUTO_INCREMENT, | |
`data` BLOB, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | |
*/ | |
const fs = require("fs"); |
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 el = document.querySelector(".item"); | |
let isResizing = false; | |
el.addEventListener("mousedown", mousedown); | |
function mousedown(e) { | |
window.addEventListener("mousemove", mousemove); | |
window.addEventListener("mouseup", mouseup); |