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.
Ti |
15 lines
of
Java
|
375 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
PageReference pageRef = Page.TestPage;
Test.setCurrentPage(pageRef);
pageRef.getParameters().put('Id',id);
|
|
Mememe |
108 lines
of
PHP
|
2.79 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Validator;
use Blade;
class AppServiceProvider extends ServiceProvider
{
|
|
Title |
4 lines
of
Ruby
by
Name
|
163 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
def self.database_type
return 'DEV' + db_suffix if ENV['Environment'] == 'DEV'
ENV_MAP.fetch(ENV['Environment'].downcase.to_sym, 'QA') + db_suffix
end |
|
yaml2 |
7 lines
of
YAML
|
112 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
Zosia:
- a:
name: 4
surname: "ala ma kota"
- b:
name: "aaa"
surname: "sadoajsdsad" |
|
yaml |
11 lines
of
YAML
by
dvilela
|
129 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
---
- Zosia:
- a:
name: 4
surname: "ala ma kota"
- b:
name: "aaa"
surname: "sadoajsdsad"
... |
|
some Java Test |
21 lines
of
Java
by
zupzup
|
731 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
public static bool isUsernameValid(string username) {
RegEx r = new Regex(“^[A-Za-z0-9]{16}$”);
return r.isMatch(username);
}
|
|
name1 |
29 lines
of
JavaScript
|
1.2 KB |
Show |
Edit |
Expand |
|
ini |
2 lines
of
JSON
|
44 Bytes |
Show |
Edit |
Expand |
1
2 |
[HKLM\Drivers\BuiltIn\CANx]
dll="can.dll"
|
|
ext dup |
18 lines
of
Ruby
|
415 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
def lambda_method
lambda { puts 'Hello from lambda!'; return }.call
puts 'Hello from lambda_method'
end
def proc_... |
|
kek |
404 lines
of
Ruby
|
9.97 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
proc_val = nil
report = MemoryProfiler.report do
def create_proc
|
|