├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── Procfile ├── README.md ├── expansions ├── api.txt ├── css.txt ├── gps.txt ├── gpt.txt ├── http.txt ├── ide.txt ├── java.txt ├── js.txt ├── json.txt ├── npm.txt ├── php.txt └── pip.txt ├── main.py ├── requirements.txt └── vercel.json /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. 8 | 9 | ## Our Standards 10 | 11 | Examples of behavior that contributes to a positive environment for our community include: 12 | 13 | - Demonstrating empathy and kindness toward other people 14 | - Being respectful of differing opinions, viewpoints, and experiences 15 | - Giving and gracefully accepting constructive feedback 16 | - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience 17 | - Focusing on what is best not just for us as individuals, but for the overall community 18 | 19 | Examples of unacceptable behavior include: 20 | 21 | - The use of sexualized language or imagery, and sexual attention or advances of any kind 22 | - Trolling, insulting or derogatory comments, and personal or political attacks 23 | - Public or private harassment 24 | - Publishing others’ private information, such as a physical or email address, without their explicit permission 25 | - Other conduct which could reasonably be considered inappropriate in a professional setting 26 | 27 | ## Enforcement Responsibilities 28 | 29 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. 32 | 33 | ## Scope 34 | 35 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. 36 | 37 | ## Enforcement 38 | 39 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly. 40 | 41 | All community leaders are obligated to respect the privacy and security of the reporter of any incident. 42 | 43 | ## Enforcement Guidelines 44 | 45 | Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: 46 | 47 | ### 1. Correction 48 | 49 | **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. 50 | 51 | **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. 52 | 53 | ### 2. Warning 54 | 55 | **Community Impact**: A violation through a single incident or series of actions. 56 | 57 | **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. 58 | 59 | ### 3. Temporary Ban 60 | 61 | **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. 62 | 63 | **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. 64 | 65 | ### 4. Permanent Ban 66 | 67 | **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. 68 | 69 | **Consequence**: A permanent ban from any sort of public interaction within the community. 70 | 71 | ## Attribution 72 | 73 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 74 | 75 | Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). 76 | 77 | For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. 78 | 79 | [homepage]: https://www.contributor-covenant.org 80 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Absurd Expansions 2 | 3 | Thank you for considering contributing to Absurd Expansions! We welcome contributions from everyone. Here are some guidelines to help you get started: 4 | 5 | ## How to Contribute 6 | 7 | 1. **Fork the Repository**: Create a personal fork of the project on GitHub. 8 | 2. **Clone the Fork**: Clone your fork to your local machine. 9 | ```sh 10 | git clone https://github.com/your-username/absurd-expansions.git 11 | ``` 12 | 3. **Create a Branch**: Create a new branch for your changes. 13 | ```sh 14 | git checkout -b feature/your-feature-name 15 | ``` 16 | 4. **Make Changes**: Make your changes to the codebase. 17 | 5. **Commit Changes**: Commit your changes with a clear and concise commit message. 18 | ```sh 19 | git commit -m "Add feature: your feature name" 20 | ``` 21 | 6. **Push Changes**: Push your changes to your fork. 22 | ```sh 23 | git push origin feature/your-feature-name 24 | ``` 25 | 7. **Create a Pull Request**: Open a pull request to the main repository. 26 | 27 | ## Code of Conduct 28 | 29 | Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md) to ensure a welcoming environment for all contributors. 30 | 31 | ## Reporting Issues 32 | 33 | If you find a bug or have a feature request, please open an issue on GitHub. 34 | 35 | ## Style Guide 36 | 37 | - Follow the existing code style. 38 | - Write clear and concise commit messages. 39 | - Include comments and documentation where necessary. 40 | 41 | ## Testing 42 | 43 | Ensure that your changes do not break existing tests and add new tests for new features. 44 | 45 | Thank you for your contributions! 46 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Saksham Kushwaha 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: uvicorn main:app --reload --host=0.0.0.0 --port=${PORT:-5000} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Absurd Expansions 2 | 3 | Absurd Expansions is a fun and creative repository dedicated to providing hilariously absurd expansions for commonly used programming-related short forms. Here, you'll find nonsensical and whimsical interpretations of acronyms that will leave you chuckling and scratching your head in disbelief and it also have api so you can access it 4 | 5 | ## How to Contribute? 6 | 7 | We encourage contributions from anyone with a knack for absurdity and a love for programming. To contribute your own absurd expansions: 8 | 9 | 1. Fork this repository. 10 | 2. Add your absurd expansion(s) to the appropriate file(s) in the `expansions` directory, maintaining alphabetical order in file(s). 11 | 3. Ensure your expansion follows our guidelines for absurdity and creativity. 12 | 4. Submit a pull request. 13 | 14 | ## Guidelines for Absurd Expansions: 15 | 16 | - Be creative: Think outside the box and come up with expansions that are delightfully absurd. 17 | - Keep it light-hearted: We're here to have fun, so avoid anything offensive or inappropriate. 18 | - Stick to programming-related terms: While the expansions may be absurd, they should still relate to programming, technology, or software development. 19 | - Add a crisp context to your expansion at the end of the line using `()`. 20 | 21 | ## Usage 22 | 23 | To get a random absurd expansion, you can use the following endpoint: 24 | 25 | ``` 26 | https://absurd-expansions.vercel.app/random?acr= 27 | ``` 28 | 29 | ## Example Absurd Expansions: 30 | 31 | - **PIP:** Penguins In Pajamas 32 | - **NPM:** Neil Patrick's Mansion 33 | - **API:** Antelopes Performing Incantations 34 | 35 | ## Inspiration 36 | 37 | The idea for Absurd Expansions was inspired by [npm-expansions](https://github.com/npm/npm-expansions) but they don't merge PRs anymore so here we are. 38 | 39 | ## License 40 | 41 | This repository is licensed under the MIT License. See the [LICENSE](https://github.com/LiReNa00/absurd-expansions/blob/main/LICENSE) file for details. 42 | -------------------------------------------------------------------------------- /expansions/api.txt: -------------------------------------------------------------------------------- 1 | Antelopes Performing Incantations 2 | Aloo Paratha Interface 3 | Apple Pineapple Intelligence 4 | -------------------------------------------------------------------------------- /expansions/css.txt: -------------------------------------------------------------------------------- 1 | Cows Singing Songs 2 | Crazy Squirrels Snacking 3 | Cheese Sandwiches Singing 4 | Chickens Spinning Spoons 5 | Creepy Snakes Sliding 6 | Captain Spidey Slashing 7 | Crunchy Swordsman Squads 8 | Captain Super Saiyan 9 | Cosmic Shuriken Slashers 10 | Cyborgs Shooting Spaghetti 11 | Captain Shuriken Spammers 12 | Cosmic Superhero Scream 13 | Cursed Sword Swag 14 | -------------------------------------------------------------------------------- /expansions/gps.txt: -------------------------------------------------------------------------------- 1 | Goku's Power Scan 2 | Gigantic Pikachu Signal 3 | Giant Mecha Pathfinders 4 | -------------------------------------------------------------------------------- /expansions/gpt.txt: -------------------------------------------------------------------------------- 1 | Global Pasters Tool 2 | Gojo’s Precision Text 3 | Goku’s Power Typing 4 | Goku’s Paan Tapri -------------------------------------------------------------------------------- /expansions/http.txt: -------------------------------------------------------------------------------- 1 | Hate To Transfer Package -------------------------------------------------------------------------------- /expansions/ide.txt: -------------------------------------------------------------------------------- 1 | Idly Development Environment 2 | I Dont Exist (existential crisis moment) -------------------------------------------------------------------------------- /expansions/java.txt: -------------------------------------------------------------------------------- 1 | Just Add Virtual Anxiety 2 | -------------------------------------------------------------------------------- /expansions/js.txt: -------------------------------------------------------------------------------- 1 | Jack Sparrow 2 | Jason Statham 3 | Java Sucks 4 | Jelly Sandwich 5 | Johnny Sins 6 | Joseph Stalin 7 | Joy Stick 8 | Just Stop 9 | Justice System 10 | Juxtaposed Scentibleswax 11 | -------------------------------------------------------------------------------- /expansions/json.txt: -------------------------------------------------------------------------------- 1 | Jason Segel's Oatmeal Nuts 2 | -------------------------------------------------------------------------------- /expansions/npm.txt: -------------------------------------------------------------------------------- 1 | Nahi Pata Mujhe 2 | Nalla Package Manager 3 | Nashedi Package Manager 4 | Neil Patrick's Mansion 5 | Noteworthy Potato Monstrosity 6 | Not a Package Manager 7 | No Pr Merged 8 | Naan & Paneer Makhni 9 | -------------------------------------------------------------------------------- /expansions/php.txt: -------------------------------------------------------------------------------- 1 | Pandas Hacking Pyramids 2 | Pineapple Hiding Passwords 3 | Puppy Hype Projects 4 | -------------------------------------------------------------------------------- /expansions/pip.txt: -------------------------------------------------------------------------------- 1 | Penguins In Pajamas 2 | Poltergeist Interns Programming 3 | Port Inserted Period 4 | Post Internship Positivity 5 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | from fastapi import FastAPI 2 | from fastapi.responses import RedirectResponse 3 | import os 4 | import random 5 | 6 | app = FastAPI() 7 | 8 | @app.get("/") 9 | async def home(): 10 | return RedirectResponse("/docs") 11 | 12 | @app.get("/random") 13 | async def random_expansion(acr=None): 14 | try: 15 | if acr is not None: 16 | selected_file = f'{acr.lower()}.txt' 17 | filepath = os.path.join('expansions', selected_file) 18 | else: 19 | files = os.listdir('expansions') 20 | selected_file = random.choice(files) 21 | filepath = os.path.join('expansions', selected_file) 22 | 23 | with open(filepath, 'r') as file: 24 | lines = file.readlines() 25 | 26 | selected_line = random.choice(lines) 27 | 28 | return { 29 | "acronym": selected_file.replace('.txt', '').upper(), 30 | "expansion": selected_line.strip() 31 | } 32 | except Exception as e: 33 | return {"error": str(e)} -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | fastapi 2 | uvicorn -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "builds": [{ "src": "main.py", "use": "@vercel/python" }], 3 | "routes": [{ "src": "/(.*)", "dest": "main.py" }] 4 | } 5 | --------------------------------------------------------------------------------