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.

Page 7, 10 entries

C++ Example with C++20 Keywords 15 lines of C++ by Tirthankar Mazumder 237 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

template <typename T>
concept Addable = requires (T a, T b) {
    a + b;
};

template <typename T>
T add(const T& a, const T& b) {
    return a + b;
}

int main() {...
fdg 7 lines of JavaScript by dfg 131 Bytes Show Edit Expand
1
2
3
4
5
6
7
function sayHello(name) {
  if (!name) {
    console.log('Hello World');
  } else {
    console.log(`Hello ${name}`);
  }  
}
JSON product 44 lines of JSON by me 1.31 KB Show Edit Expand
1
2
3
4
5
{
    "_id" : "hoodie_black",
    "type" : "PRINTABLE",
    "name" : "Kangaroo Pocket Hoodie. Color black",
    "description" : "Cotton and polyester cotton hoddie with kangaroo pocket and pull...
c code 95 lines of C++ by me 3.04 KB Show Edit Expand
1
2
3
4
5
6
7
// ----------------------------------------------------------------------------

// MIT License

// Copyright (c) 2022 Stefan Wagner

// Permission is hereby granted, free of charge, to any p...
Code 1 18 lines of Java by APU 636 Bytes Show Edit Expand
1
2
3
4
5
Public void upload(HttpServletRequest request) throws ServletException {


            MultipartHttpServletRequest mRequest = (MultipartHttpServletRequest) request;
            String next = (S...
asp 19 lines of Python by asp 641 Bytes Show Edit Expand
1
2
3
4
5
6
Init_DAB_DDC:
    AR = DM(CONFIG_DQPSK_MODE);
    AY0 = CONFIG_DQPSK_NORMALIZATION;
    NONE = AR - AY0;
    IF NE JUMP set_dpsk_mode;
    AR = 0x23;                         ! DQPSK normalizat...
dsp 22 lines of C by dsp 667 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
.ENTRY Init_DAB_DDC;
Init_DAB_DDC:

    AR = DM(CONFIG_DQPSK_MODE);
    AY0 = CONFIG_DQPSK_NORMALIZATION;
    NONE = AR - AY0;
    IF NE JUMP set_dpsk_mode;
    AR = 0x23;                   ...
css 166 lines of CSS by cc 3.23 KB Show Edit Expand
1
2
3
4
5
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib...
test 87 lines of C 1.99 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
root@nginx-genedu:~# cat /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
        # original 750
        ...
test 87 lines of Groovy (beta) 1.99 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
root@nginx-genedu:~# cat /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
        # original 750
        ...

Page 7, 10 entries