This file contains 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 data = [[1, "AAOC ZC111", "AAOC", "PROBABILITY & STATISTICS", "22/09/2024 13:00:00", "22/09/2024 15:00:00", "06/10/2024 13:00:00", "06/10/2024 15:00:00", "01/12/2024 13:00:00", "01/12/2024 15:00:00", "08/12/2024 13:00:00", "08/12/2024 15:00:00"], [2, "AE ZC442", "AE", "ADVANCED DRIVER ASSISTANCE SYS", "22/09/2024 16:30:00", "22/09/2024 18:30:00", "06/10/2024 16:30:00", "06/10/2024 18:30:00", "01/12/2024 16:30:00", "01/12/2024 18:30:00", "08/12/2024 16:30:00", "08/12/2024 18:30:00"], [3, "AE ZC443", "AE", "CONNECTED CARS", "21/09/2024 13:00:00", "21/09/2024 15:00:00", "05/10/2024 13:00:00", "05/10/2024 15:00:00", "30/11/2024 13:00:00", "30/11/2024 15:00:00", "07/12/2024 13:00:00", "07/12/2024 15:00:00"], [4, "AE ZG510", "AE", "AUTOMOTIVE CONTROL SYSTEMS", "21/09/2024 09:00:00", "21/09/2024 11:00:00", "05/10/2024 09:00:00", "05/10/2024 11:00:00", "30/11/2024 09:00:00", "30/11/2024 11:00:00", "07/12/2024 09:00:00", "07/12/2024 11:00:00"], [5, "AE ZG511", "AE", "MECHATRONICS", "22/09/2024 13:00:00", "22/09/ |
This file contains 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 fitz | |
def scrape(filePath): | |
results = [] # list of tuples that store the information as (text, font size, font name) | |
pdf = fitz.open(filePath) # filePath is a string that contains the path to the pdf | |
count = 0 | |
titles = {} | |
for page in pdf: | |
dict = page.get_text("dict") | |
blocks = dict["blocks"] |
This file contains 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
1. Download the recent version from nodejs.org | |
2. Run `msiexec /qn /l* node-log.txt /i node-vX.X.XX-x64.msi` |
This file contains 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
function redirect(sentence){ | |
if(sentence.contains('airport'){ | |
window.location('/airport') | |
} | |
else{ | |
window.location('/home') | |
} | |
} | |
// Test function |
This file contains 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
www.hotstar.com | |
hsprepack.akamaized.net | |
live09p.hotstar.com | |
live11p.hotstar.com | |
api.hotstar.com | |
webos.hotstar.com | |
tizen.hotstar.com | |
live12p.hotstar.com | |
hses3.akamaized.net | |
live11p.akt.hotstar-cdn.net |
This file contains 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
/* | |
Takes a native date object and returns string containing date the specified format | |
Format segments are | |
{{dd}} - 2 digit date | |
{{D}} - Day of week | |
{{mm}} - 2 digit month | |
{{mmm}} - 3 letter month | |
{{MMM}} - Full month | |
{{yyyy}} - 4 digit year | |
{{H}} - 2 digit hour (24 hours) |
This file contains 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
*::-webkit-scrollbar-track { | |
background: rgba(255,255,255,0.08); | |
} | |
*::-webkit-scrollbar-thumb { | |
background-color: rgba(0,0,0,0.2); | |
} | |
*::-webkit-scrollbar { | |
width: 6px !important; | |
height: 6px !important; | |
} |
This file contains 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
# Find all files with specified pattern using find and then mv them to new numbered name | |
# eg. abc.jpeg, sdfs.jpeg,... --> 0001.jpeg,0002.jpeg,... | |
find -iname '*.jpeg' | # find files | |
gawk 'BEGIN{ a=1 }{ printf "mv \"%s\" \"%04d.jpeg\"\n", $0, a++ }' | # build mv command ( Change 04d(0000) to your number your files) | |
bash |
This file contains 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
# Uses convert cmdline tool | |
import os | |
def main(): | |
dir_list = os.listdir('./pdfs') # change to your pdf directory | |
for full_file_name in dir_list: | |
base_name, extension = os.path.splitext(full_file_name) | |
if extension == '.pdf': # then .pdf file --> convert to image! | |
cmd_str = ' '.join(['convert', | |
'"./pdfs/' + full_file_name + '"', # change to your pdf directory |
This file contains 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
// Opera 8.0+ | |
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | |
// Firefox 1.0+ | |
var isFirefox = typeof InstallTrigger !== 'undefined'; | |
// Safari 3.0+ "[object HTMLElementConstructor]" | |
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification)); | |
// Internet Explorer 6-11 |
NewerOlder