Welcome! This page is using CodeRay 1.1.2.

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

Page 159, 10 entries

Jotain 49 lines of Ruby 1.52 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
require 'socket'
require 'rubygems'
require 'json'
require 'fileutils'

module Pingpong
  class Client
    def initialize(player_name, server_host, server_port)
      tcp = TCPSocket.open(s...
split 10 lines of Ruby by bovi 271 Bytes Show Edit Expand
1
2
3
4
5
6
lines = <<EOF
Du bist ein werdendes, nicht ein gewordnes ICH.
Und alles Werden ist im Widerspruch mit sich.
Unendliches das WIRD, muss ENDLICH sich gebaeren.
Und Endliches will, indem es wird,
...
test php 14 lines of PHP 583 Bytes Show Edit Expand
1
2
3
4
5
      $filename = 'secret-combination.txt';
      extract($_GET);
      if (isset($attempt)) {
        $combination = trim(file_get_contents($filename));
        if ($attempt === $combination) ...
test ruby 5 lines of Ruby by jduan 101 Bytes Show Edit Expand
1
2
3
4
5
describe Post do
     subject { Post.new published: true }

     it { should be_published }
end
test 1 line of Ruby by e 21 Bytes Show Edit Expand
1
<strong>Test</strong>
misc/ustring.c 22 lines of C 722 Bytes Show Edit Expand
1
2
3
4
/* ==================== handle argv ==================== */

#define ustring_delete_range_p(/*UString **/ ustr, /*UChar **/ from, /*UChar **/ to) \
ustring_delete_len(ustr, from - ustr->ptr, to ...
erb helper call 1 line of ERb by dsferreira 27 Bytes Show Edit Expand
1
<%= get_helper( params ) %>
Clojure example 2 lines of Clojure by clj 92 Bytes Show Edit Expand
1
2
(str "Example: "
  (clojure.string/join " " ["Clojure" "syntax" "highlighting" "example"]))
a 14 lines of Ruby 475 Bytes Show Edit Expand
1
2
3
4
5
6
class HomeController < ApplicationController

  FEATURE_ICONS_DIRECTORY = File.join(::Rails.root, "public/img/feature-icons")

  def index
    # Find all the images in the "feature-icons" dire...
test 43 lines of XML 1.39 KB Show Edit Expand
1
2
3
4
5
<?xml version="1.0" encoding="UTF-8"?>
<properties>
    <property name="action">
        <string meta="name">GISSGMDE-accionTiempoInstTrat</string>
        <string meta="url">http://swdesa1.por...

Page 159, 10 entries