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
<?php | |
$req_url = "https://api.openai.com/v1/engines/audio-transcribe-801/transcriptions"; | |
$openai_key = getenv("OPENAI_API_KEY"); | |
$file_path = "test.mp3"; | |
$file = file_get_contents($file_path); | |
$form_fields = array( | |
'file' => array($file_path, $file, 'audio/mpeg') | |
); | |
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
<style> | |
@media (prefers-color-scheme: dark) { | |
body { | |
filter: invert(100%) hue-rotate(.5turn); | |
background-color: rgb(199, 206, 204) !important; | |
} | |
img:not(.logo__img), | |
.emoji, | |
iframe{ |
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
<?php | |
// Replace EMAIL/API_KEY/ZONE_ID with your details. | |
// Zone ID is on the dashboard for the domain in the bottom right. | |
// Api keys are generated from the account settings. You must give cache purge permissions | |
// Place this script on your webserver and point a Github Webhook at it, and you'll clear | |
// the Cloudflare cache every time you do a push to GH. | |
try { | |
$head = []; | |
$head[] = 'Content-Type: application/json'; |
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
// Wach und Wichtig Podcast Widget | |
// | |
// Copyright (C) 2020 by marco79 <[email protected]> | |
// | |
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
// IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
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
body { | |
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", | |
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", | |
"Droid Sans", "Helvetica Neue", sans-serif; | |
} |
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
/** | |
* Two column <dl> with two lines of CSS! Thank you Grid Layout! | |
* Limitation: Breaks if we have multiple consecutive <dt>s or <dd>s | |
*/ | |
dl { | |
display: grid; | |
grid-template: auto / 10em 1fr; | |
} |
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
/** | |
* Emulating caret-color in WebKit/Blink | |
* Warning: NON-STANDARD. Your text will be shown with the caret color in Firefox, despite the @supports. | |
*/ | |
@keyframes rainbow { | |
9% { color: yellow } | |
27% { color: orange } | |
45% { color: lime } | |
63% { color: aqua } |
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin frankly_trans( | |
$property: all, | |
$time: .3s, | |
$ease: out | |
) { |
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
/* Pounding heart animation */ | |
@keyframes pound { | |
0% { opacity: 0;} | |
20% { opacity: 0.2 } | |
85% { opacity: 0;} | |
100% { transform: scale(2); opacity: 0 } | |
} | |
.heart { |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
$modules: () !default; | |
@mixin exports($name) { | |
@if (not index($modules, $name)) { | |
$modules: append($modules, $name); | |
@content; |
NewerOlder