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
// Draws concentric ring progress bars for Scriptable widgets | |
// | |
// Use by calling ProgressCircle.concentricImage() | |
// Parameters: | |
// ringsConfig (arr) An array of plain objects with these values: | |
// offset (int) The ring number starting from the outer edge. First is zero. | |
// value (int) Percentage from 0 to 100 | |
// bgcolor (str) Color for the background ring. This ring is always a circle. | |
// Set to falsy to omit the background ring. | |
// color (str) Color for the foreground ring, whose length will obey the value. |
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> | |
<head> | |
<title>iPadOS 18 Safari Bug reproduction page</title> | |
</head><body> | |
<h2>Bug reproduction controls</h2> | |
<button id="test1">Open new tab</button> | |
<p>Latest document keyboard event keycode was <span id="eventid">-</span> at <span id="eventtime">-</span></p> |
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 | |
function curl_quotes($str) { | |
// Adapted from: https://github.com/kellym/smartquotes.js/blob/master/lib/replacements.js | |
// Single quotes | |
$sx = "'"; // straight (\u0027) | |
$s1 = "‘"; // Opening (\u2018) | |
$s2 = "’"; // Closing (\u2019) |
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
import os, sys, zipfile, re, requests, json, tempfile, time | |
from pprint import pprint | |
class Chapter: | |
url = None | |
title = None | |
def __init__(self, tup): self.url, self.title = tup | |
def getImageListForChapterWithUrl(url): |
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 CenterHandler(){ | |
this.$img = jQuery("#current_page"); | |
this.$w = jQuery(window); | |
this.$w.on('resize orientationchange', this.center.bind(this)); | |
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; | |
this.observer = new MutationObserver(function(mutations) { | |
mutations.forEach(function(mutation) { |