Welcome! This page is using CodeRay 1.1.2.

We currently have 2908 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 6, 10 entries

a 28 lines of Ruby 504 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
class Gear
  attr_reader :chainring, :cog, :rim, :tire
  def initialize(chainring, cog, rim, tire)
    @chainring = chainring
    @cog       = cog
    @rim       = rim
    @tire      = tire
...
a 24 lines of Ruby 445 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
class Gear
  attr_reader :chainring, :cog, :rim, :tire
  def initialize(chainring, cog, rim, tire)
    @chainring = chainring
    @cog       = cog
    @rim       = rim
    @tire      = tire
...
a 23 lines of Ruby 390 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
class Gear
  attr_reader :chainring, :cog, :rim, :tire
  def initialize(chainring, cog, rim, tire)
    @chainring = chainring
    @cog       = cog
    @rim       = rim
    @tire      = tire
...
a 37 lines of Ruby 604 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
# ...
  # ...
    # ...
class Gear
  attr_reader :chainring, :cog, :rim, :tire
  def initialize(chainring, cog, rim, tire)
    @chainring = chainring
    @cog       = cog
    @rim       = r...
a 37 lines of Ruby 604 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
# ...
  # ...
    # ...
class Gear
  attr_reader :chainring, :cog, :rim, :tire
  def initialize(chainring, cog, rim, tire)
    @chainring = chainring
    @cog       = cog
    @rim       = r...
Example 1a 15 lines of HTML 445 Bytes Show Edit Expand
1
2
3
4
5
6
7
<!DOCTYPE html>
<html lang="en">
  <head>  
    <title>Hello!</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="w...
Example 1a 8 lines of JavaScript 205 Bytes Show Edit Expand
1
2
3
4
5
6
7
const para = document.querySelector('p');

para.addEventListener('click', updateName);

function updateName() {
  let name = prompt('Enter a new name');
  para.textContent = 'Player 1: ' + na...
Example 1a 9 lines of JavaScript 207 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
const para = document.querySelector('p');

para.addEventListener('click', updateName);

function updateName() {
  let name = prompt('Enter a new name');
  para.textContent = 'Player 1: 
' + ...
Example 1a 8 lines of JavaScript 205 Bytes Show Edit Expand
1
2
3
4
5
6
7
const para = document.querySelector('p');

para.addEventListener('click', updateName);

function updateName() {
  let name = prompt('Enter a new name');
  para.textContent = 'Player 1: ' + na...
test 1 line of Python 3 Bytes Show Edit Expand
1
sss

Page 6, 10 entries