Skip to content

Instantly share code, notes, and snippets.

View yyaremenko's full-sized avatar
😎

Yaroslav Yaremenko yyaremenko

😎
View GitHub Profile
@yyaremenko
yyaremenko / reset-udemy-course-progress.js
Last active December 21, 2024 10:32
Reset Udemy course progress
// run this script in the Developer Tools' Console
// in the browser of your choice
let panelsSelector = '.ct-sidebar-course-content .ud-accordion-panel-toggler';
let checkboxesSelector = '.ct-sidebar-course-content li input[type=checkbox]:checked';
let click = function(selector) {
console.log('CLICKING...');
let elems = document.querySelectorAll(selector);
elems.forEach(function(item, i) {
@yyaremenko
yyaremenko / editor.css
Last active December 21, 2024 10:31
Defold editor styling
/*
* Editor color scheme is changable with this css file
* for details, see
* https://defold.com/manuals/editor-styling/
*
* Discussion
* https://forum.defold.com/t/experiments-with-editor-styling-using-javafx-css/67021
*/
* {
<?php
/**
* Attempts to parse given meta tag's content from given html;
* deals with 'standard' and Open Graph meta tags.
*
* Order of meta tag attributes could be swapped around e.g. can either be
* name="..." content="..."
* or
* content="..." name="..."