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
// Hello! I've move the code to a proper GitHub repository: | |
// https://github.com/doersino/scriptable-widgets/tree/main/aerialbot-lite |
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
********* | |
*| |||* | |
*| |||* | |
* '-' ||* | |
*----' |* | |
********* | |
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js" charset="utf-8"></script><script src="https://morgan3d.github.io/markdeep/latest/markdeep.min.js" charset="utf-8"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script> |
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
// A Photoshop script that will repeatedly (re)apply the most recently used | |
// filter to the current document and save each iteration as a PNG image. | |
// | |
// Usage: | |
// 1. Create an empty image, do some stuff to it, save it as a PSD somewhere | |
// (this is also where the results will end up). | |
// 2. Make sure there's only one layer. I think if there's more than one, the | |
// filter will be repeatedly applied to the selected layer only, and the rest | |
// should work as expected, but I didn't bother testing it. | |
// 3. Apply your desired filter with the desired settings (say, "Wave" with low |
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
// Generative art with Markdeep diagrams. | |
// | |
// Examples: https://twitter.com/doersino/status/1321191553403129857 | |
// Markdeep: https://casual-effects.com/markdeep/features.md.html#basicformatting/diagrams | |
// | |
// Usage: | |
// 1. Navigate to: https://doersino.github.io/markdeep-diagram-drafting-board/ | |
// 2. Open the JavaScript console (if you need help, see https://webmasters.stackexchange.com/a/77337). | |
// 3. Paste the contents of this file and press Enter. | |
// 4. Type "art()" and press Enter. |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
#markdeep_input { | |
height: 600px; | |
font-family: monospace; | |
} | |
td { |
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
#include <math.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
char *inttostr_conventional(int n) { | |
char *s = (char*) malloc(sizeof(char) * 42); | |
sprintf(s, "%d", n); | |
return s; | |
} |
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
<?php | |
error_reporting(E_ALL); | |
require_once "deps/meekrodb.2.3.class.php"; | |
require_once "TextExtractor.class.php"; | |
$allArticles = DB::query("SELECT * FROM `read` ORDER BY `time_added` ASC"); | |
$N = count($allArticles); |
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
% 1. download files from http://alumni.soe.ucsc.edu/%7Exzhu/doc/turbulence.html to current folder | |
% | |
% 2. run | |
% $ youtube-dl -o sx.mp4 https://www.youtube.com/watch?v=_BgJEXQkjNQ | |
% to download the video and | |
% $ ffmpeg -ss 00:00:50 -i sx.mp4 -filter:v fps=fps=60/1 frames/ffmpeg_%3d.png | |
% to extract the frames - quit this once it reaches frame 1310 or so | |
% | |
% 3. then run this script (might take a few days) | |
% |
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
% 1. download files from http://alumni.soe.ucsc.edu/%7Exzhu/doc/turbulence.html to current folder | |
% and http://tmp.hejnoah.com/frames_Sothh.zip to subfolder "frames_Sothh" | |
% | |
% 2. run | |
% $ youtube-dl -o sx.mp4 https://www.youtube.com/watch?v=_BgJEXQkjNQ | |
% to download the video and | |
% $ ffmpeg -ss 00:01:05 -i sx.mp4 -filter:v fps=fps=60/1 frames/ffmpeg_%3d.png | |
% to extract the frames - quit this once it reaches frame 450 or so | |
% | |
% 3. then run this script |
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
<?php | |
// Put this in the same folder as your https://github.com/doersino/ReAD install. | |
// This will attempt to (re-)get titles and sources for all articles where the | |
// title is empty. | |
require_once "lib/meekrodb.2.3.class.php"; | |
require_once "Helper.class.php"; | |
$q = DB::query("SELECT * FROM `read` WHERE `title` = ''"); |
NewerOlder