Welcome! This page is using CodeRay 1.1.2.

We currently have 3065 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 1, 10 entries

JvPack2d 166 lines of C by jvernay.fr 5.43 KB Show Edit Expand
1
2
3
4
5

/*
JvPack2d is authored by Julien Vernay, in year 2024 (dev AT jvernay DOT fr).
The software is released to the public domain, as explained below (UNLICENSE).
If you find the software useful, ...
d 207 lines of C 5.72 KB Show Edit Expand
1
2
3
4
5
6
#include <stdio.h>
#include <stdlib.h>

void saisir_dim_matrice(unsigned int * lig, unsigned int * col);
int** alloc_matrice(unsigned int lig, unsigned int col);
void desalloc_matrice(int** ma...
A 207 lines of C 5.72 KB Show Edit Expand
1
2
3
4
5
6
#include <stdio.h>
#include <stdlib.h>

void saisir_dim_matrice(unsigned int * lig, unsigned int * col);
int** alloc_matrice(unsigned int lig, unsigned int col);
void desalloc_matrice(int** ma...
Day34 46 lines of C++ 1.01 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
class Solution {
    private:
    int ok(vector<int> arr,int pages)
    {
        int cnt=1,curr=0;
        for(int i:arr)
        {
            if(curr+i<=pages)
            {
           ...
CSS 27 lines of Java 964 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
@SpringBootApplication
@Slf4j
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Component
    @Re...
ss 6 lines of Python 221 Bytes Show Edit Expand
1
2
3
4
5
def get_full_names(first_names, last_names):
    full_names= []
    for first_name in first_names:
        for last_name in last_names:
            full_names.append(f"{first_name} {last_name}"...
akwarystyka 82 lines of SQL 3.07 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
<?php
// Ustawienia bazy danych
$host = 'localhost';
$username = 'root';
$password = ''; // Domyślnie brak hasła dla XAMPP
$db_name = 'sklep_akwarystyczny';

// Połączenie z MySQL
$conn = n...
doygen 11 lines of C 208 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
/**
 * @brief event handler
 *
 * @param u8_buf message buffer
 * @param u8_len message length
 */
void canReceived( uint8_t const * const u8_buf, uint8_t u8_len)
{
  (void)u8_buf;
  (void...
111 2 lines of diff 132 Bytes Show Edit Expand
1
2
diff = "puts 'Hello, world!'\nputs 'Goodbye, world!'"
html = CodeRay.scan(diff, :diff).div(:line_numbers => :table, :css => :style)
111 1 line of diff 88 Bytes Show Edit Expand
1
CodeRay.scan("puts 'Hello, world!'", :ruby).div(:line_numbers => :table, :css => :style)

Page 1, 10 entries