Skip to content

Instantly share code, notes, and snippets.

@0x4248
0x4248 / opacity.js
Created April 25, 2022 18:42
JS opacity animator
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function opacity_to_100(id){
var opacity = 0
for (let i = 0; i < 25; i++) {
document.getElementById(id).style.opacity = opacity+"%"
opacity = opacity + 4
await sleep(10)
}
@0x4248
0x4248 / proactive_installer.py
Created April 25, 2022 18:33
This will install all the proavtive developmet repos
import urllib.request
import json
import os
def get_repositories(org):
url = 'https://api.github.com/orgs/' + org + '/repos'
request = urllib.request.Request(url)
response = urllib.request.urlopen(request)
data = json.loads(response.read().decode())
return [repo['name'] for repo in data]