Skip to content

Instantly share code, notes, and snippets.

View toti1212's full-sized avatar
🪐

Rodrigo Suárez toti1212

🪐
View GitHub Profile
@toti1212
toti1212 / platziCoursesDuration.js
Created May 15, 2020 22:04
Platzi courses duration
const durations = document.getElementsByClassName('MaterialItem-copy-time')
const getCourseDuration = (durations) => {
let minutes = 0;
let seconds = 0;
for (i=0; i< durations.length; i++) {
let duration = durations[i].textContent.split('min')[0].split(":");
minutes += parseInt(duration[0])
seconds += parseInt(duration[1])
}
@toti1212
toti1212 / cloudSettings
Last active August 28, 2019 14:34
vscode config
{"lastUpload":"2019-08-28T14:34:13.450Z","extensionVersion":"v3.4.2"}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->