├── .github └── workflows │ └── automerge.yml ├── All FCC javascript and datastructures challenge solutions ├── caesars-cipher.txt ├── cash-register.txt ├── palindrome-checker.txt ├── roman-numeral-converter.txt └── telephone-number-validator.txt ├── Android └── Snake-master │ ├── .github │ └── ISSUE_TEMPLATE │ │ ├── bug_report.md │ │ └── feature_request.md │ ├── .gitignore │ ├── .idea │ ├── .gitignore │ ├── jarRepositories.xml │ └── runConfigurations.xml │ ├── CODE_OF_CONDUCT.md │ ├── README.md │ ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ ├── death_sound.ogg │ │ └── get_mouse_sound.ogg │ │ ├── java │ │ └── com │ │ │ └── asif │ │ │ └── snake │ │ │ ├── AppConstants.java │ │ │ ├── SettingActivity.java │ │ │ ├── SnakeActivity.java │ │ │ ├── SnakeHelper │ │ │ ├── DrawControl.java │ │ │ └── SnakeMovement.java │ │ │ └── SnakeView.java │ │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_setting.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 │ │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── C Language ├── C_algos_ds │ ├── Krushkal-MST.c │ ├── Linked list.c │ ├── QueueinC.c │ ├── StackinLL.c │ ├── floydWarshall.c │ ├── inheritance.cpp │ └── open chaining.c ├── C_basic_programs │ ├── ConvertBase10toBase2.c │ ├── josephusGeneral.c │ ├── max.c │ └── patternNew.c ├── C_sorting_searching │ ├── Radix Sort │ ├── bubbleSort.c │ ├── insertionSort.c │ ├── linearSearch.c │ └── quicksort.c ├── Cable Car │ ├── Cable car.c │ ├── Cable car.exe │ ├── Cable car.ppj │ ├── Cable car.ppx │ ├── Cable car.tag │ ├── diningPhilosopher.c │ └── output │ │ └── Cable car.obj ├── TERNARY OPERATER.c ├── casey and chris │ ├── Casey and Chris.c │ ├── casey and chris.exe │ ├── casey and chris.ppj │ ├── casey and chris.ppx │ ├── casey and chris.tag │ └── output │ │ └── Casey and Chris.obj ├── fractionalKnapsack.c ├── insertion.cpp └── speed-Bridge problem │ ├── speed-Bridge problem.c │ ├── speed-Bridge problem.ppj │ └── speed-Bridge problem.ppx ├── C# ├── Additionoftwonumbers.cs ├── ElectricityBill │ ├── .vs │ │ ├── ElectricityBill │ │ │ ├── DesignTimeBuild │ │ │ │ └── .dtbcache.v2 │ │ │ └── v16 │ │ │ │ └── .suo │ │ ├── ProjectSettings.json │ │ ├── VSWorkspaceState.json │ │ └── slnx.sqlite │ ├── ElectricityBill.csproj │ ├── ElectricityBill.sln │ ├── Program.cs │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp3.1 │ │ │ ├── ElectricityBill.deps.json │ │ │ ├── ElectricityBill.dll │ │ │ ├── ElectricityBill.exe │ │ │ ├── ElectricityBill.pdb │ │ │ ├── ElectricityBill.runtimeconfig.dev.json │ │ │ └── ElectricityBill.runtimeconfig.json │ └── obj │ │ ├── Debug │ │ └── netcoreapp3.1 │ │ │ ├── .NETCoreApp,Version=v3.1.AssemblyAttributes.cs │ │ │ ├── ElectricityBill.AssemblyInfo.cs │ │ │ ├── ElectricityBill.AssemblyInfoInputs.cache │ │ │ ├── ElectricityBill.assets.cache │ │ │ ├── ElectricityBill.csproj.CoreCompileInputs.cache │ │ │ ├── ElectricityBill.csproj.FileListAbsolute.txt │ │ │ ├── ElectricityBill.csprojAssemblyReference.cache │ │ │ ├── ElectricityBill.dll │ │ │ ├── ElectricityBill.exe │ │ │ ├── ElectricityBill.genruntimeconfig.cache │ │ │ └── ElectricityBill.pdb │ │ ├── ElectricityBill.csproj.nuget.dgspec.json │ │ ├── ElectricityBill.csproj.nuget.g.props │ │ ├── ElectricityBill.csproj.nuget.g.targets │ │ ├── Release │ │ └── netcoreapp3.1 │ │ │ ├── .NETCoreApp,Version=v3.1.AssemblyAttributes.cs │ │ │ ├── ElectricityBill.AssemblyInfo.cs │ │ │ ├── ElectricityBill.AssemblyInfoInputs.cache │ │ │ └── ElectricityBill.assets.cache │ │ ├── project.assets.json │ │ └── project.nuget.cache └── calculator │ ├── .vs │ └── calculator │ │ ├── DesignTimeBuild │ │ └── .dtbcache.v2 │ │ └── v16 │ │ └── .suo │ ├── Program.cs │ ├── bin │ └── Debug │ │ └── netcoreapp3.1 │ │ ├── calculator.deps.json │ │ ├── calculator.dll │ │ ├── calculator.exe │ │ ├── calculator.pdb │ │ ├── calculator.runtimeconfig.dev.json │ │ └── calculator.runtimeconfig.json │ ├── calculator.csproj │ ├── calculator.sln │ └── obj │ ├── Debug │ └── netcoreapp3.1 │ │ ├── .NETCoreApp,Version=v3.1.AssemblyAttributes.cs │ │ ├── calculator.AssemblyInfo.cs │ │ ├── calculator.AssemblyInfoInputs.cache │ │ ├── calculator.assets.cache │ │ ├── calculator.csproj.CoreCompileInputs.cache │ │ ├── calculator.csproj.FileListAbsolute.txt │ │ ├── calculator.csprojAssemblyReference.cache │ │ ├── calculator.dll │ │ ├── calculator.exe │ │ ├── calculator.genruntimeconfig.cache │ │ └── calculator.pdb │ ├── calculator.csproj.nuget.dgspec.json │ ├── calculator.csproj.nuget.g.props │ ├── calculator.csproj.nuget.g.targets │ ├── project.assets.json │ └── project.nuget.cache ├── C++ Armstrong number ├── C++ ├── Sorting algo │ ├── Bubble_sort.cpp │ ├── Heap_Sort.cpp │ ├── Quicksort.cpp │ ├── Selection_sort.cpp │ ├── insertion_Sort.cpp │ ├── merge_Sort.cpp │ ├── quicksort.cpp │ └── radixSort.cpp ├── backtracking │ ├── CMakeLists.txt │ ├── graph_coloring.cpp │ ├── knight_tour.cpp │ ├── minimax.cpp │ ├── n_queens.cpp │ ├── n_queens_all_solution_optimised.cpp │ ├── nqueen_print_all_solutions.cpp │ ├── rat_maze.cpp │ └── sudoku_solve.cpp ├── basic programs │ ├── addition.cpp │ ├── helloWorld.cpp │ ├── multiplication.cpp │ ├── numberSwapping.cpp │ ├── printNumber.cpp │ ├── quotientAndRemainder.cpp │ └── sizeOfDataType.cpp ├── graph │ ├── bfs.cpp │ └── dfs.cpp ├── search │ ├── binary_search.cpp │ ├── exponential_search.cpp │ ├── fibonacci_search.cpp │ ├── hash_search.cpp │ ├── interpolation_search.cpp │ ├── interpolation_search2.cpp │ ├── jump_search.cpp │ ├── linear_search.cpp │ ├── median_search.cpp │ ├── ternary_search.cpp │ └── text_search.cpp └── sorting │ ├── CMakeLists.txt │ ├── bead_sort.cpp │ ├── bitonic_sort.cpp │ ├── bogo_sort.cpp │ ├── bubble_sort.cpp │ ├── bucket_sort.cpp │ ├── cocktail_selection_sort.cpp │ ├── comb_sort.cpp │ ├── counting_sort.cpp │ ├── counting_sort_string.cpp │ ├── gnome_sort.cpp │ ├── heap_sort.cpp │ ├── insertion_sort.cpp │ ├── library_sort.cpp │ ├── merge_insertion_sort.cpp │ ├── merge_sort.cpp │ ├── non_recursive_merge_sort.cpp │ ├── numeric_string_sort.cpp │ ├── odd_even_sort.cpp │ ├── pigeonhole_sort.cpp │ ├── quick_sort.cpp │ ├── quick_sort_3.cpp │ ├── radix_sort.cpp │ ├── selection_sort.cpp │ ├── shell_sort.cpp │ ├── shell_sort2.cpp │ ├── slow_sort.cpp │ ├── strand_sort.cpp │ ├── swap_sort.cpp │ └── tim_sort.cpp ├── HTML └── E-com site index │ ├── css │ ├── desktop.ini │ └── style.css │ ├── desktop.ini │ ├── images │ ├── biska2.webp │ ├── cart.png │ ├── down.png │ ├── header.jpg │ ├── logo.png │ ├── logo1.png │ └── shirt.png │ └── index.html ├── Java ├── ArrayStack.java ├── CheckAnagrams.java ├── DigitSum.java ├── FactorialFinder.java ├── Java_Algorithms │ └── Floyd-Warshall Algorithm.java ├── Kadane.java ├── Kth_SmallestElement.java ├── LinkedListStack.java ├── MyLinkedList.java ├── README.md ├── Readme.txt ├── Rearrange_Array_Alternately.java ├── ReverseNumber.java ├── RotateArray.java ├── balancedParanthesis.java ├── fizzbizz.java ├── leapyear.java ├── optimized_prime.java ├── palindrome.java ├── prime.java └── swapnumbers.java ├── Javascript ├── BubbleSort.js ├── JavaScript Dragon Game │ ├── bg.png │ ├── dino.png │ ├── dragon.png │ ├── gameover.mp3 │ ├── index.html │ ├── music.mp3 │ ├── script.js │ └── style.css └── RomanNumeralConverter.js ├── PHP └── chatBot │ ├── app.js │ ├── bot │ ├── Bot.php │ └── chat.php │ ├── css │ └── style.css │ └── index.php ├── Palindrome Checker ├── PalindromeChecker.js ├── PalindromeChecker.py ├── PalindromeExample.java ├── PalindromeExample2.java └── palindromeFinder.cpp ├── Python ├── 1.Dictonary │ ├── data.json │ └── dictonary.py ├── Cash │ ├── azizamukhamedova.md │ └── cash.py ├── Data security using one-time-pad.py ├── DataFlair-Alarm-Clock.py ├── MatrixMultiplication.py ├── NetScan.py ├── Opencv │ ├── Jarvis │ │ └── Write in air.py │ ├── Object-Detection │ │ ├── MobileNetSSD_deploy.caffemodel │ │ ├── MobileNetSSD_deploy.prototxt.txt │ │ ├── Readme.txt │ │ ├── __pycache__ │ │ │ └── real_time_object_detection.cpython-38.pyc │ │ ├── deep_learning_object_detection.py │ │ ├── images │ │ │ ├── example_01.jpg │ │ │ ├── example_02.jpg │ │ │ ├── example_03.jpg │ │ │ ├── example_04.jpg │ │ │ ├── example_05.jpg │ │ │ ├── example_06.jpg │ │ │ ├── example_07.jpg │ │ │ ├── example_08.jpg │ │ │ ├── example_09.jpg │ │ │ ├── example_10.jpg │ │ │ ├── example_11.jpg │ │ │ ├── example_12.jpg │ │ │ ├── example_13.jpg │ │ │ └── example_14.jpg │ │ └── real_time_object_detection.py │ ├── Virtual Background │ │ ├── computer_vision.jpg │ │ └── virtual_background.py │ ├── Write in air │ │ └── Write in air.py │ └── face_mask_detection │ │ ├── detect_mask_image.py │ │ ├── detect_mask_video.py │ │ ├── examples │ │ ├── example_01.png │ │ └── example_02.png │ │ ├── face_detector │ │ ├── deploy.prototxt │ │ └── res10_300x300_ssd_iter_140000.caffemodel │ │ ├── mask_detector.model │ │ ├── plot.png │ │ └── train_mask_detector.py ├── Python 10 line Projects │ ├── Audio Visualization Tool │ │ └── source-code.py │ ├── Birthday Reminder │ │ └── source-code.py │ ├── Extract mp3 from mp4 │ │ ├── requirements.txt │ │ └── source-code.py │ ├── Link Shortener │ │ └── source-code.py │ ├── Merge Multiple PDF │ │ └── source-code.py │ ├── Password Protech PDF │ │ └── source-code.py │ ├── Random Password Generator │ │ └── source-code.py │ ├── Terminal Tricks │ │ ├── source-code-color.py │ │ └── source-code-funky.py │ ├── Voice Recorder │ │ └── source-code.py │ └── Windows Notification │ │ ├── jokes-desktop-notifier.py │ │ ├── source-code-custom.py │ │ └── source-code-timer.py ├── PythonBasics │ ├── Maitreyi88_armstrongno.py │ ├── Maitreyi88_fibonacci.py │ ├── Maitreyi88_palindrome.py │ ├── Maitreyi88_primeno.py │ ├── README.md │ ├── dictionary.py │ ├── marks.py │ ├── palindrome.py │ ├── pattern.py │ ├── periodChecker.py │ ├── primorialCalc.py │ ├── shapes.py │ ├── simple calculator with choice.py │ ├── strings.py │ └── sum.py ├── Python_Algorithms │ ├── A star algorithm.py │ ├── FaithK_fibonacci.py │ ├── Health_Reminder.py │ ├── PritamCycle SORT │ ├── Regex problem.py │ ├── SieveOfEratosthenes.py │ ├── caesarscipher.py │ ├── currency-converter-project.py │ ├── fcc_time_calculator.py │ ├── fractional_knapsack.py │ ├── insertionSort.py │ ├── josephus.py │ ├── knapsack.py │ ├── largest_number.py │ ├── lcs2.py │ ├── majority_element.py │ ├── min_heap.py │ ├── parse_file.py │ ├── primitive_calculator.py │ ├── requirements.txt │ └── subset.py ├── Python_Games │ ├── magic.py │ ├── snake_game.py │ ├── tic-tac-toe.py │ └── µ-tech.py ├── Python_sorting_searching │ ├── bfs.py │ ├── binary_search.py │ ├── bubble_sort.py │ ├── linear_search.py │ └── sorting.py ├── Scientific Computing with Python │ └── Arithmetic_Formatter │ │ ├── arithmetic_formatter.py │ │ ├── main.py │ │ └── test_module.py ├── Search & sorting operaton │ ├── A_Star.py │ ├── ArrayRotation.py │ ├── BFS.py │ ├── Bucket_sort.py │ ├── Calendar.py │ ├── Counting_sort.py │ ├── DFS.py │ ├── DeckofCards.py │ ├── Dijkastra's.py │ ├── Factorial_DP.py │ ├── FindMinPath.py │ ├── GameOfLife.py │ ├── Heap_sort.py │ ├── Insertion_sort.py │ ├── Merge_sort.py │ ├── Palindrome.py │ ├── Prim's_algorithm.py │ ├── Quick_sort.py │ ├── Radix_sort.py │ ├── Selection_sort.py │ ├── Shell_Sort.py │ ├── StringLen.py │ ├── Tower_of_hanoi.py │ ├── bellmanford.py │ ├── binary_search(Recursive).py │ ├── binary_search.py │ ├── bitonic_sort.py │ ├── bubble_sort.py │ ├── fatorial.py │ ├── instabot.py │ ├── linearSearchPy │ ├── linear_search.py │ ├── merge_sort_for_linked_lists.py │ ├── pancake_sorting.py │ ├── regex_find_dupplicate_words.py │ ├── snake-water-gun.py │ ├── stopwatch.py │ └── tts_request.py ├── Web Blocker │ └── web_blocker.pyw ├── banking system.py ├── color_detection.py ├── convert.py ├── diffiehillman.py ├── dot_mania_game.py ├── import_numpy_as_np.py ├── onetimepad.py ├── playfair.py ├── python_patterns │ ├── diamond.py │ ├── down_triangle.py │ ├── half_pyramid.py │ ├── menspants.py │ └── triangular_pattern.py ├── sql_connector.py └── viginere_cipher.py ├── README.md ├── Ridge and Lasso └── Ridge and Lasso Regression.ipynb ├── Stock Sentiment Analysis ├── Data.csv └── Stock Sentiment Analysis.ipynb ├── countdown-timer ├── FRECRACKERS.jpg ├── HNY.jpg ├── index.html ├── script.js ├── snow.jpg └── style.css ├── flutter_xylophone ├── README.md ├── android │ ├── .gitignore │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── xylophone │ │ │ │ │ └── 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 │ └── xylophone_android.iml ├── assets │ ├── note1.wav │ ├── note2.wav │ ├── note3.wav │ ├── note4.wav │ ├── note5.wav │ ├── note6.wav │ └── note7.wav ├── 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 │ └── main.dart ├── pubspec.lock ├── pubspec.yaml ├── test │ └── widget_test.dart └── xylophone.iml └── python └── bal-paranthesis.py /.github/workflows/automerge.yml: -------------------------------------------------------------------------------- 1 | name: automerge 2 | on: 3 | pull_request: 4 | types: 5 | - labeled 6 | - unlabeled 7 | - synchronize 8 | - opened 9 | - edited 10 | - ready_for_review 11 | - reopened 12 | - unlocked 13 | pull_request_review: 14 | types: 15 | - submitted 16 | check_suite: 17 | types: 18 | - completed 19 | status: {} 20 | jobs: 21 | automerge: 22 | runs-on: ubuntu-latest 23 | steps: 24 | - name: automerge 25 | uses: "pascalgn/automerge-action@v0.12.0" 26 | env: 27 | GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" 28 | env: 29 | GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" 30 | MERGE_LABELS: "automerge,!work in progress" 31 | MERGE_REMOVE_LABELS: "automerge" 32 | MERGE_METHOD: "squash" 33 | MERGE_COMMIT_MESSAGE: "pull-request-description" 34 | MERGE_FORKS: "false" 35 | MERGE_RETRIES: "6" 36 | MERGE_RETRY_SLEEP: "10000" 37 | UPDATE_LABELS: "" 38 | UPDATE_METHOD: "rebase" 39 | 40 | -------------------------------------------------------------------------------- /All FCC javascript and datastructures challenge solutions/palindrome-checker.txt: -------------------------------------------------------------------------------- 1 | function palindrome(str) { 2 | str=str.toLowerCase(); 3 | let newStr=""; 4 | let regex=/[a-z]|[0-9]/; 5 | 6 | for(let char of str){ 7 | if(regex.test(char)){ 8 | newStr=newStr+char; 9 | } 10 | } 11 | 12 | if(newStr.split('').join('')===newStr.split('').reverse().join('')){ 13 | return true; 14 | }else return false; 15 | } 16 | 17 | 18 | 19 | palindrome("eye"); 20 | -------------------------------------------------------------------------------- /All FCC javascript and datastructures challenge solutions/roman-numeral-converter.txt: -------------------------------------------------------------------------------- 1 | function convertToRoman(num) { 2 | let decimal=[1000,900,500,400,100,90,50,40,10,9,5,4,1]; 3 | let roman=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]; 4 | let str=""; 5 | for(let i=0;i 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /Android/Snake-master/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /Android/Snake-master/README.md: -------------------------------------------------------------------------------- 1 | # Snake - Multi Control 2 | 3 | 4 | This is a different take on classic snake game. This app allows you to chose from multiple ways to control your snake. 5 | 6 | 7 | ## Controls 8 | 9 | This app currently allows you two control schemes. 10 | 11 | ### Pov 12 | 13 | Turn the snake left or right relative to the direction snake is moving. For eg. If snake is moving East then turning left will move the snake to North. 14 | 15 | You tap on left side of screen to turn left. 16 | 17 | ### Dual 18 | 19 | This control uses left tap to move snake in West and South direction i.e.(left and down) and right tap to move snake to North and East direction i.e.(up and right). 20 | 21 | For eg. If snake is moving West then tapping left will move the snake to South. If snake is moving North then tapping left will move the snake to West. 22 | 23 | -------------------------------------------------------------------------------- /Android/Snake-master/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Android/Snake-master/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | 6 | buildToolsVersion "29.0.2" 7 | defaultConfig { 8 | applicationId "com.asif.snake" 9 | minSdkVersion 16 10 | targetSdkVersion 28 11 | versionCode 1 12 | versionName "1.0" 13 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 14 | } 15 | buildTypes { 16 | release { 17 | minifyEnabled false 18 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 19 | } 20 | } 21 | } 22 | 23 | dependencies { 24 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' 25 | implementation 'com.android.support:appcompat-v7:28.0.0' 26 | implementation 'com.android.support:design:28.0.0' 27 | } 28 | -------------------------------------------------------------------------------- /Android/Snake-master/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | 17 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/assets/death_sound.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/assets/death_sound.ogg -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/assets/get_mouse_sound.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/assets/get_mouse_sound.ogg -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/java/com/asif/snake/AppConstants.java: -------------------------------------------------------------------------------- 1 | package com.asif.snake; 2 | 3 | public final class AppConstants { 4 | 5 | public static final String CONTROL_KEY = "CONTROL_KEY"; 6 | public static final String SOUND_KEY = "SOUND_KEY "; 7 | 8 | public enum Control {POV, DUAL, SPLIT} 9 | // For tracking movement m_Direction 10 | public enum Direction {UP, RIGHT, DOWN, LEFT} 11 | } 12 | -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/Android/Snake-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 4 | -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SettingsActivity 3 | Settings 4 | Point of View 5 | Dual 6 | New Game 7 | Control : 8 | Sound : 9 | On 10 | Off 11 | 12 | -------------------------------------------------------------------------------- /Android/Snake-master/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /flutter_xylophone/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_xylophone/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 | -------------------------------------------------------------------------------- /flutter_xylophone/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /flutter_xylophone/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 | -------------------------------------------------------------------------------- /flutter_xylophone/android/settings.gradle: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Flutter Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | include ':app' 6 | 7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 8 | def properties = new Properties() 9 | 10 | assert localPropertiesFile.exists() 11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 12 | 13 | def flutterSdkPath = properties.getProperty("flutter.sdk") 14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 16 | -------------------------------------------------------------------------------- /flutter_xylophone/assets/note1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/assets/note1.wav -------------------------------------------------------------------------------- /flutter_xylophone/assets/note2.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/assets/note2.wav -------------------------------------------------------------------------------- /flutter_xylophone/assets/note3.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/assets/note3.wav -------------------------------------------------------------------------------- /flutter_xylophone/assets/note4.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/assets/note4.wav -------------------------------------------------------------------------------- /flutter_xylophone/assets/note5.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/assets/note5.wav -------------------------------------------------------------------------------- /flutter_xylophone/assets/note6.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/assets/note6.wav -------------------------------------------------------------------------------- /flutter_xylophone/assets/note7.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/assets/note7.wav -------------------------------------------------------------------------------- /flutter_xylophone/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 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /flutter_xylophone/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 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /flutter_xylophone/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 | -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TraXIcoN/FreeCodeCamp-Projects/7088ce1a621b5be22c74b617cb045706fa779a65/flutter_xylophone/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /flutter_xylophone/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. -------------------------------------------------------------------------------- /flutter_xylophone/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /flutter_xylophone/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:audioplayers/audio_cache.dart'; 3 | 4 | void main(List args) => runApp(XylophoneApp()); 5 | 6 | class XylophoneApp extends StatelessWidget { 7 | void changeSound(int SoundNumber) 8 | { 9 | final player=AudioCache(); 10 | player.play('note$SoundNumber.wav'); 11 | } 12 | Expanded colorchange({int number,Color color}) 13 | { 14 | return( 15 | Expanded( 16 | child:FlatButton( 17 | color: color, 18 | onPressed: () { 19 | changeSound(number); 20 | }, 21 | ), 22 | ) 23 | ); 24 | } 25 | @override 26 | Widget build(BuildContext context) { 27 | return MaterialApp( 28 | home: Scaffold( 29 | backgroundColor: Colors.black, 30 | body: SafeArea( 31 | child: Column( 32 | crossAxisAlignment: CrossAxisAlignment.stretch, 33 | children: [ 34 | colorchange(number:1, color: Colors.red), 35 | colorchange(number:2, color: Colors.orange), 36 | colorchange(number:3,color: Colors.yellow), 37 | colorchange(number:4,color: Colors.green), 38 | colorchange(number:5,color: Colors.green[800]), 39 | colorchange(number:6,color: Colors.blue), 40 | colorchange(number:7,color: Colors.purple), 41 | ])), 42 | ), 43 | ); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /flutter_xylophone/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: xylophone 2 | description: A new Flutter project. 3 | 4 | publish_to: 'none' 5 | 6 | 7 | version: 1.0.0+1 8 | 9 | environment: 10 | sdk: ">=2.7.0 <3.0.0" 11 | 12 | dependencies: 13 | flutter: 14 | sdk: flutter 15 | 16 | cupertino_icons: ^0.1.3 17 | audioplayers: ^0.15.1 18 | 19 | 20 | dev_dependencies: 21 | flutter_test: 22 | sdk: flutter 23 | 24 | flutter: 25 | 26 | uses-material-design: true 27 | 28 | assets: 29 | - assets/ 30 | 31 | 32 | # fonts: 33 | # - family: Schyler 34 | # fonts: 35 | # - asset: fonts/Schyler-Regular.ttf 36 | # - asset: fonts/Schyler-Italic.ttf 37 | # style: italic 38 | # - family: Trajan Pro 39 | # fonts: 40 | # - asset: fonts/TrajanPro.ttf 41 | # - asset: fonts/TrajanPro_Bold.ttf 42 | # weight: 700 43 | -------------------------------------------------------------------------------- /flutter_xylophone/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:xylophone/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(XylophoneApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /flutter_xylophone/xylophone.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /python/bal-paranthesis.py: -------------------------------------------------------------------------------- 1 | #Generate all balanced Parenthesis 2 | 3 | n = int(input("Enter number: ")) 4 | 5 | o = n 6 | c = n 7 | op = "" 8 | a = [] 9 | 10 | 11 | def sol(w, x , y, z): 12 | if (w==0 and x ==0): 13 | z.append(y) 14 | return 15 | 16 | if (w!=0): 17 | op1 = y 18 | op1 += "(" 19 | sol(w-1, x, op1, z) 20 | 21 | if (x > w): 22 | op2 = y 23 | op2 += ")" 24 | sol(w, x-1, op2, z) 25 | 26 | return 27 | 28 | sol(o, c, op, a) 29 | 30 | print(a) --------------------------------------------------------------------------------