Lua Chunks.com - A new website for sharing Lua code

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Nikolai Resokav
Party member
Posts: 140
Joined: Wed Apr 28, 2010 12:51 am
Location: United States

Re: Lua Chunks.com - A new website for sharing Lua code

Post by Nikolai Resokav »

Nixola wrote:Well, if you prevent people from using custom IDs shorter than 8 characters you already have at least 78'364'164'096 chunks to be created before private ones could accidentaly become public... Or, you could tell them to use at least one symbol, it will never become public
I've changed the chunk id system to use a random alphanumeric string in addition to a standard id. This should prevent people from accessing a chunk without a direct link unless they get really lucky and guess the id or are using a brute-force method to generate ids, although both of these are probably very unlikely.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Lua Chunks.com - A new website for sharing Lua code

Post by Roland_Yonaba »

Great Job. And a very simple yet effective design.
I actually submitted my first chunk.

Well, as Nixola already suggested, i'd like an account system to be able to track, list, manage my own chunks. As Github, with gists.
Or maybe that was not the original intent ?
You should submit it to the lua mailing list, you might have some nice suggestions from experienced people there, as well.
I'm keeping an eye on this.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Lua Chunks.com - A new website for sharing Lua code

Post by Nixola »

Little bug - it doesn't recognize comments written in the form --[[something]], you can see it in Roland's script
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Nikolai Resokav
Party member
Posts: 140
Joined: Wed Apr 28, 2010 12:51 am
Location: United States

Re: Lua Chunks.com - A new website for sharing Lua code

Post by Nikolai Resokav »

Roland_Yonaba wrote:Great Job. And a very simple yet effective design.
I actually submitted my first chunk.
Thanks! Also, that chunk is awesome!
Roland_Yonaba wrote: Well, as Nixola already suggested, i'd like an account system to be able to track, list, manage my own chunks. As Github, with gists.
Or maybe that was not the original intent ?
I actually had those features in a previous version of the site. Perhaps if the site gains any popularity I will re-implement them.
Roland_Yonaba wrote: You should submit it to the lua mailing list, you might have some nice suggestions from experienced people there, as well.
I'm keeping an eye on this.
Interesting. I'll look into doing that.
Nixola wrote: Little bug - it doesn't recognize comments written in the form --[[something]], you can see it in Roland's script
This appears to happen due the start of the comment being right in front of a different character with no spacing. For example, in Roland's chunk the "--[[" characters are right in front of "for" with no spacing. This appears to be an issue with the current codemirror Lua parser that I am using. Unfortunately, I don't currently know much about how the parser works, so this might not get fixed for a while.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests