Skip to content

Instantly share code, notes, and snippets.

View ycourses's full-sized avatar
💭
:)

ADham ycourses

💭
:)
View GitHub Profile
@ycourses
ycourses / google-drive-api.js
Created September 11, 2022 20:34 — forked from trulymittal/google-drive-api.js
Gist to demonstrate Google Drive API using NodeJs
/*
Google Drive API:
Demonstration to:
1. upload
2. delete
3. create public URL of a file.
required npm package: googleapis
*/
const { google } = require('googleapis');
@MrShennawy
MrShennawy / script.js
Created September 9, 2018 14:52
Calculate YouTube Playlist total time
Number.prototype.padDigit = function () {
return (this < 10) ? '0' + this : this;
}
var time1 = "00:00";
var secs = 0;
var mins = 0;
var hrs = 0;
$('.ytd-thumbnail-overlay-time-status-renderer').each(function(){
@shekohex
shekohex / main.js
Created September 8, 2018 18:32
Get YouTube Playlist total time
//@ts-check
console.time('Elapsed time');
const playlistVideos = document.querySelector(
"#contents > ytd-playlist-video-list-renderer > #contents"
);
const spanTime = document.querySelectorAll(
"#overlays > ytd-thumbnail-overlay-time-status-renderer > span"
);
let playlistTime = 0;
for (let i = 0; i < playlistVideos.childElementCount; i++) {
@atomjar
atomjar / product_style
Last active August 13, 2024 11:34
Stylesheet for Vue Mastery's Intro to Vue course
body {
font-family: tahoma;
color:#282828;
margin: 0px;
}
.nav-bar {
background: linear-gradient(-90deg, #84CF6A, #16C0B0);
height: 60px;
margin-bottom: 15px;
@abritinthebay
abritinthebay / consoleColors.js
Last active April 2, 2025 07:34
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"