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 120, 10 entries

dsfv 12 lines of C++ by HTML 395 Bytes Show Edit Expand
1
2
3
4
5
6
// Struct to carry formatter attributes and virtual methods
struct formatter {
  FILE *fp;
  // Virtual Methods here!
  void (*formatter_header2) (formatter*, char* );
  void (*formatter_body2) (f...
dsfv 12 lines of C++ 395 Bytes Show Edit Expand
1
2
3
4
5
6
// Struct to carry formatter attributes and virtual methods
struct formatter {
  FILE *fp;
  // Virtual Methods here!
  void (*formatter_header2) (formatter*, char* );
  void (*formatter_body2) (f...
- 1 line of SQL 1.25 KB Show Edit Expand
1
(SELECT DISTINCT posts.id, posts.updated_at AS updated_at, posts.created_at AS created_at FROM "posts" INNER JOIN "share_visibilities" ON "share_visibilities"."shareable_id" = "posts"."id" AND "sha...
json example 22 lines of JSON by t 605 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
{
    "glossary": {
        "title": "example glossary",
    "GlossDiv": {
            "title": "S",
      "GlossList": {
                "GlossEntry": {
                    "ID": "SGML",
          "...
xmlt 231 lines of XML by tpu 8.74 KB Show Edit Expand
1
2
3
4
5
<?xml version="1.0" encoding="UTF-8"?>
<lom xmlns="http://ltsc.ieee.org/xsd/LOM">
    <general>
        <title>
            <string language="el">Η θάλασσα στο έργο του Στράτη Μυριβήλη</string>...
ola 7 lines of HTML 29 Bytes Show Edit Expand
1
2
3
4
5
6
7
2
3
ff
sgs
fg
sgxsv
cxv
request 3 lines of HTML by sdfsd 29 Bytes Show Edit Expand
1
2
3
<html>
<p>hello</p>
</html>
color test 1 line of YAML by ja 25 Bytes Show Edit Expand
1
01 02 03        //comment
sad 32 lines of Ruby 828 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
module PadraoSingleton
  def getInstancia
    (self.class_variable_get :@@instance)
  end    

  def self.included(mod)
    # criando a unica instancia da classe
    mod.class_variable_set :@@instance ...
sad 39 lines of Ruby 1 KB Show Edit Expand
1
2
3
4
5
6
7
# instanciamos a classe pedido
pedido = Pedido.new
# instance_eval permite alterar a estrura 
# classe apenas para essa instancia em especifico
pedido.instance_eval do
  class << self
    # tran...

Page 120, 10 entries