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 | |
curl https://api.openai.com/v1/images/generations \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: Bearer $OPENAI_API_KEY" \ | |
-d '{ | |
"prompt": "a photo of a happy corgi puppy sitting and facing forward, studio light, longshot", | |
"n": 1, | |
"size": "1024x1024" | |
}' | |
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 Remove YouTube Clarification | |
// @namespace http://tampermonkey.net/ | |
// @run-at document-idle | |
// @version 0.1 | |
// @description Remove YouTube's (annoying) clarification box | |
// @author Grant Forsythe | |
// @match https://www.youtube.com/watch?v=* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant 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
def gcd(x: int, y: int ) -> int: | |
""" Find the greatest common divisor between two integers """ | |
return x if y == 0 else gcd(y, x%y) | |