Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get pythOwO to show up as a language on Github #20

Open
virejdasani opened this issue Jun 28, 2022 · 5 comments
Open

Get pythOwO to show up as a language on Github #20

virejdasani opened this issue Jun 28, 2022 · 5 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@virejdasani
Copy link
Owner

I think it would be uwumazing if we managed to get pythOwO recognized as a language on Github so it shows on our repos like this:
image

I've linked some resources I found about how to go about doing this:

@virejdasani virejdasani added help wanted Extra attention is needed good first issue Good for newcomers labels Jun 28, 2022
@UndefinedConcept
Copy link
Contributor

UndefinedConcept commented Jun 28, 2022

We should probably add some other key features like a builtin owo-ifier that replace the letters "r" and "l" with "w".(idea from that discord bot) to set it out from the other languages.(Convert str to list and search for "r" and "l" to replace them with "w"). I finished a built-in that make the text into a rainbow but it is not omptized. It should be able to use the same format to make as the builtin "pwint" but it uses acsii which is the closest thing I can found to be counted as a builtin. The code below is the code I made on some online python compilier to test the function before trying to add it here.

#insert string and this return a string but with an ascii inbetween each of the character(not optimal).
def rainbow(words:str)-> str:
  color=["\033[31m","\033[33m","\033[93m","\033[92m","\033[34m","\033[36m","\033[35m"]
  lencolor=0
  word=list(words)
  l=len(words)*2
  for inserts in range(0,l,2):
    if lencolor == 7:  
      lencolor=0 #resets the colors cuz it reached the end of the "color" array
    word.insert(inserts,color[lencolor])
  lencolor+=1    
  return "".join(word)

I had modify the builtin function "pwint" by modifying the input for the "def" function and pasting the rest of th code above and it worked(it was modded a bit cuz don't want a random user to use the same variable name and crash this builtin). But when I try to make a new built-in keyword for this. The code doesn't accept it as a function. Plz help...

@akirataguchi115
Copy link

https://github.com/github/linguist/blob/master/CONTRIBUTING.md#user-content-adding-an-extension-to-a-language

We could create a milestone badge for the 200 repositories using pythOwO!

@Tulip-0333
Copy link
Contributor

Doing now one second

@Tulip-0333
Copy link
Contributor

Doing now one second

failed at doing it now :(

@Almas-Ali
Copy link

Hey, you can tryout this project https://github.com/radon-project/radon because this projects are not maintaining. We will move a language together. It's very exciting. We have implement class feature in our project. Also standard library and third party imports.

See you there.

@virejdasani @akirataguchi115 @fox-of-snow @Tulip-0333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants