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
<div id="app"> | |
<div class="canvas-container" ref="canvasContainer"> | |
<canvas ref="canvas" @mousedown="startDrag" @mousemove="drag" @mouseup="endDrag" @mouseleave="endDrag" @touchstart="handleTouchStart" @touchmove="handleTouchMove" @touchend="handleTouchEnd" @wheel="handleWheel"> | |
</canvas> | |
<div class="controls"> | |
<label class="button" for="file-upload"> | |
Import Image | |
</label> | |
<input id="file-upload" type="file" accept="image/*" @change="importImage"> |
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
#!/usr/bin/env bash | |
# Small shell script to more easily automatically download and transcribe live stream VODs. | |
# This uses YT-DLP, ffmpeg and the CPP version of Whisper: https://github.com/ggerganov/whisper.cpp | |
# Use `./transcribe-vod help` to print help info. | |
# MIT License | |
# Copyright (c) 2022 Daniils Petrovs |
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
/** | |
* @author mrdoob / http://mrdoob.com/ | |
*/ | |
function WebAudio( context ) { | |
if ( context === undefined ) { | |
context = WebAudio.context; |
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
if (window.location.host.indexOf("hilton.com") === -1) { | |
alert("This script only works on hilton.com!"); | |
} else { | |
document.designMode = "on"; | |
const borderStyle = "4px dotted #fdb714"; | |
const links = document.querySelectorAll('a'); | |
for (var i = 0; i < links.length; i++) links[i].onclick = e => e.preventDefault(); |
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
javascript:(() => document.querySelector("video").requestPictureInPicture())() |
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
/* Author - Lewis Shaw [lewisshaw.me], Use: localFontChecker('font name') // returns true || false */ | |
'use strict';var localFontChecker=function(a){if(!a)return!1;var b=document.createElement('span');b.innerText='hello',b.style.fontSize='30px';var c=function(){return document.querySelector('body').innerHTML+='<div id="localFontChecker">'+b.outerHTML+'</div>'},d=function(){return document.querySelector('#localFontChecker span').offsetWidth},e=function(){return document.getElementById('localFontChecker').remove()};c();var f=d();e(),b.style.fontFamily=a,c();var g=d();return e(),f!=g}; |
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
// ==UserScript== | |
// @name /r/ProgressPics Flair Search Links Fix | |
// @namespace https://stutterbox.co.uk/ | |
// @version 0.1 | |
// @description A quick, temporary fix for those unable to get results from the Flair Search links in the sidebar. | |
// @author iRuisu | |
// @include https://*.reddit.com/r/progresspics/* | |
// @include http://*.reddit.com/r/progresspics/* | |
// @grant none | |
// ==/UserScript== |