Skip to content

Instantly share code, notes, and snippets.

View EldarAliev's full-sized avatar
🎯
Focusing

EldarAliev

🎯
Focusing
View GitHub Profile
@bpmore
bpmore / sort-tabs.txt
Created June 9, 2016 17:41
Sort Tabs in Google Spreadsheets
1. Copy/Paste the information below to the clipboard
2. Open the spreadsheet whose sheets need to be alphabetised
3. Choose Tools > Script editor > Blank (this opens a new tab in the browser)
4. Press Control+A followed by Control+V copy and paste the script in
5. Press Control+S to save the script
6. Choose Run > sortSheets
7. Go back to the spreadsheet tab to view the new sorted tab order
--Copy everything below this line--
function sortSheets () {
@Senci
Senci / beatport-playlist-text-export.js
Last active June 1, 2023 10:43
exports playlist to text format, when run on beatport playlist sites
// exports playlist to text format, when run on beatport playlist sites
let playlist = ''
document.querySelectorAll('li.track').forEach(li => {
let title = li.querySelector('.buk-track-primary-title').textContent.replace(/\s+/g, ' ').trim()
let mix = li.querySelector('.buk-track-remixed').textContent.replace(/\s+/g, ' ').trim()
let artist = li.querySelector('.buk-track-artists').textContent.replace(/\s+/g, ' ').trim()
if (mix === 'Original Mix') {
playlist += `${artist} - ${title}\n`
} else {
playlist += `${artist} - ${title} (${mix})\n`