├── .github ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── generate_project_tree_structure.yml ├── Algorithms ├── 12_IntegerToRoman.cpp ├── 2Pointer Algorithm │ ├── pairSum.cpp │ └── slowFastPointer.cpp ├── 8puzzle_AStar.py ├── 8puzzle_HillClimbing.py ├── AVL TREES.txt ├── Arrays - Left Rotation.cpp ├── Arrays - 2D Array - DS.cpp ├── Arrays - Array Manipulation.cpp ├── Arrays - Minimum Swaps 2.cpp ├── Disjoint sets.txt ├── Dynamic Programming │ ├── 01KnapsackProblem.cpp │ ├── EditDistance.cpp │ ├── LongestAlternatingSubsequence │ ├── LongestIncreasingSubsequence.cpp │ ├── Minimum number of jumps.cpp │ └── dice_combination.cpp ├── GreatCircleDistance.py ├── Hash │ ├── ContainsDuplicate1.c++ │ ├── ContainsDuplicate2.c++ │ ├── DoubleHashingC++.txt │ ├── Hash Table Class Chaining.txt │ ├── Hash Table Quadratic Probing.txt │ ├── HashTableLinearProbingC++.txt │ └── TwoSum.c++ ├── Kadane Algorithm.txt ├── KadaneAlgorithm.java ├── Knapsack-Greedy.java ├── Krushals Min Cost Spanning Tree.txt ├── Longest cycle in graph.cpp ├── Mathematical Algorithms │ └── Lucky Numbers ├── Morris_Inorder.cpp ├── N-queens.java ├── Prefix Sum Algorithm.txt ├── Prim Min Spanning Tree.txt ├── RabinKarpAlgorithm.cpp ├── Searching │ ├── Binary Search │ ├── Breadth First Search.txt │ ├── Depth First Search.txt │ ├── InsertionSort.java │ ├── KMP algorithm.cpp │ ├── LinearSearch.cpp │ ├── LinearSearch.java │ ├── Quicksort.java │ ├── frequencyOf1.cpp │ ├── matrixSearch.cpp │ └── maximumInBitonic.cpp ├── SieveofEratosthenes_Algorithm.cpp ├── Sorting Algorithms │ ├── cpp │ │ ├── Bubble_Sorting.cpp │ │ ├── InsertionSort.cpp │ │ ├── IntersectionOfTwoSortedArrays.cpp │ │ ├── bogo_Sort.cpp │ │ ├── countsort.cpp │ │ ├── daa_topological sorting.cpp │ │ ├── heapSort.cpp │ │ ├── linkedlist │ │ │ └── mergesort.cpp │ │ ├── mergeSort.cpp │ │ ├── quickSort.cpp │ │ ├── radixsort.cpp │ │ └── topological sorting.cpp │ ├── java │ │ ├── BogoSort.java │ │ ├── CountingSort.java │ │ ├── CyclicSort.java │ │ ├── Insertion_Sort.java │ │ ├── RadixSort.java │ │ ├── SleepSort.java │ │ └── SlowSort.java │ └── python │ │ ├── BucketSort.py │ │ ├── CountingSort.py │ │ ├── RadixSort.py │ │ ├── SlowSort.py │ │ ├── bubble_sort.py │ │ └── insertion_Sort.py ├── Tower of Hanoi Recursion.txt ├── Trailingzeros.java ├── binary_exponentiation.cpp ├── breadth_first-search.java ├── bresenham.py ├── depth-first-search.java ├── huffman-code.c ├── max_sliding_window.cpp ├── rotate_matrix.cpp └── tic_tac_toe_game.cpp ├── Android ├── CaveMan │ ├── .gitignore │ ├── .idea │ │ ├── .gitignore │ │ ├── compiler.xml │ │ ├── encodings.xml │ │ ├── gradle.xml │ │ ├── jarRepositories.xml │ │ ├── misc.xml │ │ ├── runConfigurations.xml │ │ └── vcs.xml │ ├── README.md │ ├── SCORE.db │ ├── app │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── google-services.json │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── androidTest │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── caveman │ │ │ │ └── ExampleInstrumentedTest.java │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── caveman │ │ │ │ │ ├── CreditsActivity.java │ │ │ │ │ ├── Fire.java │ │ │ │ │ ├── FullScreenImageDraw.java │ │ │ │ │ ├── GameActivity.java │ │ │ │ │ ├── GameBackground.java │ │ │ │ │ ├── GameRenderer.java │ │ │ │ │ ├── GameView.java │ │ │ │ │ ├── HelpActivity.java │ │ │ │ │ ├── HighscoresActivity.java │ │ │ │ │ ├── IActivity.java │ │ │ │ │ ├── LevelFinishImage.java │ │ │ │ │ ├── LevelParser.java │ │ │ │ │ ├── LevelSelect.java │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ ├── OptionsActivity.java │ │ │ │ │ ├── Pipe.java │ │ │ │ │ ├── PlayerModel.java │ │ │ │ │ ├── ScoreDB.java │ │ │ │ │ ├── SplashScreenActivity.java │ │ │ │ │ ├── TextureLoader.java │ │ │ │ │ ├── UserInteract.java │ │ │ │ │ ├── enemies │ │ │ │ │ ├── BasicEnemy.java │ │ │ │ │ ├── BonusEnemy.java │ │ │ │ │ ├── FireEnemy.java │ │ │ │ │ ├── JumpingEnemy.java │ │ │ │ │ └── SimpleEnemy.java │ │ │ │ │ └── hero │ │ │ │ │ ├── Hero.java │ │ │ │ │ └── WeaponHandler.java │ │ │ └── res │ │ │ │ ├── anim-v4 │ │ │ │ └── slide_up.xml │ │ │ │ ├── anim-v8 │ │ │ │ ├── rotate.xml │ │ │ │ └── sequential.xml │ │ │ │ ├── anim │ │ │ │ ├── blink.xml │ │ │ │ ├── bounce.xml │ │ │ │ ├── clicked.xml │ │ │ │ ├── credits_animation.xml │ │ │ │ ├── fade_in.xml │ │ │ │ ├── fade_out.xml │ │ │ │ ├── move.xml │ │ │ │ ├── rotate.xml │ │ │ │ ├── sequential.xml │ │ │ │ ├── slide_down.xml │ │ │ │ └── slide_up.xml │ │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ ├── drawable │ │ │ │ ├── .directory │ │ │ │ ├── about1.jpg │ │ │ │ ├── about_checked.png │ │ │ │ ├── about_unchecked.png │ │ │ │ ├── androidcave.png │ │ │ │ ├── arrow.png │ │ │ │ ├── arrow1.png │ │ │ │ ├── axe.png │ │ │ │ ├── axe_test2.png │ │ │ │ ├── bad_feedback.png │ │ │ │ ├── bg.png │ │ │ │ ├── bonus_enemy.png │ │ │ │ ├── caveman.png │ │ │ │ ├── click_button_checked.png │ │ │ │ ├── click_button_unchecked.png │ │ │ │ ├── credits1.png │ │ │ │ ├── credits_checked.png │ │ │ │ ├── credits_unchecked.png │ │ │ │ ├── creditsmusic_layout.xml │ │ │ │ ├── fire.png │ │ │ │ ├── fire_enemy.png │ │ │ │ ├── follow_button_checked.png │ │ │ │ ├── follow_button_unchecked.png │ │ │ │ ├── game_image.png │ │ │ │ ├── game_over.png │ │ │ │ ├── good_feedback.png │ │ │ │ ├── help1.png │ │ │ │ ├── help_checked.png │ │ │ │ ├── help_unchecked.png │ │ │ │ ├── helpmusic_layout.xml │ │ │ │ ├── high_checked.png │ │ │ │ ├── high_unchecked.png │ │ │ │ ├── highmusicbutton_layout.xml │ │ │ │ ├── highscore1.png │ │ │ │ ├── i_button_checked.png │ │ │ │ ├── i_button_unchecked.png │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── ic_music_off.xml │ │ │ │ ├── ic_music_on.xml │ │ │ │ ├── jump_enemy.png │ │ │ │ ├── level1.png │ │ │ │ ├── lvlbg1.png │ │ │ │ ├── lvlbg2.png │ │ │ │ ├── lvlbg3.png │ │ │ │ ├── lvlbg4.png │ │ │ │ ├── lvlbg5.png │ │ │ │ ├── lvlbg6.png │ │ │ │ ├── lvlbgclick1.png │ │ │ │ ├── lvlbgclick2.png │ │ │ │ ├── lvlbgclick3.png │ │ │ │ ├── lvlbgclick4.png │ │ │ │ ├── lvlbgclick5.png │ │ │ │ ├── lvlbgclick6.png │ │ │ │ ├── menuback.png │ │ │ │ ├── menuback1.png │ │ │ │ ├── next_level.png │ │ │ │ ├── option1.jpg │ │ │ │ ├── options_checked.png │ │ │ │ ├── options_unchecked.png │ │ │ │ ├── play1.png │ │ │ │ ├── play_checked.png │ │ │ │ ├── play_unchecked.png │ │ │ │ ├── rate.png │ │ │ │ ├── settings_button.png │ │ │ │ ├── share_button_checked.png │ │ │ │ ├── share_button_unchecked.png │ │ │ │ ├── splash.png │ │ │ │ ├── splash_background.png │ │ │ │ ├── start1.png │ │ │ │ ├── togglebutton_layout.xml │ │ │ │ └── welcome.png │ │ │ │ ├── font │ │ │ │ └── luckiest_guy.xml │ │ │ │ ├── layout │ │ │ │ ├── activity_main.xml │ │ │ │ ├── arrowbutton1_layout.xml │ │ │ │ ├── arrowbutton_layout.xml │ │ │ │ ├── badbutton_layout.xml │ │ │ │ ├── clickbutton_layout.xml │ │ │ │ ├── credits_layout.xml │ │ │ │ ├── creditsbutton_layout.xml │ │ │ │ ├── followbutton_layout.xml │ │ │ │ ├── gamebutton_layout.xml │ │ │ │ ├── goodbutton_layout.xml │ │ │ │ ├── help_layout.xml │ │ │ │ ├── helpbutton_layout.xml │ │ │ │ ├── highbutton_layout.xml │ │ │ │ ├── highscores_layout.xml │ │ │ │ ├── i_layout.xml │ │ │ │ ├── ibutton_layout.xml │ │ │ │ ├── level_select_layout.xml │ │ │ │ ├── lvl_button1.xml │ │ │ │ ├── lvl_button2.xml │ │ │ │ ├── lvl_button3.xml │ │ │ │ ├── lvl_button4.xml │ │ │ │ ├── lvl_button5.xml │ │ │ │ ├── lvl_button6.xml │ │ │ │ ├── menu_layout.xml │ │ │ │ ├── my_list.xml │ │ │ │ ├── options_layout.xml │ │ │ │ ├── optionsbutton_layout.xml │ │ │ │ ├── ratebutton_layout.xml │ │ │ │ ├── settingsbutton_layout.xml │ │ │ │ ├── sharebutton_layout.xml │ │ │ │ ├── splash.xml │ │ │ │ └── welcomebutton_layout.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── raw │ │ │ │ ├── bonus_enemy_sound.mp3 │ │ │ │ ├── bstd.mp3 │ │ │ │ ├── click.ogg │ │ │ │ ├── demo.mp4 │ │ │ │ ├── fire_enemy_sound.mp3 │ │ │ │ ├── gameover_sound_2.wav │ │ │ │ ├── hrach.ogg │ │ │ │ ├── music1.mp3 │ │ │ │ ├── music11.mp3 │ │ │ │ ├── music2.mp3 │ │ │ │ ├── splash_background.mp3 │ │ │ │ └── wrongkill.mp3 │ │ │ │ ├── values-night │ │ │ │ └── themes.xml │ │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── font_certs.xml │ │ │ │ ├── preloaded_fonts.xml │ │ │ │ ├── strings.xml │ │ │ │ └── themes.xml │ │ │ │ └── xml │ │ │ │ ├── level1.xml │ │ │ │ ├── level2.xml │ │ │ │ ├── level3.xml │ │ │ │ ├── level4.xml │ │ │ │ ├── level5.xml │ │ │ │ └── level6.xml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── caveman │ │ │ └── ExampleUnitTest.java │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── images │ │ ├── 1.jpg │ │ ├── 10.jpg │ │ ├── 11.jpg │ │ ├── 12.jpg │ │ ├── 13.jpg │ │ ├── 14.jpg │ │ ├── 15.jpg │ │ ├── 16.jpg │ │ ├── 17.jpg │ │ ├── 18.jpg │ │ ├── 19.jpg │ │ ├── 2.jpg │ │ ├── 20.jpg │ │ ├── 21.jpg │ │ ├── 22.jpg │ │ ├── 23.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── 6.jpg │ │ ├── 7.jpg │ │ ├── 8.jpg │ │ └── 9.jpg │ └── settings.gradle ├── Dice Roller App │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── ramanand │ │ │ └── diceroller │ │ │ └── MainActivity.java │ └── res │ │ ├── drawable-v24 │ │ ├── dice1.png │ │ ├── dice2.png │ │ ├── dice3.png │ │ ├── dice4.png │ │ ├── dice5.png │ │ ├── dice6.png │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── values-night │ │ └── themes.xml │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── themes.xml ├── LoginScreen.xml ├── Music Player │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── audioplayer │ │ │ └── MainActivity.java │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ ├── coming_home.jpg │ │ ├── fantasy.jpg │ │ ├── headphone.png │ │ ├── ic_launcher_background.xml │ │ ├── mexicana.jpg │ │ ├── next.png │ │ ├── pause.png │ │ ├── play_button.png │ │ ├── previous.png │ │ ├── tropical_traveller.jpg │ │ ├── volumedown.png │ │ ├── volumeup.png │ │ └── with_you.jpg │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.webp │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.webp │ │ ├── raw │ │ ├── coming_home.mp3 │ │ ├── fantasy.mp3 │ │ ├── mexicana.mp3 │ │ ├── song.mp3 │ │ ├── tropical_traveller.mp3 │ │ └── with_you.mp3 │ │ ├── values-night │ │ └── themes.xml │ │ ├── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── themes.xml │ │ └── xml │ │ ├── backup_rules.xml │ │ └── data_extraction_rules.xml ├── Overview.txt ├── RetrofitClient.kt ├── SplashActivity.kt ├── ThrowableErrorStatesRetrofit.kt ├── ToDo List App │ ├── MainActivity.java │ └── activity_main.xml ├── activity_sign_in.xml ├── activity_sign_up.xml ├── activity_splash.xml ├── appContext.kt ├── checkNetworkConnection.kt ├── flutter_foldable_sidebar_demo │ ├── .gitignore │ ├── .metadata │ ├── README.md │ ├── android │ │ ├── .gitignore │ │ ├── app │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ │ ├── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ └── flutter_foldable_sidebar_demo │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── res │ │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ └── settings.gradle │ ├── assets │ │ ├── devs.jpg │ │ ├── powered_by.png │ │ └── rps_logo.png │ ├── ios │ │ ├── .gitignore │ │ ├── Flutter │ │ │ ├── AppFrameworkInfo.plist │ │ │ ├── Debug.xcconfig │ │ │ └── Release.xcconfig │ │ ├── Runner.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ ├── Runner.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── Runner │ │ │ ├── AppDelegate.swift │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ │ └── LaunchImage.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ └── README.md │ │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ │ ├── Info.plist │ │ │ └── Runner-Bridging-Header.h │ ├── lib │ │ ├── custom_sidebar_drawer.dart │ │ ├── home_screen.dart │ │ ├── main.dart │ │ └── splash_page.dart │ ├── pubspec.lock │ ├── pubspec.yaml │ └── test │ │ └── widget_test.dart ├── initNavDrawer.kt ├── recyclerViewAdapter.kt ├── rvItemAnimator.kt └── shareBitmapImage.kt ├── Artificial Intelligence ├── Create Iterative Deepening Search.py ├── Informed Search │ └── A Star │ │ ├── astar.py │ │ ├── heuristics.py │ │ └── main.py ├── N-Queens.py └── Uninformed Search │ ├── bfs.py │ ├── dfs.py │ └── main.py ├── Assembly Language ├── BubbleSort.asm ├── Merge Sort .asm ├── Overview └── SelectionSortApplication.asm ├── C Language ├── Addition_Of_Two_Matrices.c ├── Alphabet_Triangle.c ├── Armstrong _Number.c ├── Bank_Management_System.c ├── Binary_Search.c ├── Bubble_Sort.c ├── Calculator.c ├── Celsius_To_Fahrenheit.c ├── Converting_Number_Into_Characters.c ├── Counting_Sort.c ├── Decimal_To_Binary.c ├── Dijkstra_Algorithm.c ├── Fibonacci Series ├── Fibonacci_Series.c ├── Finding_Missing_Number.c ├── Full_pyramid_180.c ├── G.C.D Using Recursion.c ├── Generating_Fibonacci_Triangle.c ├── Insertion_Sort.c ├── Interpolation_Search_With_Recursion.c ├── Kadane’s_Algorithm.c ├── Kruskal's_Algorithm.c ├── Linear_Search.c ├── LinlList.c ├── Matrix_Multiplication.c ├── Merge_Sort.c ├── Number_Triangle.c ├── Overview.txt ├── Palindrome.c ├── PostTransition.c ├── Prime_Number.c ├── Queue_Using_Array.c ├── Runge_Kutta_Method_For_First_Order_DE.c ├── Selection_Sort.c ├── Simple_Interest_Calculator.c ├── Styled_name_print.c ├── Timsort.c ├── Tower_Of_Hanoi.c ├── Two_complex_num_addition.c ├── armstrong.c ├── binrec.c ├── double_linkedlist.c ├── fibrec.c ├── multiplication_table.c ├── multiplication_table_for_a_given_number.c ├── producer_consumer_problem.c ├── quadratic_eq.c ├── quicksort.c ├── recursive.c ├── selectsort.c └── stack-using-array.c ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── CP ├── 4Sum.cpp ├── CP_Maths(BASIC) │ ├── (cp_maths)1.cpp │ ├── (cp_maths)2.cpp │ └── (cp_maths)3.cpp ├── Common_elements.cpp.txt ├── Count_pairs_with_given_sum.cpp ├── Factorials_of_large_numbers.cpp.txt ├── HamiltonianCycle.cpp ├── Kadane’s Algorithm ├── Majority Element II.cpp ├── Non_degenerated_triangle(div4-D).cpp ├── TopologicalSort │ ├── UsingDFS.cpp │ └── UsingKahnAlgo.cpp ├── combination_sum.cpp ├── powx-n_LeetCode.cpp └── sieve_of_eratosthenes.cpp ├── Competitive programming template ├── template.cpp ├── template.kt └── template.py ├── Cryptography Algorithms ├── AutoKeyCipher.java ├── DiffieHellman.java ├── MultiplicativeCipher.java ├── PlayfairCipher.java ├── RSA.java ├── RailFenceCipher.java └── VigenereCipher.java ├── Data Structures ├── Array │ ├── Array_reversal.cpp │ ├── Array_rotation.cpp │ ├── Equillibrium Point.cpp │ ├── LeadersInAnArray.cpp │ ├── MaximumMin.java │ ├── Median of Two Sorted Arrays.cpp │ ├── MissingNumber.java │ ├── Peak_element.cpp │ ├── ReverseArray.java │ └── SetMatrixZeros.java ├── Binary Trees │ ├── Binary Tree Level Order Traversal.cpp │ ├── IdenticalTrees.cpp │ ├── SymmetricBinaryTree.cpp │ ├── construct_tree_from_inorder_preorder.cpp │ ├── inorder_traversal.cpp │ ├── level_order_zigzag.cpp │ └── verticle_print.cpp ├── Bogo Sort │ └── Bogo_Sort.cpp ├── Bucket_sort.c ├── Chocolate_Distribution_Problem.cpp ├── Graph │ ├── BFS code (matrix input).cpp │ ├── Depth_First_Search.cpp │ └── floyd-warshal.cpp ├── HashMaps │ ├── Extract Unique Characters.java │ ├── Longest subset zero sum.java │ ├── Pairs with difference K.java │ └── pair sum to 0.java ├── Heap │ ├── Create Heap Using STL Vector.txt │ ├── Heap Sort.txt │ └── Heapify_Faster_Method_to_CreateHeap_C++.txt ├── LinkedList │ ├── Check if a loop exists in SLL.cpp │ ├── Delete a Linked List │ ├── Find Middle Node of SLL.cpp │ ├── Find kth node from last of a SLL.cpp │ ├── LinkedLists.c │ └── Reverse a SLL.cpp ├── Merge Sort │ └── Merge Sort.cpp ├── Overview.txt ├── Queue │ └── queue.cpp ├── Radix_sort ├── Recursion │ ├── DFS_number _of_islands.cpp │ ├── Return Keypad Code.java │ ├── binrec.c │ ├── factrec.c │ ├── fibrec.c │ ├── generating_subset_string.cpp │ ├── recursive.c │ ├── rope_cutting.cpp │ └── tower_of_hanoi.cpp ├── Stack │ ├── BFS code (matrix input).cpp │ ├── Infix to Postfix.py │ ├── ParanthesisChecker.cpp │ ├── Stack.c │ ├── StackusingQueue.cpp │ ├── StockSpan.cpp │ ├── infix_to_postfix.cpp │ ├── postfixexpression_evaluation.py │ └── string reversal by stack.cpp ├── Tree │ ├── AVL TREES.txt │ ├── Check_balanced.cpp │ ├── Left_view_print.cpp │ ├── Level_order_traversal_line_by_line.cpp │ ├── Max_Width_of_bt.cpp │ ├── Print_Left_View.cpp │ └── Tree Traversals │ │ ├── inorderTraversal.cpp │ │ ├── postorderTraversal.cpp │ │ └── preorderTraversal.cpp └── quicksort ├── Java ├── BinarySearch.java ├── CountPairsWithGivenSum.java ├── GuessTheNumber.java ├── PasswordGenerator.java ├── Quick_sort.java ├── Radix_sort.java └── fibonacci.java ├── Kotlin Extensions └── Overview.txt ├── Machine Learning ├── .DS_Store ├── AttendanceTracker │ ├── Attendance.csv │ ├── Attendance.py │ └── Images │ │ ├── Narendra_Modi.jpg │ │ ├── Rohit.jpg │ │ ├── Roma.jpg │ │ ├── Shahrukh Khan.jpg │ │ ├── Vicky Kausal.jpg │ │ ├── Virat_Kohli.jpg │ │ ├── biden.jpg │ │ └── deepika-padukone.jpg ├── Covid data comparison plot │ ├── Covid_data_comparison_between_2_countries .ipynb │ └── owid-covid-data.csv ├── Face_Recognition │ ├── .DS_Store │ ├── assets │ │ ├── face.jpg │ │ └── haarcascade_frontalface_default.xml │ └── model │ │ └── Face_detection_using_OpenCV.ipynb ├── MulticlassClassification.ipynb ├── Overview.txt ├── Red_Wine_Quality_Project │ ├── Red_Wine_Quality.ipynb │ └── winequality-red.csv └── Super-Mario │ ├── README.md │ ├── __pycache__ │ ├── mario.cpython-38.pyc │ ├── metriclogger.cpython-38.pyc │ └── wrapper.cpython-38.pyc │ ├── mario.py │ ├── metriclogger.py │ ├── play.py │ ├── src │ ├── proj_folder │ ├── stage-2.png │ └── stage1-4.png │ ├── super mario.ipynb │ └── wrapper.py ├── Project └── Python │ ├── Hangman_game │ ├── hangman.py │ └── words.py │ ├── House-Price-Prediction │ ├── README.md │ ├── data_description.txt │ ├── dataset.csv │ ├── finalized_model.pkl │ ├── formulatedtest.csv │ ├── house-prediction-test-data.ipynb │ ├── house-price-prediction.ipynb │ ├── house_pred_deployment.py │ ├── requirements.txt │ ├── sample_submission.csv │ ├── submission.csv │ ├── test.csv │ └── train.csv │ ├── audio_translate.py │ ├── dino_game │ ├── assets │ │ ├── Bird │ │ │ ├── Bird1.png │ │ │ └── Bird2.png │ │ ├── Cactus │ │ │ ├── LargeCactus1.png │ │ │ ├── LargeCactus2.png │ │ │ ├── LargeCactus3.png │ │ │ ├── SmallCactus1.png │ │ │ ├── SmallCactus2.png │ │ │ └── SmallCactus3.png │ │ ├── Dino │ │ │ ├── DinoDead.png │ │ │ ├── DinoDuck1.png │ │ │ ├── DinoDuck2.png │ │ │ ├── DinoJump.png │ │ │ ├── DinoRun1.png │ │ │ ├── DinoRun2.png │ │ │ └── DinoStart.png │ │ ├── DinoWallpaper.png │ │ └── Other │ │ │ ├── Chrome Dino.gif │ │ │ ├── Chrome Dino.mp4 │ │ │ ├── Cloud.png │ │ │ ├── GameOver.png │ │ │ ├── Reset.png │ │ │ └── Track.png │ └── dino.py │ ├── passward.py │ ├── snake_game.py │ ├── speech_assistant.py │ ├── tic tac │ └── tictac.py │ └── youtube_downloader.py ├── Python ├── Arnold Cat Map.ipynb ├── Blur Algorithm.ipynb ├── CNN Architectures │ ├── Alexnet in Pytorch.ipynb │ ├── Alexnet_architecture.png │ ├── CIFAR-10 Pytorch.ipynb │ ├── CNN Pytorch.ipynb │ ├── GoogLeNet PyTorch.ipynb │ ├── GoogLeNet_architecture.png │ ├── LeNet Pytorch.ipynb │ ├── LeNet_architecture.png │ ├── MNIST Pytorch.ipynb │ ├── NIN_architecture.png │ ├── NiN PyTorch.ipynb │ ├── Pretrained Pytorch.ipynb │ ├── ResNet_VGG_architecture.png │ ├── Resnet in PyTorch.ipynb │ └── VGG in PyTorch.ipynb ├── Countodown timer in python ├── DSAinpy │ ├── DoublyLinkedList.py │ ├── SinglyLinkedList.py │ ├── ddl2bst.py │ ├── merge.py │ ├── mergedetect.py │ └── stack.py ├── Digital clock using Tkinter.py ├── Ensemble learning methods │ ├── .ipynb_checkpoints │ │ ├── AdaBoost-checkpoint.ipynb │ │ └── Random_Forest-checkpoint.ipynb │ ├── AdaBoost.ipynb │ └── Random_Forest.ipynb ├── Functions_to_handle_outliers.py ├── JS_Divergence.py ├── KL_Divergence.py ├── Linkedin_automation.py ├── LogisticRegression.ipynb ├── Notepad.py ├── PIL Scramble Image.ipynb ├── QRcode.py ├── SieveAlgo.py ├── Staircase.py ├── Video_Scrambler.ipynb ├── WhatsApp_automation.py ├── array_rotation.py ├── defineaword.py ├── fibonacci.py ├── invisible cloak └── multilevel queue scheduling.py ├── README.md ├── UI Models └── Overview.txt ├── Web development ├── 2048 Game │ ├── README.md │ ├── app.js │ ├── image.png │ ├── index.html │ └── style.css ├── BMI Calculator │ ├── app.js │ ├── index.html │ └── styles.css ├── CSS │ ├── ButtonAnimation.html │ └── Loading_Effect.html ├── Chat_app │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── chat.html │ │ ├── css │ │ │ ├── styles.css │ │ │ └── styles.min.css │ │ ├── img │ │ │ └── favicon.png │ │ ├── index.html │ │ └── js │ │ │ └── chat.js │ └── src │ │ ├── index.js │ │ └── utils │ │ ├── messages.js │ │ └── users.js ├── Colour Changer │ ├── index.html │ └── main.js ├── DrumKit │ ├── aa.jpg │ ├── bb.jpg │ ├── cc.jpg │ ├── dd.jpg │ ├── drumKit.js │ ├── drumkit.jpg │ ├── ee.jpg │ ├── ff.jpg │ ├── index.css │ ├── index.html │ ├── sounds_crash.mp3 │ ├── sounds_kick-bass.mp3 │ ├── sounds_snare.mp3 │ ├── sounds_tom-1.mp3 │ ├── sounds_tom-2.mp3 │ ├── sounds_tom-3.mp3 │ ├── sounds_tom-4.mp3 │ └── wa.jpg ├── Flappy-Game │ ├── fb-game-background.png │ ├── fbird.png │ ├── flappybird-pipe.png │ ├── index.html │ ├── script.js │ └── style.css ├── JS │ └── asyncawait.js ├── NewsApp │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ ├── about.txt │ │ ├── android-chrome-192x192.png │ │ ├── android-chrome-512x512.png │ │ ├── apple-touch-icon.png │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── manifest.json │ │ ├── robots.txt │ │ └── site.webmanifest │ └── src │ │ ├── App.css │ │ ├── App.js │ │ ├── App.test.js │ │ ├── assets │ │ ├── dumy.png │ │ └── loader.gif │ │ ├── components │ │ ├── Navbar.js │ │ ├── Spinner.js │ │ └── news │ │ │ ├── News.js │ │ │ └── NewsItem.js │ │ ├── index.css │ │ ├── index.js │ │ ├── logo.svg │ │ ├── reportWebVitals.js │ │ ├── sample.json │ │ ├── sampleData.json │ │ └── setupTests.js ├── Overview.txt ├── PopUp Design │ ├── index.html │ └── style.css ├── SurveyForm │ ├── README.md │ ├── Screenshot (61).png │ ├── index.html │ └── main.js ├── Temperature Calculator │ ├── index.html │ ├── script.js │ └── style.css ├── ToDo-List │ ├── index.html │ ├── script.js │ └── style.css ├── Website Project │ ├── index.html │ ├── script.js │ ├── style.css │ └── wesbite.md ├── crome-dino-game │ ├── README.md │ ├── cactus.js │ ├── dino.js │ ├── ground.js │ ├── imgs │ │ ├── cactus.png │ │ ├── dino-lose.png │ │ ├── dino-run-0.png │ │ ├── dino-run-1.png │ │ ├── dino-stationary.png │ │ └── ground.png │ ├── index.html │ ├── script.js │ ├── styles.css │ └── updateCustomProperty.js ├── notes_app │ ├── app.js │ ├── index.html │ └── todo.css ├── postpilot clone │ ├── css │ │ ├── hero.css │ │ └── main.css │ ├── images │ │ ├── Campaigns │ │ │ ├── img1.svg │ │ │ ├── logo1.svg │ │ │ ├── logo2.svg │ │ │ ├── logo3.svg │ │ │ └── logo4.svg │ │ ├── brands │ │ │ ├── 1.png │ │ │ ├── 2.png │ │ │ ├── 3.png │ │ │ ├── 4.png │ │ │ ├── logo1.svg │ │ │ ├── logo2.svg │ │ │ ├── logo3.svg │ │ │ └── logo4.svg │ │ ├── details │ │ │ ├── 1.svg │ │ │ ├── 2.svg │ │ │ ├── 3.svg │ │ │ ├── 4.svg │ │ │ ├── 5.svg │ │ │ └── 6.svg │ │ ├── footerLogo.svg │ │ ├── hero.png │ │ ├── logo.svg │ │ ├── mail.svg │ │ ├── testimonials │ │ │ ├── 1.svg │ │ │ ├── 2.svg │ │ │ ├── 3.svg │ │ │ └── comma.svg │ │ ├── trades │ │ │ ├── img1.svg │ │ │ ├── img2.svg │ │ │ └── img3.svg │ │ ├── try.svg │ │ └── tweets │ │ │ ├── user1.svg │ │ │ ├── user2.svg │ │ │ └── user3.svg │ ├── index.html │ └── js │ │ └── main.js ├── restaraunt website │ ├── restraunt website │ │ ├── about.css │ │ ├── about.html │ │ ├── booking.html │ │ ├── components.css │ │ ├── contact.html │ │ ├── globalStyles.css │ │ ├── home.css │ │ ├── images │ │ │ ├── 3star.png │ │ │ ├── address-icon.svg │ │ │ ├── discount-illustration.png │ │ │ ├── event-corporate.png │ │ │ ├── event-weedings.png │ │ │ ├── eventsMedia1.png │ │ │ ├── eventsMedia2.png │ │ │ ├── facebook.svg │ │ │ ├── favicon.ico │ │ │ ├── food-1.png │ │ │ ├── food-2.png │ │ │ ├── food-3.png │ │ │ ├── food-4.png │ │ │ ├── food-5.png │ │ │ ├── food-6.png │ │ │ ├── food-7.png │ │ │ ├── heroImg.png │ │ │ ├── logo.svg │ │ │ ├── ourGoals_img1.png │ │ │ ├── ourGoals_img2.png │ │ │ ├── ourStoryImg.png │ │ │ ├── phone-icon.svg │ │ │ ├── playIcon.svg │ │ │ ├── testimonial_img1.png │ │ │ ├── wall-clock-icon.svg │ │ │ ├── whyUs-icon1.svg │ │ │ ├── whyUs-icon2.svg │ │ │ ├── whyUs-icon3.svg │ │ │ └── whyUs-icon4.svg │ │ ├── images1 │ │ │ ├── cutlery.png │ │ │ ├── kisspng-chinese-cuisine-red-braised-pork-belly-sichuan-cui-delicious-home-cooking-dishes-image-5a713ea0e0a7d7.9729159215173710409202.png │ │ │ ├── kisspng-logo-restaurant-food-retro-food-labels-vector-image-5a6a00957cfc89.489852961516896405512.png │ │ │ ├── ourGoals_img3.png │ │ │ ├── pexels-chait-goli-7353487.jpg │ │ │ ├── pexels-marvin-ozz-2474661.jpg │ │ │ ├── pexels-pixabay-461198.jpg │ │ │ ├── pexels-sandra-filipe-6183636.jpg │ │ │ ├── pexels-sarthak-4331491.jpg │ │ │ ├── saktheeswaran-govindarajan-yCIcDyKm440-unsplash.jpg │ │ │ ├── saundarya-srinivasan-9CFwOcFCcDI-unsplash.jpg │ │ │ ├── shreyak-singh-0j4bisyPo3M-unsplash.jpg │ │ │ └── umesh-soni-g1qlhFbWPKg-unsplash.jpg │ │ ├── index.html │ │ ├── main.js │ │ ├── menu.css │ │ └── menu.html │ └── video link.txt └── task_manager │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── app.js │ ├── db │ │ └── mongoose.js │ ├── emails │ │ └── account.js │ ├── index.js │ ├── middleware │ │ └── auth.js │ ├── models │ │ ├── task.js │ │ └── user.js │ └── routers │ │ ├── task.js │ │ └── user.js │ └── tests │ ├── __mocks__ │ └── @sendgrid │ │ └── mail.js │ ├── fixtures │ ├── db.js │ └── fourohfour-bb96e22c56.png │ ├── task.test.js │ └── user.test.js ├── project_tree_structure.txt └── rust └── factorial.rs /Algorithms/2Pointer Algorithm/pairSum.cpp: -------------------------------------------------------------------------------- 1 | //PROGRAM TO FIND IF THERE EXIST ANY PAIR OF ELEMENTS SUCH THAT THEIR SUM IS 2 | //EQUAL TO x 3 | 4 | #include 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | int n; 10 | cin>>n; 11 | int arr[n]; 12 | for(int i=0;i>arr[i]; 15 | } 16 | int x; 17 | cin>>x; 18 | int start=0,end=n-1; 19 | while(startx) 23 | end--; 24 | else 25 | if(target& nums) { 8 | unordered_set< int> st; 9 | for(int i : nums) 10 | if(st.find(i) == st.end()) 11 | st.insert(i); 12 | else 13 | return true; 14 | return false; 15 | 16 | } 17 | }; -------------------------------------------------------------------------------- /Algorithms/Hash/ContainsDuplicate2.c++: -------------------------------------------------------------------------------- 1 | /* 2 | Leetcode Question link : https://leetcode.com/problems/contains-duplicate-ii/ 3 | */ 4 | 5 | class Solution { 6 | public: 7 | bool containsNearbyDuplicate(vector& nums, int k) { 8 | unordered_map mp; 9 | for(int i=0; i twoSum(vector& nums, int target) { 8 | unordered_map mp; 9 | vector ans; 10 | for(int i=0; i 3 | #include 4 | using namespace std; 5 | 6 | int maxSubArraySum(int a[], int size) 7 | { 8 | int max_so_far = INT_MIN, max_ending_here = 0; 9 | 10 | for (int i = 0; i < size; i++) 11 | { 12 | max_ending_here = max_ending_here + a[i]; 13 | if (max_so_far < max_ending_here) 14 | max_so_far = max_ending_here; 15 | 16 | if (max_ending_here < 0) 17 | max_ending_here = 0; 18 | } 19 | return max_so_far; 20 | } 21 | 22 | int main() 23 | { 24 | int a[] = {-2, -3, 8, -1, -2, 1, 5, -4}; 25 | int n = sizeof(a)/sizeof(a[0]); 26 | int max_sum = maxSubArraySum(a, n); 27 | cout << "Maximum contiguous sum is " << max_sum; 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /Algorithms/KadaneAlgorithm.java: -------------------------------------------------------------------------------- 1 | class Solution { 2 | public int maxSubArray(int[] nums) 3 | { 4 | int meh = 0,msf = Integer.MIN_VALUE; 5 | for(int i = 0;i msf) 11 | msf = meh; 12 | } 13 | return msf; 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Algorithms/Mathematical Algorithms/Lucky Numbers: -------------------------------------------------------------------------------- 1 | 2 | import java.io.*; 3 | 4 | class GFG 5 | { 6 | public static int counter = 2; 7 | 8 | 9 | static boolean isLucky(int n) 10 | { 11 | if(counter > n) 12 | return true; 13 | if(n%counter == 0) 14 | return false; 15 | 16 | 17 | int next_position = n - (n/counter); 18 | 19 | counter++; 20 | return isLucky(next_position); 21 | } 22 | 23 | // driver program 24 | public static void main (String[] args) 25 | { 26 | int x = 5; 27 | if( isLucky(x) ) 28 | System.out.println(x+" is a lucky no."); 29 | else 30 | System.out.println(x+" is not a lucky no."); 31 | } 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /Algorithms/Sorting Algorithms/cpp/InsertionSort.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | 5 | void insertionSort(int *arr, int n) 6 | { 7 | int i,j,temp; 8 | for(i=0;i=0 && arr[j] > temp) 13 | { 14 | arr[j+1] = arr[j]; 15 | j--; 16 | } 17 | arr[j+1] = temp; 18 | } 19 | } 20 | 21 | int main() 22 | { 23 | int size,i; 24 | cout<<"Enter the size of the array : "; 25 | cin>>size; 26 | int arr[size]; 27 | 28 | for(i=0;i>arr[i]; 30 | 31 | insertionSort(arr,size); 32 | 33 | for(i=0;i a[i+1] ): 12 | return False 13 | return True 14 | 15 | def shuffle(a): 16 | n = len(a) 17 | for i in range (0,n): 18 | r = random.randint(0,n-1) 19 | #swap 20 | a[i], a[r] = a[r], a[i] 21 | 22 | a = [3, 25, 41, 1, 37, 4] 23 | print (a) 24 | bogoSort(a) 25 | print (a) 26 | -------------------------------------------------------------------------------- /Algorithms/Sorting Algorithms/python/bubble_sort.py: -------------------------------------------------------------------------------- 1 | def BubbleSort(arr): 2 | 3 | # this loop is for the passes 4 | for i in range(len(arr)-1): 5 | # this loop is for the comparisions 6 | for j in range(0,len(arr)-1-i): 7 | if(arr[j]>arr[j+1]): 8 | temp = arr[j] 9 | arr[j] = arr[j+1] 10 | arr[j+1] = temp 11 | 12 | # finally return the array 13 | return arr 14 | 15 | 16 | # testing the BubbleSort function 17 | lt = [5,3,7,3,7,9] 18 | 19 | res = BubbleSort(lt) 20 | print(res) -------------------------------------------------------------------------------- /Algorithms/Sorting Algorithms/python/insertion_Sort.py: -------------------------------------------------------------------------------- 1 | def insertion_sort(n): 2 | for i in range(1, len(n)): 3 | to_insert = n[i] 4 | j = i - 1 5 | while j >= 0 and n[j] > to_insert: 6 | n[j + 1] = n[j] 7 | j -= 1 8 | n[j + 1] = to_insert 9 | 10 | check_nums = [51, 1, 125, 4, 5] 11 | insertion_sort(check_nums) 12 | print(check_nums) -------------------------------------------------------------------------------- /Algorithms/Tower of Hanoi Recursion.txt: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | using namespace std; 4 | void TOH(int n,int A,int B,int C) 5 | { 6 | if(n>0) 7 | { 8 | TOH(n-1,A,C,B); 9 | cout<= 0): 23 | y=y+1 24 | slope_error =slope_error - 2 * (x2 - x1) 25 | 26 | 27 | 28 | x1= int(input()) 29 | x2= int(input()) 30 | y1= int(input()) 31 | y2= int(input()) 32 | 33 | point1 = [x1,y1] 34 | point2 = [x2, y2] 35 | 36 | x_values = [point1[0], point2[0]] 37 | 38 | 39 | y_values = [point1[1], point2[1]] 40 | 41 | 42 | plt.plot(x_values,y_values) 43 | plt.show() 44 | 45 | -------------------------------------------------------------------------------- /Android/CaveMan/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | local.properties 16 | -------------------------------------------------------------------------------- /Android/CaveMan/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /Android/CaveMan/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Android/CaveMan/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Android/CaveMan/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /Android/CaveMan/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Android/CaveMan/SCORE.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/SCORE.db -------------------------------------------------------------------------------- /Android/CaveMan/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/java/com/example/caveman/Fire.java: -------------------------------------------------------------------------------- 1 | // This java code creates a fire that flames the axe if the last one passes through it and makes it capable to kill JumpingEnemies. 2 | 3 | package com.example.caveman; 4 | 5 | public class Fire extends com.example.caveman.TextureLoader { 6 | // draws the fire at the given height 7 | public Fire(int height) { 8 | super(R.drawable.fire, height); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/java/com/example/caveman/GameBackground.java: -------------------------------------------------------------------------------- 1 | // This java code creates the game background and draws it. =================================================== 2 | 3 | package com.example.caveman; 4 | 5 | public class GameBackground extends FullScreenImageDraw { 6 | 7 | //Sends the image to be drawn along with the display width and height to the superclass, that will draw them 8 | public GameBackground(int img, int height, int width) { 9 | super(img, height, width); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/java/com/example/caveman/LevelFinishImage.java: -------------------------------------------------------------------------------- 1 | // This java code Responsible for drawing images to inform the user when a level finishes. 2 | 3 | package com.example.caveman; 4 | 5 | public class LevelFinishImage extends FullScreenImageDraw { 6 | 7 | // Sends the image to be drawn along with the display width and height to the superclass, that will draw them 8 | public LevelFinishImage(int img, int height, int width) { 9 | super(img, height, width); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/java/com/example/caveman/enemies/BonusEnemy.java: -------------------------------------------------------------------------------- 1 | // This java code helps us to create simple enemies ================================ 2 | 3 | package com.example.caveman.enemies; 4 | 5 | import com.example.caveman.R; 6 | 7 | public class BonusEnemy extends BasicEnemy { 8 | 9 | // Sends to the superclass the icon to be drawn, the height of the display and a number that 10 | // indicates that this is a SimpleEnemy. 11 | public BonusEnemy(int height) { 12 | super(R.drawable.bonus_enemy, height, 3); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/java/com/example/caveman/enemies/FireEnemy.java: -------------------------------------------------------------------------------- 1 | // This java code helps us to create simple enemies ================================ 2 | 3 | package com.example.caveman.enemies; 4 | 5 | import com.example.caveman.R; 6 | 7 | public class FireEnemy extends BasicEnemy { 8 | 9 | // Sends to the superclass the icon to be drawn, the height of the display and a number that 10 | // indicates that this is a SimpleEnemy. 11 | public FireEnemy(int height) { 12 | super(R.drawable.fire_enemy, height, 2); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/java/com/example/caveman/enemies/JumpingEnemy.java: -------------------------------------------------------------------------------- 1 | // This java code will help us to create jumping enemy 2 | 3 | package com.example.caveman.enemies; 4 | 5 | import com.example.caveman.R; 6 | 7 | public class JumpingEnemy extends BasicEnemy { 8 | 9 | // Sends to the superclass the icon to be drawn, the height of the display and a number that 10 | // indicates that this is a JumpingEnemy. 11 | public JumpingEnemy(int height) { 12 | super(R.drawable.jump_enemy, height, 1); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/java/com/example/caveman/enemies/SimpleEnemy.java: -------------------------------------------------------------------------------- 1 | // This java code helps us to create simple enemies ================================ 2 | 3 | package com.example.caveman.enemies; 4 | 5 | import com.example.caveman.R; 6 | 7 | public class SimpleEnemy extends BasicEnemy { 8 | 9 | // Sends to the superclass the icon to be drawn, the height of the display and a number that 10 | // indicates that this is a SimpleEnemy. 11 | public SimpleEnemy(int height) { 12 | super(R.drawable.axe_test2, height, 0); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/java/com/example/caveman/hero/Hero.java: -------------------------------------------------------------------------------- 1 | // This java code creates the cave man ====================================================================== 2 | 3 | package com.example.caveman.hero; 4 | 5 | import com.example.caveman.R; 6 | import com.example.caveman.TextureLoader; 7 | 8 | public class Hero extends TextureLoader { 9 | 10 | // Creates a caveman and sends the image to be used to the TextureLoader class. 11 | public Hero(int height) { 12 | super(R.drawable.caveman, height); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim-v4/slide_up.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android:fillAfter="true" > 4 | 11 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim-v8/rotate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim/blink.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim/bounce.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android:fillAfter="true" 4 | android:interpolator="@android:anim/bounce_interpolator" > 5 | 11 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim/credits_animation.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 12 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim/fade_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim/fade_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android:fillAfter="true" > 4 | 9 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim/move.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android:fillAfter="true" 4 | android:interpolator="@android:anim/linear_interpolator" > 5 | 9 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim/rotate.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/anim/slide_up.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android:fillAfter="true" > 4 | 11 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/.directory: -------------------------------------------------------------------------------- 1 | [Dolphin] 2 | ShowPreview=true 3 | Timestamp=2011,6,7,14,33,33 4 | Version=2 5 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/about1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/about1.jpg -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/about_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/about_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/about_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/about_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/androidcave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/androidcave.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/arrow.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/arrow1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/arrow1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/axe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/axe.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/axe_test2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/axe_test2.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/bad_feedback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/bad_feedback.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/bg.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/bonus_enemy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/bonus_enemy.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/caveman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/caveman.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/click_button_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/click_button_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/click_button_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/click_button_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/credits1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/credits1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/credits_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/credits_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/credits_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/credits_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/creditsmusic_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/fire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/fire.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/fire_enemy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/fire_enemy.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/follow_button_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/follow_button_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/follow_button_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/follow_button_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/game_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/game_image.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/game_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/game_over.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/good_feedback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/good_feedback.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/help1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/help1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/help_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/help_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/help_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/help_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/helpmusic_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/high_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/high_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/high_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/high_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/highmusicbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/highscore1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/highscore1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/i_button_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/i_button_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/i_button_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/i_button_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/ic_music_off.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/ic_music_on.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/jump_enemy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/jump_enemy.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/level1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/level1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbg1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbg2.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbg3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbg3.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbg4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbg4.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbg5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbg5.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbg6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbg6.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbgclick1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbgclick1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbgclick2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbgclick2.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbgclick3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbgclick3.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbgclick4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbgclick4.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbgclick5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbgclick5.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/lvlbgclick6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/lvlbgclick6.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/menuback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/menuback.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/menuback1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/menuback1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/next_level.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/next_level.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/option1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/option1.jpg -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/options_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/options_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/options_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/options_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/play1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/play1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/play_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/play_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/play_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/play_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/rate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/rate.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/settings_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/settings_button.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/share_button_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/share_button_checked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/share_button_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/share_button_unchecked.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/splash.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/splash_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/splash_background.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/start1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/start1.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/togglebutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/drawable/welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/drawable/welcome.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/font/luckiest_guy.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/arrowbutton1_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/arrowbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/badbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/clickbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/creditsbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/followbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/gamebutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/goodbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/helpbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/highbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/ibutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/lvl_button1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/lvl_button2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/lvl_button3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/lvl_button4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/lvl_button5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/lvl_button6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/my_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/optionsbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/ratebutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/settingsbutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/sharebutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/layout/welcomebutton_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/bonus_enemy_sound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/bonus_enemy_sound.mp3 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/bstd.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/bstd.mp3 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/click.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/click.ogg -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/demo.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/demo.mp4 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/fire_enemy_sound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/fire_enemy_sound.mp3 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/gameover_sound_2.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/gameover_sound_2.wav -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/hrach.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/hrach.ogg -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/music1.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/music1.mp3 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/music11.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/music11.mp3 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/music2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/music2.mp3 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/splash_background.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/splash_background.mp3 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/raw/wrongkill.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/app/src/main/res/raw/wrongkill.mp3 -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/main/res/values/preloaded_fonts.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @font/luckiest_guy 5 | 6 | 7 | -------------------------------------------------------------------------------- /Android/CaveMan/app/src/test/java/com/example/caveman/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.caveman; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /Android/CaveMan/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:4.2.0' 9 | classpath 'com.google.gms:google-services:4.3.5' 10 | 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | google() 19 | jcenter() 20 | } 21 | } 22 | 23 | task clean(type: Delete) { 24 | delete rootProject.buildDir 25 | } -------------------------------------------------------------------------------- /Android/CaveMan/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Android/CaveMan/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Mar 22 14:17:51 IST 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip 7 | -------------------------------------------------------------------------------- /Android/CaveMan/images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/1.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/10.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/11.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/12.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/13.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/14.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/15.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/16.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/17.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/18.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/19.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/19.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/2.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/20.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/21.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/22.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/23.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/3.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/4.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/5.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/6.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/7.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/8.jpg -------------------------------------------------------------------------------- /Android/CaveMan/images/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/CaveMan/images/9.jpg -------------------------------------------------------------------------------- /Android/CaveMan/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name = "CaveMan" -------------------------------------------------------------------------------- /Android/Dice Roller App/res/drawable-v24/dice1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/drawable-v24/dice1.png -------------------------------------------------------------------------------- /Android/Dice Roller App/res/drawable-v24/dice2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/drawable-v24/dice2.png -------------------------------------------------------------------------------- /Android/Dice Roller App/res/drawable-v24/dice3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/drawable-v24/dice3.png -------------------------------------------------------------------------------- /Android/Dice Roller App/res/drawable-v24/dice4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/drawable-v24/dice4.png -------------------------------------------------------------------------------- /Android/Dice Roller App/res/drawable-v24/dice5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/drawable-v24/dice5.png -------------------------------------------------------------------------------- /Android/Dice Roller App/res/drawable-v24/dice6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/drawable-v24/dice6.png -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Dice Roller App/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Dice Roller App/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | -------------------------------------------------------------------------------- /Android/Dice Roller App/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Dice Roller 3 | -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/coming_home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/coming_home.jpg -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/fantasy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/fantasy.jpg -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/headphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/headphone.png -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/mexicana.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/mexicana.jpg -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/next.png -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/pause.png -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/play_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/play_button.png -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/previous.png -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/tropical_traveller.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/tropical_traveller.jpg -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/volumedown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/volumedown.png -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/volumeup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/volumeup.png -------------------------------------------------------------------------------- /Android/Music Player/res/drawable/with_you.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/drawable/with_you.jpg -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Music Player/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /Android/Music Player/res/raw/coming_home.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/raw/coming_home.mp3 -------------------------------------------------------------------------------- /Android/Music Player/res/raw/fantasy.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/raw/fantasy.mp3 -------------------------------------------------------------------------------- /Android/Music Player/res/raw/mexicana.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/raw/mexicana.mp3 -------------------------------------------------------------------------------- /Android/Music Player/res/raw/song.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/raw/song.mp3 -------------------------------------------------------------------------------- /Android/Music Player/res/raw/tropical_traveller.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/raw/tropical_traveller.mp3 -------------------------------------------------------------------------------- /Android/Music Player/res/raw/with_you.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/Music Player/res/raw/with_you.mp3 -------------------------------------------------------------------------------- /Android/Music Player/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | -------------------------------------------------------------------------------- /Android/Music Player/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | AudioPlayer 3 | 4 | 5 | >]]> 6 | || 7 | -------------------------------------------------------------------------------- /Android/Music Player/res/xml/backup_rules.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /Android/Music Player/res/xml/data_extraction_rules.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 12 | 13 | 19 | -------------------------------------------------------------------------------- /Android/Overview.txt: -------------------------------------------------------------------------------- 1 | This folder will contain useful snippets for Android Development -------------------------------------------------------------------------------- /Android/checkNetworkConnection.kt: -------------------------------------------------------------------------------- 1 | /** 2 | * Make sure to use ctx for fragment classes 3 | */ 4 | 5 | fun checkIsNetworkConnected(context: Context): Boolean { 6 | 7 | val connectivityManager = 8 | context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager 9 | val activeNetwork = connectivityManager.activeNetwork 10 | val networkCapabilities = connectivityManager.getNetworkCapabilities(activeNetwork) 11 | return networkCapabilities != null && 12 | networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: bbfbf1770cca2da7c82e887e4e4af910034800b6 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/main/kotlin/com/example/flutter_foldable_sidebar_demo/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_foldable_sidebar_demo 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/assets/devs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/assets/devs.jpg -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/assets/powered_by.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/assets/powered_by.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/assets/rps_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/assets/rps_logo.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /Android/flutter_foldable_sidebar_demo/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_foldable_sidebar_demo/home_screen.dart'; 3 | import 'package:flutter_foldable_sidebar_demo/splash_page.dart'; 4 | 5 | void main() { 6 | runApp(MyApp()); 7 | } 8 | 9 | class MyApp extends StatelessWidget { 10 | @override 11 | Widget build(BuildContext context) { 12 | return MaterialApp( 13 | debugShowCheckedModeBanner: false, 14 | theme: ThemeData( 15 | primarySwatch: Colors.blue, 16 | visualDensity: VisualDensity.adaptivePlatformDensity, 17 | ), 18 | home: Splash(), 19 | ); 20 | } 21 | } 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Android/rvItemAnimator.kt: -------------------------------------------------------------------------------- 1 | private fun runLayoutAnimation(recyclerView: RecyclerView) { 2 | val context = recyclerView.context 3 | recyclerView.layoutAnimation = AnimationUtils.loadLayoutAnimation( 4 | context, 5 | R.anim.layout_fall_down 6 | ) 7 | recyclerView.adapter?.notifyDataSetChanged() 8 | recyclerView.scheduleLayoutAnimation() 9 | } 10 | 11 | 12 | //When using for rv 13 | /** 14 | * recyclerView.adapter = mAdapter 15 | * runLayoutAnimation(recyclerView) 16 | * 17 | * . . . 18 | */ -------------------------------------------------------------------------------- /Artificial Intelligence/Informed Search/A Star/main.py: -------------------------------------------------------------------------------- 1 | # Importing python packages 2 | import numpy as np 3 | 4 | # Importing A* Algo 5 | from astar import use_astar 6 | 7 | if __name__ == "__main__": 8 | # Zero is taken as the blank one 9 | initial_state = np.arange(9) 10 | np.random.shuffle(initial_state) 11 | initial_state = initial_state.reshape(3, -1) 12 | 13 | # Final State 14 | final_state = np.array([1,2,3,4,5,6,7,8,0]).reshape(3,-1) 15 | 16 | # Using A* Algo 17 | use_astar(initial_state, final_state, False) -------------------------------------------------------------------------------- /Artificial Intelligence/Uninformed Search/main.py: -------------------------------------------------------------------------------- 1 | # Importing python packages 2 | import numpy as np 3 | 4 | # Importing BFS Algo 5 | from bfs import use_bfs 6 | 7 | # Importing DFS Algo 8 | from dfs import use_dfs 9 | 10 | if __name__ == "__main__": 11 | # Zero is taken as the blank one 12 | initial_state = np.arange(9) 13 | np.random.shuffle(initial_state) 14 | initial_state = initial_state.reshape(3, -1) 15 | 16 | # Final State 17 | final_state = np.array([1,2,3,4,5,6,7,8,0]).reshape(3,-1) 18 | 19 | # Using BFS Algo 20 | use_bfs(initial_state, final_state) 21 | 22 | # Using DFS Algo 23 | use_dfs(initial_state, final_state) -------------------------------------------------------------------------------- /Assembly Language/Overview: -------------------------------------------------------------------------------- 1 | This folder contains code samples for MIPS assembly language 2 | (Tested over QTSPIM Architecture) 3 | -------------------------------------------------------------------------------- /C Language/Alphabet_Triangle.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main(){ 4 | int ch=65; 5 | int i,j,k,m; 6 | system("cls"); 7 | for(i=1;i<=5;i++) 8 | { 9 | for(j=5;j>=i;j--) 10 | printf(" "); 11 | for(k=1;k<=i;k++) 12 | printf("%c",ch++); 13 | ch--; 14 | for(m=1;m 2 | 3 | int main() 4 | { 5 | 6 | 7 | float celsius, fahrenheit; 8 | printf("\n\nEnter temperature in Celsius: "); 9 | scanf("%f", &celsius); 10 | 11 | fahrenheit = (1.8*celsius) + 32; 12 | 13 | printf("\n\n\nTemperature in Fahrenheit is: %f ", fahrenheit); 14 | printf("\n\n\t\t\tCoding is Fun !\n\n\n"); 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /C Language/Decimal_To_Binary.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() 4 | { 5 | int a[10],n,i; 6 | system ("cls"); 7 | printf("Enter the number to convert: "); 8 | scanf("%d",&n); 9 | for(i=0;n>0;i++) 10 | { 11 | a[i]=n%2; 12 | n=n/2; 13 | } 14 | printf("\nBinary of Given Number is="); 15 | for(i=i-1;i>=0;i--) 16 | { 17 | printf("%d",a[i]); 18 | } 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /C Language/Fibonacci Series: -------------------------------------------------------------------------------- 1 | #include 2 | int main() 3 | { 4 | int n1=0,n2=1,n3,i,number; 5 | printf("Enter the number of elements:"); 6 | scanf("%d",&number); 7 | printf("\n%d %d",n1,n2);//printing 0 and 1 8 | for(i=2;i 2 | 3 | int fibonacci(int i) { 4 | 5 | if(i == 0) { 6 | return 0; 7 | } 8 | 9 | if(i == 1) { 10 | return 1; 11 | } 12 | return fibonacci(i-1) + fibonacci(i-2); 13 | } 14 | 15 | int main() { 16 | 17 | int i; 18 | 19 | for (i = 0; i < 10; i++) { 20 | printf("%d\t\n", fibonacci(i)); 21 | } 22 | 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /C Language/Finding_Missing_Number.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | void main(){ 4 | int i,n,sum=0,missing; 5 | printf("enter the size of an array : "); 6 | scanf("%d",&n); 7 | int arr[n-1]; 8 | printf("please give value to insert in array: \n"); 9 | for(i=0;i 8 | int main() 9 | { 10 | int num, row, clm, space; 11 | printf("How many lines : "); 12 | scanf("%d", &num); 13 | printf("\n"); 14 | 15 | for (row = num; row >= 1; --row) 16 | { 17 | for (space = 0; space < num - row; ++space) 18 | printf(" "); 19 | for (clm=row;clm <= 2*row-1; ++clm) 20 | printf("* "); 21 | for (clm = 0; clm < row - 1; ++clm) 22 | printf("* "); 23 | printf("\n"); 24 | } 25 | 26 | return 0; 27 | } 28 | -------------------------------------------------------------------------------- /C Language/G.C.D Using Recursion.c: -------------------------------------------------------------------------------- 1 | #include 2 | int hcf(int n1, int n2); 3 | int main() { 4 | int n1, n2; 5 | printf("Enter two positive integers: "); 6 | scanf("%d %d", &n1, &n2); 7 | printf("G.C.D of %d and %d is %d.", n1, n2, hcf(n1, n2)); 8 | return 0; 9 | } 10 | 11 | int hcf(int n1, int n2) { 12 | if (n2 != 0) 13 | return hcf(n2, n1 % n2); 14 | else 15 | return n1; 16 | } 17 | -------------------------------------------------------------------------------- /C Language/Generating_Fibonacci_Triangle.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main(){ 4 | int a=0,b=1,i,c,n,j; 5 | system("cls"); 6 | printf("Enter the limit:"); 7 | scanf("%d",&n); 8 | for(i=1;i<=n;i++) 9 | { 10 | a=0; 11 | b=1; 12 | printf("%d\t",b); 13 | for(j=1;j 2 | void main () 3 | { 4 | int a[10] = {10, 23, 40, 1, 2, 0, 14, 13, 50, 9}; 5 | int item, i,flag; 6 | printf("\nEnter Item which is to be searched\n"); 7 | scanf("%d",&item); 8 | for (i = 0; i< 10; i++) 9 | { 10 | if(a[i] == item) 11 | { 12 | flag = i+1; 13 | break; 14 | } 15 | else 16 | flag = 0; 17 | } 18 | if(flag != 0) 19 | { 20 | printf("\nItem found at location %d\n",flag); 21 | } 22 | else 23 | { 24 | printf("\nItem not found\n"); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /C Language/Number_Triangle.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main(){ 4 | int i,j,k,l,n; 5 | system("cls"); 6 | printf("enter the range="); 7 | scanf("%d",&n); 8 | for(i=1;i<=n;i++) 9 | { 10 | for(j=1;j<=n-i;j++) 11 | { 12 | printf(" "); 13 | } 14 | for(k=1;k<=i;k++) 15 | { 16 | printf("%d",k); 17 | } 18 | for(l=i-1;l>=1;l--) 19 | { 20 | printf("%d",l); 21 | } 22 | printf("\n"); 23 | } 24 | return 0; 25 | } 26 | -------------------------------------------------------------------------------- /C Language/Overview.txt: -------------------------------------------------------------------------------- 1 | This folder contains code for C files. -------------------------------------------------------------------------------- /C Language/Palindrome.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() 3 | { 4 | int n,r,sum=0,temp; 5 | printf("enter the number="); 6 | scanf("%d",&n); 7 | temp=n; 8 | while(n>0) 9 | { 10 | r=n%10; 11 | sum=(sum*10)+r; 12 | n=n/10; 13 | } 14 | if(temp==sum) 15 | printf("palindrome number "); 16 | else 17 | printf("not palindrome"); 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /C Language/Prime_Number.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() 3 | { 4 | int n, i, flag = 0; 5 | printf("Enter a positive integer: "); 6 | scanf("%d", &n); 7 | 8 | for (i = 2; i <= n / 2; ++i) 9 | { 10 | // condition for non-prime 11 | if (n % i == 0) { 12 | flag = 1; 13 | break; 14 | } 15 | } 16 | 17 | if (n == 1) { 18 | printf("1 is neither prime nor composite."); 19 | } 20 | else { 21 | if (flag == 0) 22 | printf("%d is a prime number.", n); 23 | else 24 | printf("%d is not a prime number.", n); 25 | } 26 | 27 | return 0; 28 | } 29 | -------------------------------------------------------------------------------- /C Language/Simple_Interest_Calculator.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() 3 | { 4 | float P , R , T , SI ; 5 | P =34000; R =30; T = 5; 6 | SI = (P*R*T)/100; 7 | printf("\n\n Simple Interest is : %f", SI); 8 | return (0); 9 | } 10 | -------------------------------------------------------------------------------- /C Language/armstrong.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() 4 | { 5 | int a,n=1,i,c,sum=0; 6 | printf("enter an integer\n"); 7 | scanf("%d",&a); 8 | c=a; 9 | for(i=1;a/10>0;i=i+1) 10 | { 11 | a=a/10; 12 | n=n+1; 13 | } 14 | a=c; 15 | for(i=n;i>0;i=i-1) 16 | { 17 | sum=sum+pow((a%10),3); 18 | a=a/10; 19 | } 20 | if(sum==c) 21 | { 22 | printf("armstrong number"); 23 | } 24 | else 25 | { 26 | printf("not an armstrong number"); 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /C Language/binrec.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int binsearch(int a[], int elem, int start,int end){ 4 | int mid = start + end / 2; 5 | if(elem == a[mid]) 6 | return mid; 7 | else if(start > end) 8 | return -1; 9 | else if(a[mid] > elem) 10 | return binsearch(a,elem,start,mid); 11 | else 12 | return binsearch(a,elem,mid,end); 13 | } 14 | 15 | int main(void){ 16 | int i,a[5],elem, t; 17 | printf("Enter elements for array\n"); 18 | for(i=0;i<5;i++){ 19 | printf("%d: ",i); 20 | scanf("%d",&a[i]); 21 | } 22 | printf("Enter element to search: "); 23 | scanf("%d",&elem); 24 | t= binsearch(a,elem,0,5); 25 | if(t==-1){ 26 | printf("Element not found\n"); 27 | }else 28 | printf("The element was found at position: %d\n", t); 29 | return 0; 30 | } 31 | -------------------------------------------------------------------------------- /C Language/fibrec.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void fib(int n,int a,int b,int j); 4 | void main() 5 | { 6 | int size,x=0,y=1,i=1; 7 | printf("Enter number of entries: "); 8 | scanf("%d", &size); 9 | printf("%d ",x); 10 | fib(size,x,y,i); 11 | } 12 | 13 | void fib(int n,int a,int b,int j) 14 | { 15 | int s; 16 | if(j 2 | int main() { 3 | 4 | int n, i, range; 5 | printf("Enter an integer: "); 6 | scanf("%d", &n); 7 | 8 | // prompt user for positive range 9 | do { 10 | printf("Enter the range (positive integer): "); 11 | scanf("%d", &range); 12 | } while (range <= 0); 13 | 14 | for (i = 1; i <= range; ++i) { 15 | printf("%d * %d = %d \n", n, i, n * i); 16 | } 17 | 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /C Language/multiplication_table_for_a_given_number.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() 3 | { 4 | int n, i; 5 | printf("Enter an integer: "); 6 | scanf("%d", &n); 7 | for (i = 1; i <= 10; ++i) { 8 | printf("%d * %d = %d \n", n, i, n * i); 9 | } 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /C Language/quadratic_eq.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() 4 | { 5 | int a,b,c,d,x,y,i; 6 | printf("enter the coefficients of the equation\n"); 7 | scanf("%d,%d,%d",&a,&b,&c); 8 | d=(b*b)-(4*a*c); 9 | i=pow(d,1/2); 10 | if(d>0) 11 | { 12 | x=(-b+i)/(2*a); 13 | y=(-b-i)/(2*a); 14 | printf("the roots are %d and %d",x,y); 15 | } 16 | else if(d==0) 17 | { 18 | i=0; 19 | x=y=(i-b)/(2*a); 20 | printf("the roots are equal and equal to %d",x); 21 | } 22 | else 23 | { 24 | printf("the roots are imaginary"); 25 | } 26 | return 0; 27 | } 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /C Language/recursive.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int linsearch(int* a, int ele, int i){ 4 | if(ele==*a){ 5 | return(i); 6 | } 7 | a++; 8 | return linsearch(a, ele, ++i); 9 | } 10 | 11 | int main(){ 12 | int a[5], ele; 13 | printf("Enter elements of array(5):\n"); 14 | int i=0; 15 | while(i<5){ 16 | printf("%d: ",i); 17 | scanf("%d", &a[i]); 18 | ++i; 19 | } 20 | printf("Enter element to search: "); 21 | scanf("%d", &ele); 22 | int p; 23 | p= linsearch(a,ele,0); 24 | printf("Element found at position: %d\n",p+1); 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /C Language/selectsort.c: -------------------------------------------------------------------------------- 1 | #include 2 | void main() 3 | { 4 | int n,i,t,j,a[20]; 5 | printf("Enter size:"); 6 | scanf("%d",&n); 7 | printf("\nEnter the elements:"); 8 | for(i=0;i 5 | using namespace std; 6 | int gcd(int a, int b) 7 | { 8 | if (b == 0) 9 | { 10 | return a; 11 | } 12 | return gcd(b, a % b); 13 | } 14 | int main() 15 | { 16 | int a, b; 17 | cin >> a >> b; 18 | cout << gcd(a, b) << "\n"; 19 | // cout<<"lcm :"< 4 | using namespace std; 5 | int pow(int a, long long int b) 6 | { 7 | if (b == 0) 8 | { 9 | return 1; 10 | } 11 | int half = pow(a, b / 2); 12 | int ans; 13 | if (b % 2 == 0) 14 | { 15 | ans = 1LL * half * half; 16 | } 17 | else 18 | { 19 | ans = 1LL * half * half; 20 | ans = 1LL * ans * a; 21 | } 22 | return ans; 23 | } 24 | int main() 25 | { 26 | int a, b, m; 27 | cin >> a >> b >> m; 28 | cout << pow(a, b); 29 | return 0; 30 | } -------------------------------------------------------------------------------- /CP/sieve_of_eratosthenes.cpp: -------------------------------------------------------------------------------- 1 | // SIEVE OF ERATOSTHENES 2 | 3 | // For efficient prime number generation in O(nlog(logn)). 4 | 5 | #include 6 | #include 7 | using namespace std; 8 | int main() 9 | { 10 | int n; 11 | cin >> n; 12 | vector isprime(n + 1, true); 13 | isprime[0] = isprime[1] = false; 14 | for (int i = 1; i <= n; i++) 15 | { 16 | if (!isprime[i]) 17 | continue; 18 | // if prime 19 | for (int j = i + i; j <= n; j += i) 20 | { 21 | isprime[j] = false; 22 | } 23 | } 24 | for (int i = 0; i <= n; i++) 25 | { 26 | cout << isprime[i] << "\n"; 27 | } 28 | 29 | return 0; 30 | } -------------------------------------------------------------------------------- /Data Structures/Array/Array_reversal.cpp: -------------------------------------------------------------------------------- 1 | void rvereseArray(int arr[], int start, int end) 2 | { 3 | while (start < end) 4 | swap(arr[start++],arr[end--]); 5 | } 6 | -------------------------------------------------------------------------------- /Data Structures/Array/MaximumMin.java: -------------------------------------------------------------------------------- 1 | //Find the maximum and minimum element in array 2 | public class MaximumMin{ 3 | public static void main(String args[]){ 4 | //Intializing the original array 5 | int arr[] = new int [] {19,44,77,-200,-50,33}; 6 | int max=arr[0]; 7 | int min=arr[0]; 8 | 9 | for(int i=1;iarr[i]){ 14 | min=arr[i]; 15 | } 16 | } 17 | System.out.println("max no is: "+max+" min no is: "+min); 18 | } 19 | } 20 | 21 | //output: 22 | //max no is 77 min no is -200 23 | -------------------------------------------------------------------------------- /Data Structures/Array/MissingNumber.java: -------------------------------------------------------------------------------- 1 | /* Given an array of size N-1 such that it only contains distinct integers in the range of 1 to N. Find the missing element. */ 2 | 3 | class Solution { 4 | int MissingNumber(int array[], int n) { 5 | int Sum = (n*(n+1))/2; 6 | int i,sumObtain=0; 7 | for(i=0;i 2 | 3 | int binsearch(int a[], int elem, int start,int end){ 4 | int mid = start + end / 2; 5 | if(elem == a[mid]) 6 | return mid; 7 | else if(start > end) 8 | return -1; 9 | else if(a[mid] > elem) 10 | return binsearch(a,elem,start,mid); 11 | else 12 | return binsearch(a,elem,mid,end); 13 | } 14 | 15 | int main(void){ 16 | int i,a[5],elem, t; 17 | printf("Enter elements for array\n"); 18 | for(i=0;i<5;i++){ 19 | printf("%d: ",i); 20 | scanf("%d",&a[i]); 21 | } 22 | printf("Enter element to search: "); 23 | scanf("%d",&elem); 24 | t= binsearch(a,elem,0,5); 25 | if(t==-1){ 26 | printf("Element not found\n"); 27 | }else 28 | printf("The element was found at position: %d\n", t); 29 | return 0; 30 | } 31 | -------------------------------------------------------------------------------- /Data Structures/Recursion/factrec.c: -------------------------------------------------------------------------------- 1 | #include 2 | int fact(int n); 3 | void main() 4 | {int n,f; 5 | printf("Enter number:"); 6 | scanf("%d",&n); 7 | f=fact(n); 8 | printf("\nFactorial:%d\n",f); 9 | } 10 | 11 | int fact(int n) 12 | { 13 | 14 | if(n==1) 15 | { 16 | return(1); 17 | } 18 | else 19 | { 20 | return(n*fact(n-1)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Data Structures/Recursion/fibrec.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void fib(int n,int a,int b,int j); 4 | void main() 5 | { 6 | int size,x=0,y=1,i=1; 7 | printf("Enter number of entries: "); 8 | scanf("%d", &size); 9 | printf("%d ",x); 10 | fib(size,x,y,i); 11 | } 12 | 13 | void fib(int n,int a,int b,int j) 14 | { 15 | int s; 16 | if(j 2 | using namespace std; 3 | 4 | 5 | void printSub(string str, string curr, int index) 6 | { 7 | if(index == str.length()) 8 | { 9 | cout< 2 | 3 | int linsearch(int* a, int ele, int i){ 4 | if(ele==*a){ 5 | return(i); 6 | } 7 | a++; 8 | return linsearch(a, ele, ++i); 9 | } 10 | 11 | int main(){ 12 | int a[5], ele; 13 | printf("Enter elements of array(5):\n"); 14 | int i=0; 15 | while(i<5){ 16 | printf("%d: ",i); 17 | scanf("%d", &a[i]); 18 | ++i; 19 | } 20 | printf("Enter element to search: "); 21 | scanf("%d", &ele); 22 | int p; 23 | p= linsearch(a,ele,0); 24 | printf("Element found at position: %d\n",p+1); 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /Data Structures/Recursion/rope_cutting.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | 5 | int maxCuts(int n, int a, int b, int c) 6 | { 7 | if(n == 0) 8 | return 0; 9 | if(n <= -1) 10 | return -1; 11 | 12 | int res = max(maxCuts(n-a, a, b, c), 13 | max(maxCuts(n-b, a, b, c), 14 | maxCuts(n-c, a, b, c))); 15 | 16 | if(res == -1) 17 | return -1; 18 | 19 | return res + 1; 20 | } 21 | int main() { 22 | 23 | int n = 5, a = 2, b = 1, c = 5; 24 | 25 | cout< 2 | using namespace std; 3 | 4 | 5 | void ToH(int n, char A, char B, char C) 6 | { 7 | if (n == 1) 8 | { 9 | cout<<"Move 1 from " << A << " to " << C << endl; 10 | return; 11 | } 12 | ToH(n-1, A, C, B); 13 | cout<<"Move " << n << " from " << A << " to " << C << endl; 14 | ToH(n-1, B, A, C); 15 | } 16 | 17 | int main() { 18 | 19 | int n = 2; 20 | 21 | ToH(n, 'A', 'B', 'C'); 22 | 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /Data Structures/Stack/StockSpan.cpp: -------------------------------------------------------------------------------- 1 | // Stock Span Problem 2 | 3 | #include 4 | using namespace std; 5 | 6 | int main() 7 | { 8 | int n; 9 | cout<<"Enter number of days: "<>n; 11 | int arr[n]; 12 | cout<<"Enter Prices of Stock for each day: "<>arr[i]; 16 | } 17 | 18 | stack s; 19 | s.push(0); 20 | for(int i=0;i 9 | 10 | ## Mario agent playing at stage : 1-4 11 | 12 | 13 | -------------------------------------------------------------------------------- /Machine Learning/Super-Mario/__pycache__/mario.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Machine Learning/Super-Mario/__pycache__/mario.cpython-38.pyc -------------------------------------------------------------------------------- /Machine Learning/Super-Mario/__pycache__/metriclogger.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Machine Learning/Super-Mario/__pycache__/metriclogger.cpython-38.pyc -------------------------------------------------------------------------------- /Machine Learning/Super-Mario/__pycache__/wrapper.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Machine Learning/Super-Mario/__pycache__/wrapper.cpython-38.pyc -------------------------------------------------------------------------------- /Machine Learning/Super-Mario/src/proj_folder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Machine Learning/Super-Mario/src/proj_folder -------------------------------------------------------------------------------- /Machine Learning/Super-Mario/src/stage-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Machine Learning/Super-Mario/src/stage-2.png -------------------------------------------------------------------------------- /Machine Learning/Super-Mario/src/stage1-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Machine Learning/Super-Mario/src/stage1-4.png -------------------------------------------------------------------------------- /Project/Python/House-Price-Prediction/finalized_model.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/House-Price-Prediction/finalized_model.pkl -------------------------------------------------------------------------------- /Project/Python/House-Price-Prediction/requirements.txt: -------------------------------------------------------------------------------- 1 | streamlit==1.13.0 2 | pandas==1.4.2 3 | matplotlib==3.5.1 4 | plotly==5.6.0 5 | seaborn==0.11.2 6 | xgboost==1.6.2 7 | shap==0.41.0 -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Bird/Bird1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Bird/Bird1.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Bird/Bird2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Bird/Bird2.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Cactus/LargeCactus1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Cactus/LargeCactus1.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Cactus/LargeCactus2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Cactus/LargeCactus2.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Cactus/LargeCactus3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Cactus/LargeCactus3.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Cactus/SmallCactus1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Cactus/SmallCactus1.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Cactus/SmallCactus2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Cactus/SmallCactus2.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Cactus/SmallCactus3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Cactus/SmallCactus3.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Dino/DinoDead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Dino/DinoDead.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Dino/DinoDuck1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Dino/DinoDuck1.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Dino/DinoDuck2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Dino/DinoDuck2.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Dino/DinoJump.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Dino/DinoJump.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Dino/DinoRun1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Dino/DinoRun1.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Dino/DinoRun2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Dino/DinoRun2.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Dino/DinoStart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Dino/DinoStart.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/DinoWallpaper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/DinoWallpaper.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Other/Chrome Dino.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Other/Chrome Dino.gif -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Other/Chrome Dino.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Other/Chrome Dino.mp4 -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Other/Cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Other/Cloud.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Other/GameOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Other/GameOver.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Other/Reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Other/Reset.png -------------------------------------------------------------------------------- /Project/Python/dino_game/assets/Other/Track.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Project/Python/dino_game/assets/Other/Track.png -------------------------------------------------------------------------------- /Project/Python/passward.py: -------------------------------------------------------------------------------- 1 | import string 2 | import random 3 | 4 | if __name__ == "__main__": 5 | s1 = string.ascii_lowercase 6 | 7 | s2 = string.ascii_uppercase 8 | 9 | s3 = string.digits 10 | 11 | s4 = string.punctuation 12 | 13 | pln = int(input("Enter password length\n")) 14 | s = [] 15 | s.extend(list(s1)) 16 | s.extend(list(s2)) 17 | s.extend(list(s3)) 18 | s.extend(list(s4)) 19 | 20 | print("Your password is: ") 21 | print("".join(random.sample(s, pln))) 22 | 23 | 24 | -------------------------------------------------------------------------------- /Python/CNN Architectures/Alexnet_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Python/CNN Architectures/Alexnet_architecture.png -------------------------------------------------------------------------------- /Python/CNN Architectures/GoogLeNet_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Python/CNN Architectures/GoogLeNet_architecture.png -------------------------------------------------------------------------------- /Python/CNN Architectures/LeNet_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Python/CNN Architectures/LeNet_architecture.png -------------------------------------------------------------------------------- /Python/CNN Architectures/NIN_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Python/CNN Architectures/NIN_architecture.png -------------------------------------------------------------------------------- /Python/CNN Architectures/ResNet_VGG_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Python/CNN Architectures/ResNet_VGG_architecture.png -------------------------------------------------------------------------------- /Python/Countodown timer in python: -------------------------------------------------------------------------------- 1 | import time 2 | 3 | # The countdown function is defined below 4 | 5 | def countdown(t): 6 | 7 | while t: 8 | 9 | mins, secs = divmod(t, 60) 10 | 11 | timer = '{:02d}:{:02d}'.format(mins, secs) 12 | 13 | print(timer, end="\r") 14 | 15 | time.sleep(1) 16 | 17 | t -= 1 18 | 19 | print('Lift off!') 20 | 21 | # Ask the user to enter the countdown period in seconds 22 | 23 | t = input("Enter the time in seconds: ") 24 | 25 | # function call 26 | 27 | countdown(int(t)) 28 | -------------------------------------------------------------------------------- /Python/DSAinpy/mergedetect.py: -------------------------------------------------------------------------------- 1 | class Node: 2 | def __init__(self, dataval=None): 3 | self.data = data 4 | self.next = None 5 | 6 | def detectMerge(list1,list2): 7 | temp1 = list1 8 | temp2 = list2 9 | while temp1 != None: 10 | while temp2 != None: 11 | if temp1 == temp2: 12 | return True 13 | temp2 = temp2.self.next 14 | temp2 = list2 15 | temp1 = temp1.next 16 | return False 17 | 18 | 19 | if __name__ == "__main__": 20 | list1 =[1,2,3,4,5] 21 | list2 = [7,8, 4,5] 22 | 23 | if detectMerge(list1,list2): 24 | print('Merged') 25 | else: 26 | print('Not Merged') 27 | 28 | -------------------------------------------------------------------------------- /Python/JS_Divergence.py: -------------------------------------------------------------------------------- 1 | from math import log2 2 | 3 | def kl_divergence(p, q): 4 | kl_divergence = 0 5 | for i in range(min(len(p),len(q))): 6 | kl_divergence += p[i] * log2(p[i]/q[i]) 7 | return kl_divergence 8 | 9 | 10 | def js_divergence(p, q): 11 | p = [float(x) for x in p] 12 | q = [float(x) for x in q] 13 | m = [] 14 | for i in range(min(len(p),len(q))): 15 | m.append((p[i]+q[i])/2) 16 | return 0.5 * kl_divergence(p, m) + 0.5 * kl_divergence(q, m) 17 | 18 | p = [0.5, 0.3, 0.1, 0.1] 19 | q = [0.2, 0.3, 0.2, 0.3] 20 | 21 | jsd = js_divergence(p, q) 22 | print(jsd) 23 | -------------------------------------------------------------------------------- /Python/KL_Divergence.py: -------------------------------------------------------------------------------- 1 | from math import log2 2 | 3 | def kl_divergence(p, q): 4 | kl_divergence = 0 5 | for i in range(min(len(p),len(q))): 6 | kl_divergence += p[i] * log2(p[i]/q[i]) 7 | return kl_divergence 8 | 9 | p = [0.5, 0.3, 0.1, 0.1] 10 | q = [0.2, 0.3, 0.2, 0.3] 11 | 12 | kld = kl_divergence(p, q) 13 | print(kld) 14 | -------------------------------------------------------------------------------- /Python/Linkedin_automation.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | from selenium.webdriver.common.keys import Keys 3 | import pyautogui as pag 4 | 5 | 6 | def login(): 7 | username = driver.find_element_by_id("login-email") 8 | username.send_keys("username") 9 | password = driver.find_element_by_id("login-password") 10 | password.send_keys("password") 11 | driver.find_element_by_id("login-submit").click() 12 | 13 | def goto_network(): 14 | driver.find_element_by_id("mynetwork-tab-icon").click() 15 | 16 | def send_requests(): 17 | n = input("Number of requests: ") 18 | 19 | for i in range(0, n): 20 | pag.click(880, 770) 21 | print("Completed!") 22 | -------------------------------------------------------------------------------- /Python/QRcode.py: -------------------------------------------------------------------------------- 1 | import pyqrcode 2 | from pyqrcode import QRCode 3 | 4 | # String which represent the QR code 5 | s = "https://www.youtube.com/github" 6 | 7 | # Generate QR code 8 | url = pyqrcode.create(s) 9 | 10 | # Create and save the png file naming "myqr.png" 11 | url.svg("myyoutube.svg", scale = 8) 12 | -------------------------------------------------------------------------------- /Python/SieveAlgo.py: -------------------------------------------------------------------------------- 1 | # Python program to print all Primes Smaller 2 | # than or equal to N using Sieve of Eratosthenes 3 | 4 | 5 | def SieveOfEratosthenes(num): 6 | prime = [True for i in range(num+1)] 7 | # boolean array 8 | p = 2 9 | while (p * p <= num): 10 | 11 | # If prime[p] is not 12 | # changed, then it is a prime 13 | if (prime[p] == True): 14 | 15 | # Updating all multiples of p 16 | for i in range(p * p, num+1, p): 17 | prime[i] = False 18 | p += 1 19 | 20 | # Print all prime numbers 21 | for p in range(2, num+1): 22 | if prime[p]: 23 | print(p) 24 | 25 | 26 | # Driver code 27 | if __name__ == '__main__': 28 | num = 50 29 | print("Following are the prime numbers smaller"), 30 | print("than or equal to", num) 31 | SieveOfEratosthenes(num) 32 | -------------------------------------------------------------------------------- /Python/Staircase.py: -------------------------------------------------------------------------------- 1 | # Number of ways to reach the nth stair. 2 | def countways(n): 3 | dp = [0]*(n+1) 4 | dp[0]=0 5 | dp[1]=1 6 | dp[2]=2 7 | for i in range(3,n+1): 8 | dp[i]=dp[i-1]+dp[i-2] 9 | return dp[n] 10 | 11 | n=int(input()) 12 | print(countways(n)) 13 | -------------------------------------------------------------------------------- /Python/array_rotation.py: -------------------------------------------------------------------------------- 1 | #Python program that rotates an array by two positions to the right 2 | orig_list = [23, 12, 5, 24, 23, 76, 86, 24, 86, 24, 75] 3 | print("Original list before rotation: ", orig_list) 4 | n=2 # rotate by 2 places 5 | if n>len(orig_list): 6 | n = int(n%len(orig_list)) 7 | orig_list = (orig_list[-n:] + orig_list[:-n]) 8 | print("List after rotation is : ", orig_list) 9 | -------------------------------------------------------------------------------- /Python/fibonacci.py: -------------------------------------------------------------------------------- 1 | # Nth fibonacci number 2 | def fib(n): 3 | if n==0: 4 | return 0 5 | elif n==1: 6 | return 1 7 | else: 8 | return fib(n-1)+fib(n-2) 9 | 10 | n=int(input()) 11 | print(fib(n)) 12 | -------------------------------------------------------------------------------- /UI Models/Overview.txt: -------------------------------------------------------------------------------- 1 | This folder contains UI designs for web/mobile applications -------------------------------------------------------------------------------- /Web development/2048 Game/README.md: -------------------------------------------------------------------------------- 1 | # 2048 2 | 3 | Join the tiles, get to 2048! 4 | HOW TO PLAY: Use your arrow keys to move the tiles. Tiles with the same number merge into one when they touch. Add them up to reach 2048! and win . you will loose when grid is full and no merge can take place . 5 | 6 | ![alt text](image.png) 7 | 8 | DEMO :- https://prasanbora.github.io/2048/ -------------------------------------------------------------------------------- /Web development/2048 Game/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/2048 Game/image.png -------------------------------------------------------------------------------- /Web development/Chat_app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chat_app", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node src/index.js", 8 | "dev": "nodemon src/index.js" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "bad-words": "^3.0.4", 14 | "express": "^4.18.1", 15 | "nodemon": "^2.0.19", 16 | "socket.io": "^4.5.2" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Web development/Chat_app/public/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/Chat_app/public/img/favicon.png -------------------------------------------------------------------------------- /Web development/Chat_app/src/utils/messages.js: -------------------------------------------------------------------------------- 1 | const generateMessage = (username, text) => { 2 | return { 3 | username, 4 | text, 5 | createdAt: new Date().getTime() 6 | } 7 | } 8 | const generateLocationMessage = (username, url) => { 9 | return { 10 | username, 11 | url, 12 | createdAt: new Date().getTime() 13 | } 14 | } 15 | 16 | module.exports = { 17 | generateMessage, 18 | generateLocationMessage 19 | } -------------------------------------------------------------------------------- /Web development/Colour Changer/main.js: -------------------------------------------------------------------------------- 1 | const btn = document.querySelector('button'); 2 | const global = document.querySelector('html'); 3 | 4 | btn.addEventListener('click', changeColor); 5 | 6 | function changeColor() 7 | { 8 | let newColor = 'rgba(' + Math.floor(Math.random()*255+1) + ',' + Math.floor(Math.random()*255+1) + ',' + Math.floor(Math.random()*255+1) + ',' + Math.floor(Math.random()+1) + ')'; 9 | global.style.backgroundColor = newColor; 10 | } -------------------------------------------------------------------------------- /Web development/DrumKit/aa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/aa.jpg -------------------------------------------------------------------------------- /Web development/DrumKit/bb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/bb.jpg -------------------------------------------------------------------------------- /Web development/DrumKit/cc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/cc.jpg -------------------------------------------------------------------------------- /Web development/DrumKit/dd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/dd.jpg -------------------------------------------------------------------------------- /Web development/DrumKit/drumkit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/drumkit.jpg -------------------------------------------------------------------------------- /Web development/DrumKit/ee.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/ee.jpg -------------------------------------------------------------------------------- /Web development/DrumKit/ff.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/ff.jpg -------------------------------------------------------------------------------- /Web development/DrumKit/sounds_crash.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/sounds_crash.mp3 -------------------------------------------------------------------------------- /Web development/DrumKit/sounds_kick-bass.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/sounds_kick-bass.mp3 -------------------------------------------------------------------------------- /Web development/DrumKit/sounds_snare.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/sounds_snare.mp3 -------------------------------------------------------------------------------- /Web development/DrumKit/sounds_tom-1.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/sounds_tom-1.mp3 -------------------------------------------------------------------------------- /Web development/DrumKit/sounds_tom-2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/sounds_tom-2.mp3 -------------------------------------------------------------------------------- /Web development/DrumKit/sounds_tom-3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/sounds_tom-3.mp3 -------------------------------------------------------------------------------- /Web development/DrumKit/sounds_tom-4.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/sounds_tom-4.mp3 -------------------------------------------------------------------------------- /Web development/DrumKit/wa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/DrumKit/wa.jpg -------------------------------------------------------------------------------- /Web development/Flappy-Game/fb-game-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/Flappy-Game/fb-game-background.png -------------------------------------------------------------------------------- /Web development/Flappy-Game/fbird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/Flappy-Game/fbird.png -------------------------------------------------------------------------------- /Web development/Flappy-Game/flappybird-pipe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/Flappy-Game/flappybird-pipe.png -------------------------------------------------------------------------------- /Web development/Flappy-Game/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | FLAPPY BIRD GAME 8 | 9 | 10 | 11 | 12 |
13 |
14 |
15 |
16 |
SCORE: 0
17 | 18 |
19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Web development/JS/asyncawait.js: -------------------------------------------------------------------------------- 1 | const githubUsers = async () => { 2 | let response = await fetch(`https://api.github.com/users`); 3 | let user = await response.json(); 4 | 5 | return user; 6 | }; 7 | 8 | githubUsers(); -------------------------------------------------------------------------------- /Web development/NewsApp/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | package-lock.json 25 | -------------------------------------------------------------------------------- /Web development/NewsApp/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ``` 4 | 5 | ## Get API Key 6 | - Visit [newsapi.org](https://newsapi.org/) 7 | - Login and Copy the API key. 8 | - open the *".env"* file. 9 | - Replace the 'Your_API_Key' to the copied API key. 10 | 11 | -------------------------------------------------------------------------------- /Web development/NewsApp/public/about.txt: -------------------------------------------------------------------------------- 1 | This favicon was generated using the following font: 2 | 3 | - Font Title: ADLaM Display 4 | - Font Author: Copyright (c) 2022 by Microsoft. All rights reserved. 5 | - Font Source: https://fonts.gstatic.com/s/adlamdisplay/v1/KFOhCnGXkPOLlhx6jD8_b1ZECsHYkYBPY3o.ttf 6 | - Font License: SIL Open Font License, 1.1 (http://scripts.sil.org/OFL)) 7 | -------------------------------------------------------------------------------- /Web development/NewsApp/public/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/public/android-chrome-192x192.png -------------------------------------------------------------------------------- /Web development/NewsApp/public/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/public/android-chrome-512x512.png -------------------------------------------------------------------------------- /Web development/NewsApp/public/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/public/apple-touch-icon.png -------------------------------------------------------------------------------- /Web development/NewsApp/public/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/public/favicon-16x16.png -------------------------------------------------------------------------------- /Web development/NewsApp/public/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/public/favicon-32x32.png -------------------------------------------------------------------------------- /Web development/NewsApp/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/public/favicon.ico -------------------------------------------------------------------------------- /Web development/NewsApp/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /Web development/NewsApp/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /Web development/NewsApp/public/site.webmanifest: -------------------------------------------------------------------------------- 1 | {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} -------------------------------------------------------------------------------- /Web development/NewsApp/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Web development/NewsApp/src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /Web development/NewsApp/src/assets/dumy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/src/assets/dumy.png -------------------------------------------------------------------------------- /Web development/NewsApp/src/assets/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/src/assets/loader.gif -------------------------------------------------------------------------------- /Web development/NewsApp/src/components/Spinner.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import loadder from "../assets/loader.gif" 3 | 4 | export class Spinner extends Component { 5 | render() { 6 | return ( 7 |
8 | Loading 9 |
10 | ) 11 | } 12 | } 13 | 14 | export default Spinner 15 | -------------------------------------------------------------------------------- /Web development/NewsApp/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/NewsApp/src/index.css -------------------------------------------------------------------------------- /Web development/NewsApp/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | const root = ReactDOM.createRoot(document.getElementById('root')); 7 | root.render( 8 | 9 | 10 | 11 | ); 12 | 13 | -------------------------------------------------------------------------------- /Web development/NewsApp/src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /Web development/NewsApp/src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /Web development/Overview.txt: -------------------------------------------------------------------------------- 1 | Code Snippets for Web Development -------------------------------------------------------------------------------- /Web development/SurveyForm/README.md: -------------------------------------------------------------------------------- 1 | ![alt text](<./Screenshot%20(61).png>) 2 | -------------------------------------------------------------------------------- /Web development/SurveyForm/Screenshot (61).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/SurveyForm/Screenshot (61).png -------------------------------------------------------------------------------- /Web development/ToDo-List/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Todo List 8 | 9 | 10 |

todos

11 |
12 | 13 | 14 |
    15 |
    16 | Left click to toggle completed.
    Right click to delete todo
    17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Web development/Website Project/wesbite.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Web development/crome-dino-game/README.md: -------------------------------------------------------------------------------- 1 | # Crome-dinoGame 2 | -------------------------------------------------------------------------------- /Web development/crome-dino-game/ground.js: -------------------------------------------------------------------------------- 1 | import { 2 | getCustomProperty, 3 | incrementCustomProperty, 4 | setCustomProperty, 5 | } from "./updateCustomProperty.js" 6 | 7 | const SPEED = 0.05 8 | const groundElems = document.querySelectorAll("[data-ground]") 9 | 10 | export function setupGround() { 11 | setCustomProperty(groundElems[0], "--left", 0) 12 | setCustomProperty(groundElems[1], "--left", 300) 13 | } 14 | 15 | export function updateGround(delta, speedScale) { 16 | groundElems.forEach(ground => { 17 | incrementCustomProperty(ground, "--left", delta * speedScale * SPEED * -1) 18 | 19 | if (getCustomProperty(ground, "--left") <= -300) { 20 | incrementCustomProperty(ground, "--left", 600) 21 | } 22 | }) 23 | } 24 | -------------------------------------------------------------------------------- /Web development/crome-dino-game/imgs/cactus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/crome-dino-game/imgs/cactus.png -------------------------------------------------------------------------------- /Web development/crome-dino-game/imgs/dino-lose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/crome-dino-game/imgs/dino-lose.png -------------------------------------------------------------------------------- /Web development/crome-dino-game/imgs/dino-run-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/crome-dino-game/imgs/dino-run-0.png -------------------------------------------------------------------------------- /Web development/crome-dino-game/imgs/dino-run-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/crome-dino-game/imgs/dino-run-1.png -------------------------------------------------------------------------------- /Web development/crome-dino-game/imgs/dino-stationary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/crome-dino-game/imgs/dino-stationary.png -------------------------------------------------------------------------------- /Web development/crome-dino-game/imgs/ground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/crome-dino-game/imgs/ground.png -------------------------------------------------------------------------------- /Web development/crome-dino-game/updateCustomProperty.js: -------------------------------------------------------------------------------- 1 | export function getCustomProperty(elem, prop) { 2 | return parseFloat(getComputedStyle(elem).getPropertyValue(prop)) || 0 3 | } 4 | 5 | export function setCustomProperty(elem, prop, value) { 6 | elem.style.setProperty(prop, value) 7 | } 8 | 9 | export function incrementCustomProperty(elem, prop, inc) { 10 | setCustomProperty(elem, prop, getCustomProperty(elem, prop) + inc) 11 | } 12 | -------------------------------------------------------------------------------- /Web development/notes_app/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | To Do List 9 | 10 | 11 | 12 |
    13 |

    to do list

    14 | 15 |
      16 | 17 |
    18 | 19 | 20 | 21 | 22 |

    Insert a new task

    23 |
    24 | 25 | 26 | -------------------------------------------------------------------------------- /Web development/postpilot clone/css/hero.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/postpilot clone/css/hero.css -------------------------------------------------------------------------------- /Web development/postpilot clone/images/brands/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/postpilot clone/images/brands/1.png -------------------------------------------------------------------------------- /Web development/postpilot clone/images/brands/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/postpilot clone/images/brands/2.png -------------------------------------------------------------------------------- /Web development/postpilot clone/images/brands/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/postpilot clone/images/brands/3.png -------------------------------------------------------------------------------- /Web development/postpilot clone/images/brands/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/postpilot clone/images/brands/4.png -------------------------------------------------------------------------------- /Web development/postpilot clone/images/hero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/postpilot clone/images/hero.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/3star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/3star.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/discount-illustration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/discount-illustration.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/event-corporate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/event-corporate.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/event-weedings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/event-weedings.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/eventsMedia1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/eventsMedia1.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/eventsMedia2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/eventsMedia2.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/facebook.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/favicon.ico -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/food-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/food-1.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/food-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/food-2.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/food-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/food-3.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/food-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/food-4.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/food-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/food-5.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/food-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/food-6.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/food-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/food-7.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/heroImg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/heroImg.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/ourGoals_img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/ourGoals_img1.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/ourGoals_img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/ourGoals_img2.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/ourStoryImg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/ourStoryImg.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/testimonial_img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images/testimonial_img1.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images/wall-clock-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/cutlery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/cutlery.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/kisspng-chinese-cuisine-red-braised-pork-belly-sichuan-cui-delicious-home-cooking-dishes-image-5a713ea0e0a7d7.9729159215173710409202.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/kisspng-chinese-cuisine-red-braised-pork-belly-sichuan-cui-delicious-home-cooking-dishes-image-5a713ea0e0a7d7.9729159215173710409202.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/kisspng-logo-restaurant-food-retro-food-labels-vector-image-5a6a00957cfc89.489852961516896405512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/kisspng-logo-restaurant-food-retro-food-labels-vector-image-5a6a00957cfc89.489852961516896405512.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/ourGoals_img3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/ourGoals_img3.png -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/pexels-chait-goli-7353487.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/pexels-chait-goli-7353487.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/pexels-marvin-ozz-2474661.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/pexels-marvin-ozz-2474661.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/pexels-pixabay-461198.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/pexels-pixabay-461198.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/pexels-sandra-filipe-6183636.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/pexels-sandra-filipe-6183636.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/pexels-sarthak-4331491.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/pexels-sarthak-4331491.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/saktheeswaran-govindarajan-yCIcDyKm440-unsplash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/saktheeswaran-govindarajan-yCIcDyKm440-unsplash.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/saundarya-srinivasan-9CFwOcFCcDI-unsplash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/saundarya-srinivasan-9CFwOcFCcDI-unsplash.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/shreyak-singh-0j4bisyPo3M-unsplash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/shreyak-singh-0j4bisyPo3M-unsplash.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/restraunt website/images1/umesh-soni-g1qlhFbWPKg-unsplash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/restaraunt website/restraunt website/images1/umesh-soni-g1qlhFbWPKg-unsplash.jpg -------------------------------------------------------------------------------- /Web development/restaraunt website/video link.txt: -------------------------------------------------------------------------------- 1 | https://www.youtube.com/watch?v=4y-_3Ayiauw -------------------------------------------------------------------------------- /Web development/task_manager/src/app.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | require('./db/mongoose') 3 | const userRouter = require('./routers/user') 4 | const taskRouter = require('./routers/task') 5 | 6 | const app = express() 7 | 8 | app.use(express.json()) 9 | app.use(userRouter) 10 | app.use(taskRouter) 11 | 12 | module.exports = app -------------------------------------------------------------------------------- /Web development/task_manager/src/db/mongoose.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose') 2 | 3 | mongoose.connect(process.env.MONGODB_URL) -------------------------------------------------------------------------------- /Web development/task_manager/src/index.js: -------------------------------------------------------------------------------- 1 | const app = require('./app') 2 | const port = process.env.PORT 3 | 4 | app.listen(port, () => { 5 | console.log('Server is up on port' + port) 6 | }) -------------------------------------------------------------------------------- /Web development/task_manager/src/middleware/auth.js: -------------------------------------------------------------------------------- 1 | const jwt = require('jsonwebtoken') 2 | const User = require('../models/user') 3 | 4 | const auth = async (req, res, next) => { 5 | try { 6 | const token = req.header('Authorization').replace('Bearer ', '') 7 | const decoded = jwt.verify(token, process.env.JWT_SECRET) 8 | const user = await User.findOne({ _id: decoded._id, 'tokens.token': token }) 9 | 10 | if (!user) { 11 | throw new Error() 12 | } 13 | 14 | req.token = token 15 | req.user = user 16 | next() 17 | 18 | } catch (e) { 19 | res.status(401).send({ error: 'Please authenticate' }) 20 | } 21 | } 22 | 23 | module.exports = auth -------------------------------------------------------------------------------- /Web development/task_manager/src/models/task.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose') 2 | 3 | const taskSchema = new mongoose.Schema({ 4 | description: { 5 | type: String, 6 | required: true, 7 | trim: true 8 | }, 9 | completed: { 10 | type: Boolean, 11 | default: false 12 | }, 13 | owner: { 14 | type: mongoose.Schema.Types.ObjectId, 15 | required: true, 16 | ref: 'User' 17 | } 18 | }, { 19 | timestamps: true 20 | }) 21 | 22 | const Task = mongoose.model('Task', taskSchema) 23 | 24 | module.exports = Task -------------------------------------------------------------------------------- /Web development/task_manager/tests/__mocks__/@sendgrid/mail.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | setApiKey() { 3 | 4 | }, 5 | send() { 6 | 7 | } 8 | } -------------------------------------------------------------------------------- /Web development/task_manager/tests/fixtures/fourohfour-bb96e22c56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kavya-24/Snippets/6dcfcdec5b085c8257202418411283dd6a2f4c10/Web development/task_manager/tests/fixtures/fourohfour-bb96e22c56.png --------------------------------------------------------------------------------