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 urllib.request, datetime, os | |
# This code executes many http get requests in short time | |
# So don't abuse it | |
NumPages = 20 | |
startTime = datetime.datetime.now() | |
if startTime.hour < 11: | |
dirName = (startTime - datetime.timedelta(days=1)).strftime('%Y%m%d') | |
else: |
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
const tableBody = document.getElementById('gsc_a_b'); | |
const rows= tableBody.querySelectorAll('tr'); | |
const rowdata = []; | |
rows.forEach(row => { | |
const cells = row.querySelectorAll('td'); | |
const title = cells[0].querySelector('a').textContent; | |
const authors = cells[0].querySelector('.gs_gray').textContent.trim(); | |
const journal = cells[0].querySelectorAll('.gs_gray')[1].textContent.trim(); | |
const citations = cells[1].querySelector('a').textContent; | |
const year = cells[2].textContent; |
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
#Requires AutoHotkey v2.0 | |
; what's modified in v2 ref: https://blog.naver.com/550sn/223304085896 | |
; #NoEnv ; performance enhancement but default in ahk v2 | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
; SendMode Input ; Recommended for new scripts due to its superior speed and reliability but default in ahk v2 | |
SetWorkingDir A_ScriptDir ; Ensures a consistent starting directory. A_ScriptDir is built-in variable in ahk v2 | |
^Numpad1:: Run "Notepad" | |
^Numpad2:: Run "mspaint" | |
^Numpad3:: Run "shell:appsfolder\Microsoft.Whiteboard_8wekyb3d8bbwe!Whiteboard" |
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 psutil | |
import csv | |
import datetime, time, locale | |
import os | |
def getCurrentTimeForFileName(): | |
"""Gets the current time in YYYYMMDDhhmmss format.""" | |
now = datetime.datetime.now() | |
return now.strftime("%Y%m%d_%H%M%S") |
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
loop (i,1,5) { | |
wcol(j+i-1)=wcol(i)/max(wcol(i)); | |
} |
OlderNewer