Welcome! This page is using CodeRay 1.1.1.

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

Page 8, 10 entries

Title 4 lines of Ruby by Name 163 Bytes Show Edit Expand
1
2
3
4
def self.database_type
    return 'DEV' + db_suffix if ENV['Environment'] == 'DEV'
    ENV_MAP.fetch(ENV['Environment'].downcase.to_sym, 'QA') + db_suffix
  end
yaml2 7 lines of YAML 112 Bytes Show Edit Expand
1
2
3
4
5
6
7
Zosia:
    - a:
    name: 4
    surname: "ala ma kota"
    - b:
    name: "aaa"
    surname: "sadoajsdsad"
yaml 11 lines of YAML by dvilela 129 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
---

 - Zosia:
    - a:
    name: 4
    surname: "ala ma kota"
    - b:
    name: "aaa"
    surname: "sadoajsdsad"

...
some Java Test 21 lines of Java by zupzup 731 Bytes Show Edit Expand
1
2
3
4
5
6
public static bool isUsernameValid(string username) {
    RegEx r = new Regex(^[A-Za-z0-9]{16}$);
    return r.isMatch(username); 
}

// java.sql.Connection conn is set elsewhere for brevity...
name1 29 lines of JavaScript 1.2 KB Show Edit Expand
1
2
3
/**delta function is to set how the image slide—keep still for a while and move to next picture.
*step function will be called many times until clearInterval() been called
* currentImage * imageW...
ini 2 lines of JSON 44 Bytes Show Edit Expand
1
2
[HKLM\Drivers\BuiltIn\CANx]
dll="can.dll"
ext dup 18 lines of Ruby 415 Bytes Show Edit Expand
1
2
3
4
5
6
7
# Define a method that calls lambda
def lambda_method
    lambda { puts 'Hello from lambda!'; return }.call
    puts 'Hello from lambda_method'
end
# Define a method that calls proc
def proc_...
kek 404 lines of Ruby 9.97 KB Show Edit Expand
1
2
3
4
5
6
7
proc_val = nil

report = MemoryProfiler.report do
  # A method that creates and returns a Proc.
  # It also uses a lot of memory before doing so
  def create_proc
    # Create an array with 1...
XML test 9 lines of XML 465 Bytes Show Edit Expand
1
2
3
4
5
                    <Gingiva>
                        <SurfaceFile>Additional/Gingiva.cmf</SurfaceFile>
                    </Gingiva>
                    <Lower-Gingiva>
                      ...
sss 1 line of diff by sss 172 Bytes Show Edit Expand
1
gcloud alpha compute instances create-from-container integration-api-vm --docker-image=gcr.io/eu-dev01-playerengspikes-gsys/integration-api:latest --port-mappings=80:80:TCP

Page 8, 10 entries