Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 23 additions & 59 deletions Download/index.html
Original file line number Diff line number Diff line change
@@ -1,59 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=1920"/>
<meta name="description"
content="Tizen Download API Demo" />

<title>Tizen Download API</title>

<script type='text/javascript' src='$WEBAPIS/webapis/webapis.js'></script>
<link rel="stylesheet" type="text/css" href="style.css" />

</head>

<body>

<h1>Tizen Download API</h1>

<div class="left">
<h2>Available buttons/actions:</h2>

<div>
1 - Downloaded file lists<br>
2 - Start download - small file<br>
3 - Start download - large file<br>
Pause - Pause download<br>
Play - Resume download<br>
Stop - Cancel download<br>
0 - Clear logs
</div>

<div id="progress" class="progress">
<div id="bar" class="bar"></div>
</div>

<fieldset>
<legend>Downloaded files:</legend>
<div id="fileList" class="logs"></div>
</fieldset>

<fieldset>
<legend>Logs</legend>
<div id="logs" class="logs"></div>
</fieldset>
</div>
<div class="right">
<h2>Info</h2>

<p>This application demonstrates the usage of Tizen download API</p>

<p>The application downloads files from <code>http://techslides.com</code> and <code>http://download.blender.org</code>. If these domains are not accessible it will not work.<br>

You can change the source location of files to download by changing the contents of <code>url1</code> and <code>url2</code> variables in <code>main.js</code> file</cide></p>
</div>

<script src="main.js"></script>
</body>
</html>
# Birthday Manager Program

# Dictionary to store birthdays
birthdays = {}

def add_birthday(Sherya, 17):
"""
Add a birthday to the dictionary.

:param name: Name of the person
:param date: Birthday date in the format '2007-01-17'
""
birthdays[Sherya] = 17

def check_birthday(17):
"""
Check if the given date is someone's birthday.

:param date: Date to check in the format 'YYYY-MM-DD'
:return: List of names who have their birthday on the given date
"""
birthday_people = [name for name, bday in birthdays.items() if bday == date]
return birthday_people