/etc/hosts.allow |
5 lines
of
Plain text
by
akhamutov
|
144 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
ALL : localhost 127.0.0.1/32 [::1]/128 : allow
ALL : PARANOID : deny
ALL : locallhost 127.0.0.1/32 : allow
ALL : [::1]/128 : allow
sshd: ALL |
|
Just some ruby |
18 lines
of
Ruby
by
nunya
|
226 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14 |
class Whatever < SomeOtherClass
attr_accessor :my_ivar
def meth_name
5.times do |i|
puts "this was time #{i}"
end
3.times {puts "whatever"}
end
private
... |
|
Hello, CodeRay |
7 lines
of
C++
|
120 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("Hello, CodeRay!\n");
return EXIT_SUCCESS;
}
|
|
python |
52 lines
of
Python
by
inet
|
1.39 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14 |
import sys
import getopt
from compiler import compileFile, visitor
import profile
def main():
VERBOSE = 0
DISPLAY = 0
PROFILE = 0
CONTINUE = 0
opts,... |
|
Invalid JSON highlighted as JavaScript |
6 lines
of
JavaScript
by
murphy
|
73 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
{
key: "value",
"key": undefined,
} |
|
Invalid JSON (5 errors) |
7 lines
of
JSON
by
murphy
|
99 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
{
key: 'value',
// comment
/* comment */
"key": undefined,
@{{embedded<WALRUS>}}@
} |
|
Some Objective-C 2.0 |
49 lines
of
C
by
Daniel Thorpe
|
2.37 KB |
Show |
Edit |
Expand |
|
From carrot |
9 lines
of
Python
|
444 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
from carrot.connection import BrokerConnection
conn = BrokerConnection(hostname="localhost", port=5672,
userid="django", password="django",
virtua... |
|
Random DTD and XML Test |
26 lines
of
XML
by
Not a sodding bot!
|
699 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
<!DOCTYPE TVSCHEDULE [
<!ELEMENT TVSCHEDULE (CHANNEL+)>
<!ELEMENT CHANNEL (BANNER, DAY+)>
<!ELEMENT BANNER (#PCDATA)>
<!ELEMENT DAY ((DATE, HOLIDAY) | (DATE, PROGRAMSLOT+))+>
<!ELEMENT HOLI... |
|
JavaScript in HTML |
8 lines
of
JavaScript
by
troex
|
182 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<script type="text/javascript" charset="utf-8">
$().ready({
$('#my-div').elfinder({
url : 'connectors/php/connector.php',
lang : 'ru'
})
})
</script>
|
|