Skip to content

Instantly share code, notes, and snippets.

@sometgirldotonline
sometgirldotonline / Howto.md
Created May 19, 2024 21:31
GitHub Profile Readmes

Add the file you want to a github repo with the same name as your user. The file should be called README.md

@sometgirldotonline
sometgirldotonline / readme.md
Last active April 27, 2024 02:57
SpotiMS - Bring Back Media Session Controls To Spotify Web When Listening On Connect

SpotiMS
Bring Back That Damn Media Controller!

What changes with this?

You won't notice any change when playing locally or to a chromecast, but when playing to a spotify connect device, the media controls which are not usually there, re-appear.

Without With
image image

So, wait what are we talking about?

@sometgirldotonline
sometgirldotonline / Handle Bar Helpers.js
Last active August 21, 2023 07:38
Stackedit blog template, with blog name generated from file name
Handlebars.registerHelper('betterTitle', function (filepath) {
return new Handlebars.SafeString(
JSON.stringify(filepath.data.root.files[0].name).replace(/\.[^/.]+$/, "").replace('"', '').replace('"',"")
);
});
/* Extension using the JavaScript Speech API for text to speech */
/* Sayamindu Dasgupta <[email protected]>, April 2014 */
new (function() {
var ext = this;
/*function _get_voices() {
var ret = [];
var voices = speechSynthesis.getVoices();
@sometgirldotonline
sometgirldotonline / Minecraft Commands.md
Last active April 14, 2021 11:52
Minecraft Commands


Minecraft Commands

Java

Read entities inventory:
Must be done in command block. To trigger redstone or another commandblock, you must set the main commmandblocks’ setttings to Always Active On, and set the command block type to repeat, then place a comparator to get redstone output

/execute if entity !!SELECTOR!![nbt={Inventory:[{id:"!!ITEM_ID!!",tag:{display:{Name:'{"text":"!!Item_Display_Name!!"}'}}}]}]