Welcome! This page is using CodeRay 1.1.2.

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

Page 26, 10 entries

ddd 13 lines of Ruby 253 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
class ChangeProductsPrice < ActiveRecord::Migration[5.0]
  def up
    change_table :products do |t|
      t.change :price, :string
    end
  end
 
  def down
    change_table :products do |...
ddd 10 lines of Ruby 259 Bytes Show Edit Expand
1
2
3
4
5
6
class ChangeProductsPrice < ActiveRecord::Migration[5.0]
  def change
    reversible do |dir|
      change_table :products do |t|
        dir.up   { t.change :price, :string }
        dir.down...
instacall test 3 lines of HTML 829 Bytes Show Edit Expand
1
<button id="my-instacall-button" class="ic-button" data-instaCallName="select-test" data-Instructions="Start your call with us." data-address="alice@fakesipdomain.onsip.com" data-video="false" data...
java 39 lines of Java by aaaaaaaa 1.15 KB Show Edit Expand
1
2
3
4
5
6
7
public ArrayList<Integer> rodCut(int A, ArrayList<Integer> B) {
  B.add(0, 0);
  B.add(A);
  int size = B.size();
  long[][] cost = new long[size][size];
  int[][] index = new int[size][size];
  fo...
cwcw 15 lines of diff 538 Bytes Show Edit Expand
1
2
3
4
5
6
7
$ curl --request OPTIONS \
  --url http://localhost:8080/routes \
  --header 'authorization: Basic dXNlcjpwYXNzd29yZA==' \
  -D -
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Content-Type-Opti...
test ruby 144 lines of Ruby 4.34 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
require 'csv'
require 'fileutils'
require 'pathname'
require 'nokogiri'
require 'pp'


class IBMTestReporter
  attr_reader :xml_runners, :test_result, :report
  attr_writer :test_result, :...
SQL-sample 3 lines of SQL by TestTest 150 Bytes Show Edit Expand
1
2
3
select colName1 "ColName #1", colName "ColName #2"
from SomeSchema.SomeTable
where uid >= ( select max(uid) - 10 from SomeSchema.SomeTable )asdfsadf
test2 138 lines of Java by aaa 4.42 KB Show Edit Expand
1
2
3
4
5
6
7
HiiDump - Dell HII Dump Utility - version 2.1.4
© 2009 - 2012 Dell Inc. All rights reserved.


Device FQDD     : nic.integrated.1-1-1
Device Location : Integrated NIC 1 Port 1 Partition 1
Dev...
test 138 lines of C by aaaa 4.42 KB Show Edit Expand
1
2
3
4
5
6
7
HiiDump - Dell HII Dump Utility - version 2.1.4
© 2009 - 2012 Dell Inc. All rights reserved.


Device FQDD     : nic.integrated.1-1-1
Device Location : Integrated NIC 1 Port 1 Partition 1
Dev...
test 16 lines of C by test 259 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <string.h>

int main()
{
    int c;
    while((c = getchar()) != EOF){
        if(c == ' '){
            while((c = getchar()) == ' ');
            putchar(' ')...

Page 26, 10 entries