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.
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
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!
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
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
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.Nixola wrote:I'd like an account system, but it's quite difficult to do, isn't it?
First Lua chunk!
Re: Lua Chunks.com - A new website for sharing Lua code
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
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
I might re-implement the account system in the future depending on how many people actually end up using the site.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
Re: Lua Chunks.com - A new website for sharing Lua code
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
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
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.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?
Re: Lua Chunks.com - A new website for sharing Lua code
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
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
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.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
Re: Lua Chunks.com - A new website for sharing Lua code
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Who is online
Users browsing this forum: Bing [Bot] and 5 guests