Welcome! This page is using CodeRay 1.1.2.

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

Page 30, 10 entries

test 31 lines of Ruby 911 Bytes Show Edit Expand
1
2
3
4
5
  def test_vnos_hitrosti_prebran
    @igra.instance_eval do # predefiniranje metode
      def preberi_vnos     # instance, da se znebimo
       return "22"         # vnosa uporabnika 
      end                   # v...
test 9 lines of Ruby 141 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
class TopovskiNapad

  attr_accessor :razdalja_do_tarce

  def initialize
    @razdalja_do_tarce = Random.rand(10...1000)
  end

end
test 9 lines of Ruby 244 Bytes Show Edit Expand
1
2
3
4
5
6
7
8

  def test_nastavi_nakljucno_vrednost_razdalje
    refute_empty @igra.razdalja_do_tarce
  end

  def test_nakljucna_razdalja_je_razlicna
    igra2 = TopovskiNapad.new
    refute_equal @igra.r...
ini-file 40 lines of Python 1.11 KB Show Edit Expand
1
2
3
4
5
# Comments are allowed. Comment line begins with the '#' character
# and spans until the end of the line.

# Logging core settings section. May be omitted if no parameters specified within it.
...
Woops 4 lines of Clojure by the other guy 52 Bytes Show Edit Expand
1
2
3
4
(defn bad-adder []
  (+ 1)
  (+ 2 2)
  (+ 3 3 3))
window.location 6 lines of JavaScript 338 Bytes Show Edit Expand
1
2
3
4
url = window.location
console.log(url.href);      // https://developer.mozilla.org/en-US/search?q=URL#search-results-close-container
console.log(url.hostname);  // developer.mozilla.org
console....
JSON 44 lines of JSON 847 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
{
  "total": 4,
  "results": [
    {
      "_event": "checkout",
      "page": "checkout",
      "user_id": "980489947823",
      "cart_size": 2,
      "total_price": 27,
      "event_dept...
asfd 20 lines of Java by asdf 415 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
namespace Calculator
{
  public class StepHelloWorld : IStep
  {
    public string Name
    {
      get { throw new NotImplementedException(); }
    }

    public string Description
    {...
D 3 lines of HTML by D 774 Bytes Show Edit Expand
1
 <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 n...
Test 3 lines of Java 50 Bytes Show Edit Expand
1
2
3
public interface Test{
    public void test();
}

Page 30, 10 entries