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
''' | |
[email protected] | |
I first installed the python-dateutil package. With this package, we can import the modules dateutil and tz to help | |
assist us in getting the different time zones in different regions of the world. | |
Using the datetime and time class, we can obtain our current time zone and us strftime class to help with formatting | |
month, day, year, time, hours, minutes, and seconds | |
Once we have some examples of different time zone regions, we can start using python graphic widgets like Tk(), label, | |
and radiobutton to help change the different time zone regions |
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
# Source https://docs.python.org/3/library/html.parser.html | |
from html.parser import HTMLParser | |
from html.entities import name2codepoint | |
class TestHTMLParser(HTMLParser): | |
# Initializing lists | |
lsStartTags = list() | |
lsEndTags = list() | |
lsStartEndTags = list() |
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
==== | |
# This bash script is created for advent ticket CS-49173 | |
#!/bin/bash | |
filerstrun="/advent/app/logs/rstrun.log" | |
list=$(awk -F"START" '{ print $2 }' /advent/app/logs/rstrun.log | awk -F"-" '{ print $5 }' | awk -F" " '{ print$1}') | |
for i in $list; do | |
#echo $i | |
#echo | |
#echo "=== START ===" |
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
<html> | |
<body> | |
<p id="prime"></p> | |
<script> | |
var i; // outer loop | |
var j; // inner loop | |
var flag; // flag checking prime number |