Welcome! This page is using CodeRay 1.1.2.
We currently have
3068 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
| Python - Check package versions |
20 lines
of
Python
|
699 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
import xmlrpclib
import pip
pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
for dist in pip.get_installed_distributions():
available = pypi.package_re... |
|
| txt |
24 lines
of
Plain text
|
606 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
<VirtualHost *:80>
#RewriteLogLevel 0
DirectoryIndex index.php index.html
<Directory "/d/web">
Allowoverride All
</Directory>
#----------------------------... |
|
| test |
4 lines
of
Java
by
Benevides
|
495 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
public class TicketCategory { private String description; public Stri... |
|
| sql |
1 line
of
SQL
|
46 Bytes |
Show |
Edit |
Expand |
1 |
SELECT ID FROM PERSONNE WHERE SN LIKE 'test%'; |
|
| cdata |
22 lines
of
HTML
|
416 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
From <a href="https://en.wikipedia.org/wiki/CDATA">Wikipedia</a>:
…as in this JavaScript example:
<script type="text/javascript">
document.write("<");
</script>
or th... |
|
| rad |
3 lines
of
Ruby
by
HCV
|
84 Bytes |
Show |
Edit |
Expand |
1
2
3 |
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html |
|
| s |
1 line
of
Python
|
46 Bytes |
Show |
Edit |
Expand |
1 |
ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub |
|
| cpp |
31 lines
of
C++
by
cpp
|
556 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
int HTTP_Client::Open (Ztring Url)
{
if (Handle)
Close();
Handle=HTTPClientOpenRequest(0);
if (HTTPClientSetVerb(Handle, VerbGet)!=0)
{
... |
|
| bash? |
1 line
of
Plain text
|
35 Bytes |
Show |
Edit |
Expand |
1 |
strings $(which gedit) | grep share |
|
| 1c |
3 lines
of
Groovy (beta)
|
56 Bytes |
Show |
Edit |
Expand |
1
2
3 |
Если Условие = Истина Тогда
Переменная = 1;
КонецЕсли; |
|