This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Vivaldi Tab Scroll | |
// https://forum.vivaldi.net/topic/27856/tab-scroll | |
// Clicking on an active tab scrolls page to top, clicking it again returns to previous scroll position. | |
// Credits to tam710562 from Vivaldi Forum for coming up with the sessionStorage solution, which made this possible. | |
// Small improvement by RayTwitty - smooth scrolling. | |
{ | |
function tabScrollExit(tab) { | |
tab.removeEventListener('mousemove', tabScrollExit); | |
tab.removeEventListener('click', tabScrollTrigger); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Скрипт запущен. Результат будет через 5 секунд.'); | |
setTimeout(function() { | |
var list = $('.timespent'); | |
var total_time = 0; // minutes | |
var hour = 60; | |
var day = 8 * hour; | |
var week = 5 * day; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /f "delims=" %%a in ('dir /b /s /a-d "*"') do if /I not %%~xa==.THM echo %%~na >> "file_list.txt" | |
pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, re | |
cur_dir = os.path.dirname(os.path.abspath(__file__)) | |
file = open(cur_dir + '\log.txt') | |
buff = [] | |
ignored_lines = [ | |
'Author: .*', | |
'Date: .*', | |
'Message:', |