Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Fibonacci Sums |
29 lines
of
C++
by
Mystical
|
615 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
#include <iostream>
#include <cstdlib>
#include <cstdio>
#define MAXN 100000
#define MOD 10009
using namespace std;
int main() {
int t, x, y, fib[MAXN+1];
scanf ("%d", &t);
w... |
|
test ruby code |
31 lines
of
Ruby
by
foyo99
|
791 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
class MicropostsController < ApplicationController
before_filter :authenticate, :only => [:create, :destroy]
before_filter :authorized_user, :only => :destroy
def create
@micropost ... |
|
dfdf |
1 line
of
HTML
|
6 Bytes |
Show |
Edit |
Expand |
|
prueba |
0 lines
of
C
|
0 Bytes |
Show |
Edit |
Expand |
|
test |
24 lines
of
JavaScript
by
p
|
520 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
[if {ItemOverviews}]
<h2>{ItemTitle} Overview</h2>
{ItemOverviews}
[endif]<br>
<p align='center'><a href='{ItemUrl}'><img src="{ItemMediumImageUrl}" border='0'></a></p>
<br>
[if {ItemOffe... |
|
sdfsd |
3 lines
of
Ruby
|
39 Bytes |
Show |
Edit |
Expand |
1
2
3 |
def one
code_ray = %w(code ray)
end |
|
rok4 |
13 lines
of
C++
by
NV
|
456 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
template<typename pixel_t>
size_t BilEncoder<pixel_t>::getdata(uint8_t *buffer, size_t size) {
size_t offset = 0;
LOGGER_DEBUG( "Encodage BIL : height " <<image->height<< " image->linesize" ... |
|
about_triangle_project_2.rb from Koans |
15 lines
of
Ruby
|
597 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
require File.expand_path(File.dirname(__FILE__) + '/edgecase')
require 'triangle.rb'
class AboutTriangleAssignment2 < EdgeCa... |
|
about_constants.rb from Koans |
87 lines
of
Ruby
|
2.09 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
require File.expand_path(File.dirname(__FILE__) + '/edgecase')
C = "top level"
class AboutConstants < EdgeCase::Koan
C = "nested"
def test_nested_constants_may_also_be_referenced_wi... |
|
c code |
6 lines
of
C
|
72 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
#include <stdio.h>
int main(int argc,char *argv[])
{
return 0;
} |
|