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
// Script to extract track names and artists from your current playlist page and export them in CSV format. | |
// This script is intended for personal use to manage playlists efficiently. | |
// Any misuse of this script is not the responsibility of the author. | |
(async function() { | |
// Map to store tracks using `aria-rowindex` as the key | |
const tracksMap = new Map(); | |
// Adjust these parameters if needed | |
const scrollDelay = 800; // Delay between scrolls in milliseconds |
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
Rynaro/daily-codex | |
Rynaro/mini-rails |
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
# frozen_string_literal: true | |
class ComponentMailer < ApplicationMailer | |
def notify(me) | |
mail to: '[email protected]', subject: 'Component', body: ApplicationController.render(MyComponent.new(me: me)) | |
end | |
end |
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 quick ary | |
(x = ary.pop)? quick( ary.select do |i| i < x end) + [x] + quick( ary.select do |i| i > x end ) : [] | |
end | |
print quick [23, 56, 87, 1, 5, 67, 345, 76, 5, 8, 7, 234] | |