Weather Web App
31 |Demo City
39 |Demo weather type
42 |-
43 |
- Temp: --F 44 |
- Min Temp: --F 45 |
- Max Temp: --F 46 |
├── .vscode ├── c_cpp_properties.json ├── launch.json ├── newwww.html └── tasks.json ├── 10.py ├── 16.py ├── 17875code10200.py ├── 2.py ├── 20.py ├── 7.py ├── CONTRIBUTING.md ├── CarRacingGame ├── bg.jpg ├── blue.png ├── index.html ├── jumpsound.mp3 ├── main.js ├── race.png ├── script.js └── style.css ├── Check_set_bit.cpp ├── README.md ├── SelectionSort.cpp ├── Tic tac toe.py ├── Variable.py ├── basicStructure.cpp ├── butterfly_pattern.cpp ├── c++2022.cpp ├── car_game.c ├── dowhile.cpp ├── even_odd.c ├── favicon_io ├── about.txt ├── android-chrome-192x192.png ├── android-chrome-512x512.png ├── apple-touch-icon.png ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico └── site.webmanifest ├── fibnum.cpp ├── func_OVERLOADING.CPP ├── index.html ├── intersection_of_two_arrays.cpp ├── mallu.cpp ├── month.cpp ├── play_code_c++.cpp ├── pointer_VEDANT.cpp ├── project.html ├── queue.c ├── queue_using_array.c ├── script.js ├── sndkfne.c ├── student_marks.cpp ├── style.css ├── switch.c ├── tut8.html.html ├── weatherbackground.jpg ├── weatherbackground1.jpg └── zigzag.cpp /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Mac", 5 | "includePath": [ 6 | "${workspaceFolder}/**" 7 | ], 8 | "defines": [], 9 | "macFrameworkPath": [ 10 | "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" 11 | ], 12 | "compilerPath": "/usr/bin/clang", 13 | "cStandard": "c17", 14 | "cppStandard": "c++17", 15 | "intelliSenseMode": "macos-clang-arm64" 16 | } 17 | ], 18 | "version": 4 19 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [] 7 | } -------------------------------------------------------------------------------- /.vscode/newwww.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 71 | 72 | 73 | 74 |Change the background color of a button with the background-color property:
77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "tasks": [ 3 | { 4 | "type": "cppbuild", 5 | "label": "C/C++: clang++ build active file", 6 | "command": "/usr/bin/clang++", 7 | "args": [ 8 | "-fcolor-diagnostics", 9 | "-fansi-escape-codes", 10 | "-g", 11 | "${file}", 12 | "-o", 13 | "${fileDirname}/${fileBasenameNoExtension}" 14 | ], 15 | "options": { 16 | "cwd": "${fileDirname}" 17 | }, 18 | "problemMatcher": [ 19 | "$gcc" 20 | ], 21 | "group": { 22 | "kind": "build", 23 | "isDefault": true 24 | }, 25 | "detail": "Task generated by Debugger." 26 | } 27 | ], 28 | "version": "2.0.0" 29 | } -------------------------------------------------------------------------------- /10.py: -------------------------------------------------------------------------------- 1 | # Python code to demonstrate string length 2 | # using for loop 3 | 4 | # Returns length of string 5 | def findLen(str): 6 | counter = 0 7 | for i in str: 8 | counter += 1 9 | return counter 10 | 11 | 12 | str = "geeks" 13 | print(findLen(str)) 14 | -------------------------------------------------------------------------------- /16.py: -------------------------------------------------------------------------------- 1 | # Python3 program to swap elements 2 | # at given positions 3 | 4 | # Swap function 5 | def swapPositions(list, pos1, pos2): 6 | 7 | list[pos1], list[pos2] = list[pos2], list[pos1] 8 | return list 9 | 10 | 11 | # Driver function 12 | List = [23, 65, 19, 90] 13 | pos1, pos2 = 1, 3 14 | 15 | print(swapPositions(List, pos1-1, pos2-1)) 16 | -------------------------------------------------------------------------------- /17875code10200.py: -------------------------------------------------------------------------------- 1 | # Function to find permutations of a given string 2 | from itertools import permutations 3 | 4 | 5 | def allPermutations(str): 6 | 7 | # Get all permutations of string 'ABC' 8 | permList = permutations(str) 9 | 10 | # print all permutations 11 | for perm in list(permList): 12 | print(''.join(perm)) 13 | 14 | 15 | # Driver program 16 | if __name__ == "__main__": 17 | str = 'ABC' 18 | allPermutations(str) 19 | -------------------------------------------------------------------------------- /2.py: -------------------------------------------------------------------------------- 1 | # Python program to check 2 | # if a string is binary or not 3 | 4 | # function for checking the 5 | # string is accepted or not 6 | 7 | 8 | def check(string): 9 | 10 | # set function convert string 11 | # into set of characters . 12 | p = set(string) 13 | 14 | # declare set of '0', '1' . 15 | s = {'0', '1'} 16 | 17 | # check set p is same as set s 18 | # or set p contains only '0' 19 | # or set p contains only '1' 20 | # or not, if any one condition 21 | # is true then string is accepted 22 | # otherwise not . 23 | if s == p or p == {'0'} or p == {'1'}: 24 | print("Yes") 25 | else: 26 | print("No") 27 | 28 | 29 | # driver code 30 | if __name__ == "__main__": 31 | 32 | string = "101010000111" 33 | 34 | # function calling 35 | check(string) 36 | -------------------------------------------------------------------------------- /20.py: -------------------------------------------------------------------------------- 1 | # Python program to find sum of elements in list 2 | 3 | total = 0 4 | 5 | # creating a list 6 | list1 = [11, 5, 17, 18, 23] 7 | 8 | # Iterate each element in list 9 | # and add them in variable total 10 | for ele in range(0, len(list1)): 11 | total = total + list1[ele] 12 | 13 | # printing total value 14 | print("Sum of all elements in given list: ", total) 15 | -------------------------------------------------------------------------------- /7.py: -------------------------------------------------------------------------------- 1 | # Python program to demonstrate 2 | # symmetry and palindrome of the 3 | # string 4 | 5 | 6 | # Function to check whether the 7 | # string is palindrome or not 8 | def palindrome(a): 9 | 10 | # finding the mid, start 11 | # and last index of the string 12 | mid = (len(a)-1)//2 # you can remove the -1 or you add <= sign in line 21 13 | start = 0 # so that you can compare the middle elements also. 14 | last = len(a)-1 15 | flag = 0 16 | 17 | # A loop till the mid of the 18 | # string 19 | while(start <= mid): 20 | 21 | # comparing letters from right 22 | # from the letters from left 23 | if (a[start] == a[last]): 24 | 25 | start += 1 26 | last -= 1 27 | 28 | else: 29 | flag = 1 30 | break 31 | 32 | # Checking the flag variable to 33 | # check if the string is palindrome 34 | # or not 35 | if flag == 0: 36 | print("The entered string is palindrome") 37 | else: 38 | print("The entered string is not palindrome") 39 | 40 | # Function to check whether the 41 | # string is symmetrical or not 42 | 43 | 44 | def symmetry(a): 45 | 46 | n = len(a) 47 | flag = 0 48 | 49 | # Check if the string's length 50 | # is odd or even 51 | if n % 2: 52 | mid = n//2 + 1 53 | else: 54 | mid = n//2 55 | 56 | start1 = 0 57 | start2 = mid 58 | 59 | while(start1 < mid and start2 < n): 60 | 61 | if (a[start1] == a[start2]): 62 | start1 = start1 + 1 63 | start2 = start2 + 1 64 | else: 65 | flag = 1 66 | break 67 | 68 | # Checking the flag variable to 69 | # check if the string is symmetrical 70 | # or not 71 | if flag == 0: 72 | print("The entered string is symmetrical") 73 | else: 74 | print("The entered string is not symmetrical") 75 | 76 | 77 | # Driver code 78 | string = 'amaama' 79 | palindrome(string) 80 | symmetry(string) 81 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | this repository is only for algorithms and data structure that use for making car racing app in which you can upload in any language algorithms which will useful for many other people. happy coding 👨💻. 2 | -------------------------------------------------------------------------------- /CarRacingGame/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hariom20singh/car-racing-game/6c3389f2342535ccf0b87b8055662334eb20b23f/CarRacingGame/bg.jpg -------------------------------------------------------------------------------- /CarRacingGame/blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hariom20singh/car-racing-game/6c3389f2342535ccf0b87b8055662334eb20b23f/CarRacingGame/blue.png -------------------------------------------------------------------------------- /CarRacingGame/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |A Computer Science Portal providing Online Training for Web Development Courses
155 |A Computer Science Portal providing Online Training for Web Development Courses
312 |A Computer Science Portal providing Online Training for Web Development Courses
469 |