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.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
Lua Chunks.com - A new website for sharing Lua code
- 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
- 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
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.
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.
Re: Lua Chunks.com - A new website for sharing Lua code
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- 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
Thanks! Also, that chunk is awesome!Roland_Yonaba wrote:Great Job. And a very simple yet effective design.
I actually submitted my first chunk.
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: 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 ?
Interesting. I'll look into doing that.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.
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.Nixola wrote: Little bug - it doesn't recognize comments written in the form --[[something]], you can see it in Roland's script
Who is online
Users browsing this forum: No registered users and 5 guests