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

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

Post by Nikolai Resokav »

Lua Chunks.com is a website I have been working on in my spare time to learn more about PHP. It's primary function is to serve as a pastebin-like website but exclusively for Lua, with syntax highlighting for different kinds of Lua (like Lua written for LOVE). Currently, Lua Chunks supports the entire LOVE api, as well as several Garry's Mod libraries. I plan on adding support for more apis/libraries in the future.

url: http://luachunks.com/

Let me know what you guys think and if you have any suggestions or encounter any errors feel free to PM me or make a post in this thread.
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 »

I'd like an account system, but it's quite difficult to do, isn't it?
It's quite nice, anyway, I like Notepad++-like syntax color
First Lua chunk!
Last edited by Nixola on Mon Nov 12, 2012 10:13 pm, edited 1 time in total.
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 »

Nixola wrote:I'd like an account system, but it's quite difficult to do, isn't it?
First Lua chunk!
I actually made an account system in a previous version, but I felt like I was over-complicating things so I got rid of it.
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 »

I'd like to be able to track my chunks easily, to access a list with a single click, but it's really useful like this too
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 »

Nixola wrote:I'd like to be able to track my chunks easily, to access a list with a single click, but it's really useful like this too
I might re-implement the account system in the future depending on how many people actually end up using the site.
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 »

I also thought about having a button to read a random Lua chunk and the possibility to upload a private chunk, at least the first one shouldn't be hard to do, right?
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 »

Nixola wrote:I also thought about having a button to read a random Lua chunk and the possibility to upload a private chunk, at least the first one shouldn't be hard to do, right?
Neither would be too hard to implement. The only issue with having a private chunk is the current chunk id system. Chunk ids are currently really easy to guess so I'd likely have to implement a password system when trying to access a private chunk. I personally think it would be a little frustrating having to enter a password in order to access a private chunk.
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 »

Isn't it possible to use strings as an ID? A public chunk could have both a numeric and a string ID while a private one may only have a hard-to-guess string ID
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 »

Nixola wrote:Isn't it possible to use strings as an ID? A public chunk could have both a numeric and a string ID while a private one may only have a hard-to-guess string ID
Chunk id's are strings already. Currently, chunk id's are created by converting an auto incrementing database id to base 36. This means that they will eventually be alphanumeric once more chunks have been created.
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 »

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
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests