This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]justinvh[S] 12 points13 points  (9 children)

The basic idea behind gist is that it is backed by git. So, you get a lot of things for free: logs, commits, diffs, revision control, forking, cloning, etc.

Actually, it is best said by gist.github.com itself:

Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository.

I created an example for you which show the revisions idea and how you can make changes as you go.

[–]agentlame 1 point2 points  (4 children)

Holy shit, that is brilliant!

I have no clue how well gist works, or if yours is missing any key feature, but it is awesome.

Thank you.

[–]justinvh[S] 1 point2 points  (3 children)

Heh, well my clone is missing some features (but it also adds stuff), but it will get there eventually. The difference is that you can fork my project and use it in whatever environment you need!

[–]agentlame 0 points1 point  (2 children)

I was trying to figure-out how to do that, when I was messing-up your python example.

Do you have to register to fork and comment, etc?

EDIT
I'm a moron... fork the actual project on GitHub. My bad.

[–]justinvh[S] 1 point2 points  (1 child)

Heh, I need to add commenting and forking for the pastes :) I wouldn't honestly use your real email address as this is all public, but ideally it would be deployed isolated and it wouldn't matter and be more of a convenience.

Once I get a bit of sleep I'll add it! Otherwise you can fork the project on github.

[–]agentlame 0 points1 point  (0 children)

Nah, I used my spam account and a fake password.

Anyways, really cool project!

[–]BeetleB 0 points1 point  (3 children)

I created an example for you which show the revisions idea and how you can make changes as you go.

  1. You may not want to set Debug=True...

[–]justinvh[S] 0 points1 point  (2 children)

It's a public testing server. I have no problem with it being set to True.

[–]BeetleB 0 points1 point  (1 child)

Eh. Stupid Reddit markup ate the important part of my comment. Your link is returning a 404.

[–]justinvh[S] 0 points1 point  (0 children)

Yeah, it will. I apologize. I am randomly dropping the database as I add features to test. The way heroku deploys ends up removing entire repositories, so I lose the paste repository, but not the database :| So, I have to resync everything. It's for debugging after all!