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.
xml |
30 lines
of
JavaScript
|
1.02 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
describe("Test data aggregation within D2DMetricsDataStream", function () {
var T_SAMPLE_POINT = 5;
var myInstance;
beforeEach( func... |
|
analytics tag |
4 lines
of
Delphi
|
60 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
procedure teste();
begin
showMessage('olá mundo');
end; |
|
google analytics |
11 lines
of
JavaScript
|
439 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-Y']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javasc... |
|
JSON |
6 lines
of
JSON
|
126 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
[
{ "date": "yyyy-mm-dd", "feedId": <int>,
"img": "<url>",
"title": "<string>"
},
] |
|
asd |
4 lines
of
Ruby
by
asdsddasd asd
|
97 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
def email
"\#{first_initial}\#{last_name}@mines.edu"
end |
|
sdf |
167 lines
of
Java
|
4.96 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
package njust.consman.secman;
import hirondelle.web4j.security.SafeText;
import hirondelle.web4j.util.Util;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
... |
|
auie |
1 line
of
PHP
|
28 Bytes |
Show |
Edit |
Expand |
1 |
[(X < Y Or X < Z) And X ≠ Q] |
|
Python |
4 lines
of
Python
by
anon
|
100 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
funcs = Functions()
for f in funcs:
name = Sample(f)
AnotherFunction("Test: %s\n" % name) |
|
ERB example |
8 lines
of
ERb
|
344 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<meta charset="utf-8">
<title><%= content_for?(:title) ? yield(:title) : @page_name.value %></title>
<%= csrf_meta_tags %>
|
|
Model without persist |
23 lines
of
Ruby
|
566 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
class Contact
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
attr_accessor :name, :email, :message
validates_presence_of :name
|
|