Skip to content

Instantly share code, notes, and snippets.

View leather-s's full-sized avatar

Sidney leather-s

View GitHub Profile
class Buffer
def initialize(size)
@circle = Array.new(size)
@size = size
@head, @tail = 0, 0
end
def write(element)
return(StandardError.new('Buffer is full.')) if full?
document.getElementById('frame1').onload = function() {
console.log('fag 1')
}
document.getElementById('frame2').onload = function() {
x = $('#frame1')
console.log(x)
}