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.
Qt QNetworkManager Snippet |
10 lines
of
C++
by
JD Scott
|
473 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
QNetworkRequest request;
request.setUrl(QUrl("http://qt.nokia.com"));
request.setRawHeader("User-Agent", "MyOwnBrowser 1.0");
QNetworkReply *reply = manager->get(request);
connect(reply, SIGN... |
|
SharePoint app example |
3 lines
of
JavaScript
by
Ivanov Vladimir
|
43 Bytes |
Show |
Edit |
Expand |
1
2
3 |
function log(str) {
console.log(str);
} |
|
sad |
1 line
of
C++
|
3 Bytes |
Show |
Edit |
Expand |
|
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 |
|