An open API service indexing awesome lists of open source software.

https://github.com/iamabhishekkumar/memer

It returns you, a random programming meme that you can show in your readme.
https://github.com/iamabhishekkumar/memer

flask heroku memes mongodb python3

Last synced: about 2 months ago
JSON representation

It returns you, a random programming meme that you can show in your readme.

Awesome Lists containing this project

README

          

# Memer

It returns you a random programming meme that you can show anywhere, even your github readmes'. Every time you reload the page, a new meme is shown.

### How to use

For Mark-Down files:

![your-meme](https://memer-github.herokuapp.com/getImage)

For adjust size of image :

Just Copy and paste above, where you want to show the meme.

#### Preview

### Problem Faced

GitHub doesn't allow javascript in markdowns, so i cant simply sent a request to a url. So, I have to do this using "image" tag provided by markdown.

To host your images, GitHub uses the open-source project Camo. Camo generates an anonymous URL proxy for each file which hides your browser details and related information from other users.

So, the main problem was, it caches the image and even the image changes, that doesn't reflect in readme. So, to fix that problem, I have set the cache-control to 'no-cache'.

### References
- [How to enable CORS in flask](https://stackoverflow.com/questions/25594893/how-to-enable-cors-in-flask)
- [About anonymized URLs](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/about-anonymized-urls)

**If you like it, star this repo.If you find any issues, feel free to raise issues. Enjoy!**:upside_down_face:

More programming memes will added soon.....