Welcome! This page is using CodeRay 1.1.2.
We currently have
3019 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
test |
9 lines
of
diff
|
342 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
@@ -1,5 +1,5 @@
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/touchscreen0
export QT_QPA_EGLFS_HIDECURSOR=1
export FB_MULTI_BUFFER=2
-export QT_QPA_EGL... |
|
JSON API |
76 lines
of
JSON
|
1.77 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
{
"links": {
"self": "http://example.com/articles",
"next": "http://example.com/articles?page[offset]=2",
"last": "http://example.com/articles?page[offset]=10"
},
"data": [{... |
|
HTML |
4 lines
of
HTML
by
John Smith
|
2.51 KB |
Show |
Edit |
Expand |
1
2
3 |
<button mat-raised-button color="primary">Start Game</button>
<button mat-raised-button color="primary">Start Game</button>
<button mat-raised-button color="primary">Start Game</button><button ma... |
|
sdsdsa |
8 lines
of
PHP
by
seTajul
|
290 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<?php
$birthDate = "11/9/2002";
$birthDate = explode("/", $birthDate);
$age = (date("md", date("U", mktime(0, 0, 0, $birthDate[0], $birthDate[1], $birthDate[2]))) > date("md")
?... |
|
python test |
3 lines
of
Python
by
L
|
55 Bytes |
Show |
Edit |
Expand |
1
2
3 |
SHA512_CONST = 100000 |
|
bash |
12 lines
of
C
|
427 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
#!/bin/bash
timestamp=`date +%s`
secret=test_secret
client_id=test_client
sign=`echo -n $client_id$timestamp$secret | sha256sum | awk '{print $1}'`
server=localhost:3000
curl -iv \
-X POST \... |
|
asd |
31 lines
of
JSON
|
818 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
{
"id":6363,
"status":200,
"client":"4cc8d2deeb876add50cac888cbeb195c",
"info":"success result",
"service":"echo",
"created_at":"2019-07-23T15:06:31.692+03:00",
"response":{/... |
|
Java code |
37 lines
of
Java
|
841 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
public class Kat extends Huisdier{
private int aantalLevens;
public Kat(String naam, int aantalLevens) {
super(naam);
setAantalLevens(aantalLevens);
}
publ... |
|
test |
15 lines
of
Ruby
|
269 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
class CreateUsers < ActiveRecord::Migration[5.2]
def change
create_table :users do |t|
t.string :provider
t.string :uid
t.string :email
... |
|
a |
82 lines
of
Ruby
|
1.47 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
class Bottles
def song
verses(99, 0)
end
def verses(starting, ending)
starting.downto(ending).collect {|i| verse(i)}.join("\n")
end
def verse(number)
bottle_number = B... |
|