from Hacker News

Show HN: Code pastes in local storage, shared via Web Sockets

by zeeone on 10/21/13, 6:01 PM with 4 comments

I thought it would be great to share code snippets without saving them on a server, so I created http://mem.pe

It allows you to paste code and save it in your browser's local storage. When you share the URL of the pasted code, other people will connect to it via web sockets. For example, this http://mem.pe/#sge/5 you will be pulling from my browser. I'll keep it open for a while.

If you close the web app, your code paste will not be available for anyone to see, until you open the web app again.

This is obviously, not suitable for using at forums and other places where the paste will have to be available for a long time. However, it is great for IRC and chats where you want to send a quick disposable link to a code snippet.

Available on Github at https://github.com/naturalist/mempe

Any comments would be greatly appreciated.

  • by pearjuice on 10/21/13, 6:16 PM

    Very interesting. Quick tip: change this submission to one without text linking to the website and update your frontpage with some headline quickly indicating what your service does. This could become big.
  • by sovenger on 10/24/13, 12:53 AM

    Last night in class, I needed to share some code with a classmate. Instead of using e-mail, we used this. It worked perfectly. Nice job.
  • by codewriter on 10/21/13, 6:39 PM

    This looks great. My team of distributed developers could really benefit from something like this.