Welcome! This page is using CodeRay 1.1.2.

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

Page 49, 10 entries

Test C++ w/ templates 27 lines of HTML by Testttt 504 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <string>

using namespace std;

template <typename T>
inline T const& Max (T const& a, T const& b) 
{ 
    return a < b ? b:a; 
} 
int main ()
{
 
    int ...
4t454t 1 line of C 9 Bytes Show Edit Expand
1
45t45t5tt
Javatest 7 lines of JavaScript 290 Bytes Show Edit Expand
1
2
3
var hubConnection = $.hubConnection("http://lsesrv:5001", {useDefaultUrl: false});
var hubConnectionProxy= hubConnection.createHubProxy('PrintJobSignalR');
hubConnectionProxy.on('PrintJobUpdate',...
stas 17 lines of Ruby by stas 516 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
 def new_idea
   @idea = Idea.create(header: params[:header], body: params[:body], video: params[:video], user_id: @current_user.id)
    
   render layout: false
  end
  
  def set_session
 ...
asf 42 lines of Ruby by asdf 902 Bytes Show Edit Expand
1
2
3
4
5
6
7
def output_box str, charh, charv, charc
  stra = (str + "\n ").split("\n")
  stra.pop
   strl = stra.max_by{|a| a.length}.length
  i = 0
  puts charc + charh * (strl + 2) + charc
  while i < stra.l...
define guards 6 lines of C++ by JJ 82 Bytes Show Edit Expand
1
2
3
4
5
6
#ifndef FOO_BAR_BAZ_H_
#define FOO_BAR_BAZ_H_

...

#endif  // FOO_BAR_BAZ_H_
python 8 lines of Python 316 Bytes Show Edit Expand
1
2
3
Более того, поскольку в интерактив  ном сеансе результаты выражений, которые вы вводите, печатаются ав  томатически, вам необязательно явно вводить «print» после подсказки:
>>>lumberjack = 'okay'
...
gfbfbgbfgb 1 line of ERb 18 Bytes Show Edit Expand
1
<%= 'gmjhmhjmh' %>
Swagger2Markup 15 lines of Java by cascer1 509 Bytes Show Edit Expand
1
2
3
4
5
Path swaggerFile = Paths.get("work/input/spec.yaml");
Path outputFile = Paths.get("work/temp/api");

Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder()
  .withMarkupLanguage(Markup...
HTML_TEST 12 lines of HTML 281 Bytes Show Edit Expand
1
2
3
4
5
6
<html>
<head>
  <style>
    #box1{ width:225px; height:225px; background-image:url(earth.jpg); }
    #box2{ width:500px; height:300px; margin-top:80px; background-image:url('earth.jpg'); }
  </style...

Page 49, 10 entries