Welcome! This page is using CodeRay 1.1.2.
We currently have
3061 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
JS ES6 |
54 lines
of
JavaScript
|
1.95 KB |
Show |
Edit |
Expand |
1
2
3
4 |
require([ 'bowser' ], function(bowser) {
if (bowser.msie) {
alert("Sorry, but this application does not currently work in Internet Explorer.\nUntil support for Internet Explorer is added,... |
|
Boostrap Example |
21 lines
of
HTML
|
755 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesh... |
|
testing |
3 lines
of
Ruby
|
26 Bytes |
Show |
Edit |
Expand |
1
2
3 |
def hi
p 'hihi'
end |
|
Haskell as Plain Text |
11 lines
of
Plain text
|
224 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
import qualified Data.Map as M
fib n = fib' n
where
fib x =
if x < 2 then
x
else
fib (x - 1) + fib (x - 2)
main = int... |
|
stuff |
7 lines
of
C
|
383 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
NSString *rawUrl = [Common trimValue:resource. resUrl];
NSString * url = [rawUrl stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
NSURLRequest... |
|
sdfasa |
2 lines
of
diff
|
18 Bytes |
Show |
Edit |
Expand |
|
diff |
18 lines
of
diff
|
971 Bytes |
Show |
Edit |
Expand |
|
ERB |
3 lines
of
ERb
by
DAJI
|
98 Bytes |
Show |
Edit |
Expand |
1
2
3 |
<h1>Hello, Devise</h1>
<pre><%= debug current_user %></pre>
<pre><%= debug user_session %></pre> |
|
Test C++ w/ templates |
27 lines
of
HTML
by
Testttt
|
504 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14 |
#include <iostream>
#include <string>
using namespace std;
template <typename T>
inline T const& Max (T const& a, T const& b)
{
return a < b ? b:a;
}
int main ()
{
int ... |
|
4t454t |
1 line
of
C
|
9 Bytes |
Show |
Edit |
Expand |
|