Welcome! This page is using CodeRay 1.1.2.
We currently have
3066 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
simple counter |
16 lines
of
C
by
rothi
|
250 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
MAX = 50
def main:
count = 0
while count < MAX:
if count % 2 == 0:
print("The number", count, "is even!")
else:
print("The number", count, "is odd!")
count... |
|
Emberjs |
47 lines
of
JavaScript
|
1.1 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
module.exports = function(environment) {
var ENV = {
modulePrefix: 'library-app',
environment: environment,
baseURL: '/',
locationType: 'auto',
... |
|
gab |
7 lines
of
Plain text
by
gab
|
502 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
render: function(){
var chicken = this //means to whatever
var filter = items.filter(function(item){
return ((item.category === chicken.props.category) && ... |
|
SQL check |
1 line
of
JavaScript
by
yo mama
|
19 Bytes |
Show |
Edit |
Expand |
|
SQL |
1 line
of
SQL
by
chao
|
19 Bytes |
Show |
Edit |
Expand |
|
Send Msg |
34 lines
of
JavaScript
by
Gabrielle
|
801 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
function parseMarkdown (str) {
var arr = str.split(' ')
var symbols = arr[0].split('')
var result = null
if (symbols[0] === '#') {
var count = 0
symbols.forEach(function (... |
|
a |
22 lines
of
HAML
|
477 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
alert("HE... |
|
test |
14 lines
of
PHP
by
test
|
332 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<?php
defined('_JEXEC') or die('Restricted access');
jimport('joomla.plugin.plugin');
jimport('joomla.html.parameter');
jimport('joomla.version');
class plgSystemK2Filter extends JPlugin {... |
|
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... |
|