Skip to content

Instantly share code, notes, and snippets.

@pubple
pubple / ActiveYouTubeURLFormats.txt
Created March 15, 2025 10:14 — forked from rodrigoborgesdeoliveira/ActiveYouTubeURLFormats.txt
Example of the YouTube videos URL formats
http://www.youtube.com/watch?v=-wtIMTCHWuI
http://youtube.com/watch?v=-wtIMTCHWuI
http://m.youtube.com/watch?v=-wtIMTCHWuI
https://www.youtube.com/watch?v=lalOy8Mbfdc
https://youtube.com/watch?v=lalOy8Mbfdc
https://m.youtube.com/watch?v=lalOy8Mbfdc
http://www.youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
http://youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
http://m.youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
@pubple
pubple / vimeo-vod.md
Created April 28, 2022 14:27 — forked from mmathys/vimeo-vod.md
Download Vimeo VOD (video on demand)

How to download vimeo VOD for offline usage

Variant 1

Use youtube-dl directly to download the video (thanks @meepybub!) Example:

youtube-dl -u <youremailaddress@example.com> "https://vimeo.com/ondemand/<video>"
@pubple
pubple / clean_code.md
Created December 16, 2020 09:22 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@pubple
pubple / hide-logo.js
Last active August 10, 2019 04:15
To hide the header, logo of the any web page
//change this selector accordingly
selectors=['header', 'logo'];
(function(selectors){
function hideByTag(tag){
var tags = document.getElementsByTagName(tag);
if (tags.length){
tags.forEach(function(element){
element.hidden = true;
});
}