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
| def cookie(request): | |
| print(request.COOKIES) | |
| oldval = request.COOKIES.get('dj4e_cookie', None) | |
| resp = HttpResponse('In a view - the dj4e_cookie cookie value is '+str(oldval)) | |
| resp.set_cookie('dj4e_cookie', 'b9a94fc6', max_age=1000) | |
| return resp |
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 { useEffect, useState } from 'react'; | |
| function FetchEmployeesByQuery({ query }) { | |
| const [employees, setEmployees] = useState([]); | |
| useEffect(() => { | |
| async function fetchEmployees() { | |
| const response = await fetch( | |
| `/employees?q=${encodeURIComponent(query)}` | |
| ); |
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
| <option>Ahsanullah University of Science and Technology</option> | |
| <option>American International University-Bangladesh</option> | |
| <option>ASA University Bangladesh</option> | |
| <option>Asian University of Bangladesh</option> | |
| <option>Atish Dipankar University of Science and Technology</option> | |
| <option>Bangabandhu Sheikh Mujib Medical University</option> | |
| <option>Bangabandhu Sheikh Mujibur Rahman Agricultural University</option> | |
| <option>Bangabandhu Sheikh Mujibur Rahman Maritime University</option> | |
| <option>Bangabandhu Sheikh Mujibur Rahman Science and Technology University</option> | |
| <option>Bangladesh Agricultural University</option> |
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
| #user input 1234 the program will give one two three four | |
| dictionary={ | |
| "0":"zero", | |
| "1": "one", | |
| "2": "two", | |
| "3": "three", | |
| "4": "four", | |
| "5": "five", | |
| "6": "six", | |
| "7": "seven", |
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
| <div class="body"> | |
| <div> | |
| <button onclick="fadeOut()">animation</button> | |
| <img src="blueRose.jpg" id="myRose" /> | |
| </div> | |
| <script type="text/javascript"> | |
| var image=document.getElementById("myRose"); | |
| var duration=1000; | |
| var hiddenTime=1000; | |
| var showTime=1000; |
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
| <div class="body"> | |
| <div> | |
| <span id="hour"></span> : | |
| <span id="minute"></span> : | |
| <span id="second"></span> : | |
| <span id="milliseconds"></span> | |
| </div> | |
| <script> |
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
| //it can be anything not only alart but also other thing | |
| <script> | |
| setTimeout(function(){ | |
| alert("after three i will come!!!"); | |
| },3000) | |
| </script> | |
| ===================================================================== | |
| //after each 3 seconds it will come continuously | |
| <script> | |
| setInterval(function(){ |
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
| //after a fixed that will end | |
| <div class="body"> | |
| <script> | |
| clearTimeout(); | |
| var setTime; | |
| function timeend(){ | |
| document.getElementById("show").innerHTML="finished my 3 seconds...bye bye"; | |
| } | |
| function startTime(){ |
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
| //a fix digit or number or letter that will sorted | |
| <html> | |
| <body> | |
| <script> | |
| function reverce(s){ | |
| return s.split("").sort().join(""); | |
| } | |
| var q="z B p D E d s f e z x s f s w d s"; | |
| document.write(reverce(q)); | |
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
| #include<iostream> | |
| #include<fstream> | |
| #include<sstream> | |
| #include<string> | |
| #include<ctime> | |
| #include<cstdlib> | |
| using namespace std; |
NewerOlder