This file contains hidden or 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
function makeKeyTester( | |
listeners = ['keydown'], | |
handler = (l, e) => { e.preventDefault(); console.log(l,e); return false; } | |
) { | |
if (!Array.isArray(listeners)) { | |
throw new TypeError('listeners must be an Array'); | |
} | |
if (!typeof handler === "function") { | |
throw new TypeError('handler must be an Function'); | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>ONBEFORE UN LOADDDD</title> | |
<style> | |
:root { | |
--border-radius: 4px; |
This file contains hidden or 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
# ... | |
# export ZSH="$HOME/.oh-my-zsh" | |
# ZSH_THEME="robbyrussell" | |
# ... | |
# source $ZSH/oh-my-zsh.sh | |
# ... | |
source ~/scripts/repostatus.sh; | |
colmrepostatus() { |
This file contains hidden or 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
find . -name ".py" | while read -r file; do | |
sed -i .bak '/^#/d' "$file"; | |
sed -i '' "1s|^|# ${file}\n|" "$file"; | |
done; | |
find . -name ".py" -exec cat {} + | pbcopy; | |
find . -name "*.bak" -type f -delete |
This file contains hidden or 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
(function FixColmeiaChatFactory() { | |
// Will execute the fix, at the end of this script, | |
// Will assign an object with the props and the methods: window.FixColmeiaChat, | |
// Will return the object as well. | |
var props = { | |
// config max attempts of trying to find the <colmeia-chat> element | |
retryTimeout: 600, | |
retryAttempts: 6, | |
// only for debugging, if necessary |
This file contains hidden or 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 commonStyles = "display: block; position: fixed; z-index: 9999999; transition: opacity 100ms ease; left 100ms ease; top: 100ms ease; right: 100ms ease; bottom: 100ms ease; width: 100ms ease; height: 100ms ease;" | |
const jequitiSettings = { | |
min: 5000, | |
max: 30000, | |
duration: 500, | |
waitLoad: 1000, | |
waitRemove: 200, | |
tid: null, | |
src: "https://fraguru.com/mdimg/dizajneri/o.1954.jpg", | |
id: "jequiti-overlay", |
This file contains hidden or 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
async function listMostRecentlyActiveRepos(org, project, maxCommits=15) { | |
const base = `https://dev.azure.com/${org}/${project}/_apis/git/repositories?api-version=7.1-preview.1`; | |
const repos = await fetch(base).then(r => r.json()); | |
const activeRepos = []; | |
const data = [] | |
for (const repo of repos.value) { | |
const commitsUrl = `https://dev.azure.com/${org}/${project}/_apis/git/repositories/${repo.id}/commits?$top=${maxCommits}&api-version=7.1-preview.1`; |
OlderNewer