Welcome! This page is using CodeRay 1.1.2.
We currently have
3068 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
| diff |
3 lines
of
diff
|
189 Bytes |
Show |
Edit |
Expand |
1
2
3 |
- this.firstTimeLogin = 0;
+ if(responseValue == 1 || responseValue == true || responseValue == "1"){
+ this.firstTimeLogin = 1; |
|
| wzwzw |
76 lines
of
C++
by
bbbb
|
2.4 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution... |
|
| Test |
14 lines
of
JavaScript
|
458 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
import Ember from 'ember';
import baseService from 'data-layer/mixins/base-service';
export default Ember.Service.extend(baseService, {
apiPath: 'lookups/userprofile',
cidbModel: 'user-pr... |
|
| 111 |
2 lines
of
Ruby
|
51 Bytes |
Show |
Edit |
Expand |
1
2 |
CodeRay.scan('puts "Hello, world!"', :ruby).div
|
|
| ruby |
61 lines
of
Ruby
|
1.48 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
#!/bin/sh
print_ora60 () {
fichier="/var/log/epg-server_inst1/$1"
if [ -e $fic... |
|
| test |
4 lines
of
JavaScript
|
61 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
var a = function( f ){
return a + b;
}
var aa = "test"
|
|
| Test nginx |
6 lines
of
PHP
by
B
|
39 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
loc = /ccc {
foo bar;
} |
|
| Test nginx |
6 lines
of
C++
by
B
|
39 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
# bla
loc = /ccc {
foo bar;
} |
|
| test java |
18 lines
of
Java
by
ge
|
623 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (mGoogleApiClient == nu... |
|
| media_server_controller.rb |
15 lines
of
Ruby
by
Rack::App
|
235 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
require 'rack/app'
class MediaServerController < Rack::App
serve_files_from '/public'
serve_files_from 'assets', to: '/assets'
mount_directory '/ww... |
|