Skip to content

Instantly share code, notes, and snippets.

@stephenhandley
stephenhandley / exportQueue.js
Last active April 26, 2024 10:46
Rdio queue to json
var queue = [];
var $albums = $('.QueueList .Album');
for (var i = 0; i < $albums.length; i++) {
var $album = $($albums[i]);
var $title = $album.find('.album_title');
var $artist = $album.find('.artist_title');
queue.push({
title : $title.text(),
href : $title.attr('href'),
artist : $artist.text()
@oclockvn
oclockvn / dictionary.js
Created January 25, 2018 20:54
find a word contains letter
var source = ["the",
"of",
"and",
"to",
"a",
"in",
"for",
"is",
"on",
"that",
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active April 26, 2024 10:45
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
// Curious about ages for the 2019 tour divide.
// Text grabbed from https://bikepacking.com/bikes/tour-divide-rigs-2019/
// That website is the best, I didn't write any of this, they did, all credit to them.
// btw:
// average age: 44.782051282051285
// median age: 45
const originalStr = `
JOIN/SUPPORT
@digitaljhelms
digitaljhelms / gist:4287848
Last active April 26, 2024 10:44
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@jaawerth
jaawerth / desc.md
Last active April 26, 2024 10:44
No Fun Tuesdays (replace En Eff Tee with random dictionary words)

Non-Funkadelic Toasters userscript

Because sometimes I don't want to see the word "Necromancy's Fiscal Tecumseh's."

Nonintervention Feline Targets-replacer

Not properly documenting this, but if you wanna use it...

I may or may not eventually get around to properly packaging this as a shareable userscript or extension, complete with preloaded replacement words and such, so to use it:

@politologu
politologu / javascript-from-fundamentals-to-functional-js-v2_frontend_masters.markdown
Last active April 26, 2024 10:43
JavaScript: From Fundamentals to Functional JS, v2_frontend_Masters
@nicleary
nicleary / index.html
Created July 6, 2017 21:05
Random Quote Machine By Nick Cleary
<script src="https://use.fontawesome.com/f9b33de092.js"></script>
<head>
</head>
<body class="cool-background">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1><center>Random Quote Machine</center></h1>
<div class="well">
<p align="center" class="quote large">OMG ITS A COOL QUOTE</p>
@wpmudev-sls
wpmudev-sls / wpmudev-forminator-limit-form-submissions.php
Last active April 26, 2024 10:42
[Forminator Pro] - Limit form submissions
<?php
/**
* Plugin Name: [Forminator Pro] - Limit form submissions
* Plugin URI: https://premium.wpmudev.org/
* Description: Limit form submission based on the total amount of entries already submitted (as of 1.11.1)
* Author: Alessandro Kaounas @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/