Simple implementation of a circular buffer.
cbuf(b, v, e)
The variable holding the current buffer content
The new valued to be added to b
The length of circular buffer
The buffer b plus the element v minus the least recently added element
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.