Welcome! This page is using CodeRay 1.1.2.

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

Page 6, 10 entries

a 15 lines of C 200 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class AccessTest
  public
  def pub
    puts "public_method"
  end

  private
  def priv
    puts "private_method"
  end
end

test_super = AccessTest.new
test_super.pub
test_super.priv
sdasdsadsa 5 lines of C 127 Bytes Show Edit Expand
1
2
3
4
5
docker run --rm \
  -e 'SOURCE_METHOD=VOLUME' \
  -e 'PROJECT_TYPE=JAVA' \
  -v $(pwd)/source:/opt/source  \
aaaa/aaaa init
a 7 lines of Ruby 79 Bytes Show Edit Expand
1
2
3
4
5
6
7
def gear_inches
  ratio * diameter
end

def diameter
  wheel.diameter
end
a 34 lines of Ruby 640 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 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...

Page 6, 10 entries