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
fatha = u'َ' | |
kasra = u'ِ' | |
damma = u'ُ' | |
sukun = u'ْ' | |
shadda = u'ّ' | |
doublekasra = u'ٍ' |
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 datetime | |
fake_durations = [] # list of durations in seconds | |
for x in range(0, 1000): | |
fake_durations.append(1000) | |
# it is = 1 milion | |
# 1 milion seconds is more than 11 days. |
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
from datetime import timedelta | |
durations = [] # list of durations in seconds | |
for x in range(0, 1000): | |
durations.append(1000) | |
# durations now contain 1000 elemnt , each of them = 1000 | |
total_in_seconds = sum(durations) |
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
from datetime import timedelta | |
durations = [] # list of durations in seconds | |
for x in range(0, 1000): | |
durations.append(1000) | |
# durations now contain 1000 elemnt , each of them = 1000 | |
total_in_seconds = sum(durations) |
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
from views2 import View2 | |
from flask import Blueprint, Flask, jsonify, session, abort | |
import typing as t | |
app = Flask(__name__) | |
app.secret_key = "extremely secret" | |
def auth_required(fn): | |
def wrap(obj, *args, **kwargs): |
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 removeElement(id){ | |
document.getElementById(id).parentNode.removeChild(document.getElementById(id)); | |
} | |
function clearElement(element){ | |
try{ | |
console.info("function: clearElement.\nArguments: "+element) | |
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 getInput(id){ | |
try{ | |
console.info("function: getInput.\nArguments: "+id) | |
return document.getElementById(id).value; | |
} | |
catch(err) { | |
console.error(err.name , err.message); |
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 clearDropBtn(id){ | |
try{ | |
document.getElementById(id).options.length = 0; | |
}catch(err){ | |
console.error(err.name, err.message) | |
} | |
} | |
function clearDropBtnExceptFirst(id){ |
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
<style> | |
html { | |
max-width:100% ; | |
min-width:100% | |
} | |
#pageBody {direction:rtl; | |
font-size:17px; | |
line-height:1.2; | |
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
<style> | |
/* W3.CSS 4.10 February 2018 by Jan Egil and Borge Refsnes */ | |
html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit} | |
/* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */ | |
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%} | |
body{margin:0} | |
article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block} | |
audio,canvas,progress,video{display:inline-block} | |
progress{vertical-align:baseline} |
NewerOlder