Skip to content

Instantly share code, notes, and snippets.

@qubodup
qubodup / google2tsv.js
Created June 19, 2024 11:36
Scrape Google results page to csv (tsv, tab separated) userscript only link and title
// https://stackoverflow.com/a/26573281/188159
javascript: (function (){
function l(u, i) {
var d = document;
if (!d.getElementById(i)) {
var s = d.createElement('script');
s.src = u;
s.id = i;
d.body.appendChild(s);
}
{"name":"drumbit","metadata":{"author":"qubodup","title":"Hectic Drumbit Loop 112bpm","remarks":"CC0"},"options":{"tempo":112,"swing":0,"kit":"11","effect":{"id":"1","level":0.8},"compressor":{"bypass":0,"threshold":-20,"ratio":4,"attack":0.0010000000474974513,"release":0.25,"knee":5},"lowpass":{"bypass":1,"frequency":350,"q":1},"highpass":{"bypass":1,"frequency":800,"q":1}},"pattern1":{"track1":{"vol":1,"pan":0,"pitch":1,"steps":[0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0]},"track2":{"vol":0.3,"pan":0,"pitch":0.6,"steps":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"track3":{"vol":0.5,"pan":0,"pitch":1,"steps":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"track4":{"vol":1,"pan":0,"pitch":1,"steps":[0,1,0,0,0,0,0,1,0,1,0,0,1,0,0,0]},"track5":{"vol":1,"pan":0,"pitch":0.7,"steps":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},"track6":{"vol":1,"pan":0,"pitch":1,"steps":[0,0,1,0,0,1,0,0,1,0,0,1,0,1,1,0]},"track7":{"vol":1,"pan":0,"pitch":1,"steps":[0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0]},"track8":{"vol":1,"pan":0,"pitch":1,"steps":[1,0,0,0,0,0,0,0,0,0,0,0,0,0,
@qubodup
qubodup / freesound describe sounds compact 2024
Last active May 23, 2024 17:38
Freesound Upload "Describe sound files" minimizer userstyle made in 2024 (use with Stylus extension) screenshot: https://i.imgur.com/cfqZo1R.png
@-moz-document url-prefix("https://freesound.org/home/describe/sounds/") {
/* just crush it */
div.container {
padding: 0;
}
div[id^='form']:nth-child(2n) {
background-color: #ddd;
}
@qubodup
qubodup / OpenClipart Tag Copy Helper
Created August 10, 2023 13:09
Copy OpenClipArt tags easily from a text box
// ==UserScript==
// @name OpenClipart Tag Copy Helper
// @namespace https://github.com/qubodup
// @version 0.1
// @description makes copying tags easier, for remixing
// @author qubodup
// @match https://openclipart.org/detail/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openclipart.org
// @grant none
// ==/UserScript==
# The code is dedicated to the public domain https://creativecommons.org/publicdomain/mark/1.0/
# A very simple Flask Hello World app for you to get started with...
# SECURITY RISK START
FSKEY = "FREESOUND API KEY"
# SECURITY RISK OVER
html_header = """<!DOCTYPE HTML>
<html>
@qubodup
qubodup / noclassnoid.js
Created July 2, 2022 14:01
Get all elements without ANY class or id. then use :not([id]) or :not([class]) or div:not([id]):not([class]) to dominate it
$('div').each(function() {
if (!(this.hasAttribute('class') || this.hasAttribute('id'))) {
console.log("OMGvvv");
console.log(this);
console.log("OMG^^^");
}
});
@qubodup
qubodup / allclasses.js
Created July 2, 2022 14:00
get all classes and ids used by element
var classes = []
$('div').each(function() {
if (this.hasAttribute('class')) {
classes = classes.concat( $(this).attr("class").split(/\s+/) );
}
});
classes = [...new Set(classes)];
@qubodup
qubodup / tiletest.py
Created February 23, 2019 02:00
Blender Tile Size Performance Test Script
import bpy
import time
from datetime import datetime
from bpy.app import handlers
print("================")
global DEVICES
global RESOLUTIONS
global CLOCK
@qubodup
qubodup / vistest.mlt
Created November 25, 2018 19:58
Shotcut Audio visualization test project. You can open it and replace the files to test different configs yourself!
<?xml version="1.0" encoding="utf-8"?>
<mlt LC_NUMERIC="en_US" version="6.11.0" title="Shotcut version 18.11.18" producer="main_bin">
<profile description="HD 1080p 25 fps" width="1920" height="1080" progressive="1" sample_aspect_num="1" sample_aspect_den="1" display_aspect_num="16" display_aspect_den="9" frame_rate_num="60" frame_rate_den="1" colorspace="709"/>
<playlist id="main_bin">
<property name="xml_retain">1</property>
</playlist>
<producer id="black" in="00:00:00.000" out="00:01:01.533">
<property name="length">3693</property>
<property name="eof">pause</property>
<property name="resource">black</property>
# convert_materials_to_cycles.py
#
# Copyright (C) 5-mar-2012, Silvio Falcinelli. Fixes by others.
#
# special thanks to user blenderartists.org cmomoney
#
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License