Welcome! This page is using CodeRay 1.1.2.

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

Page 50, 10 entries

ERB 3 lines of ERb by DAJI 98 Bytes Show Edit Expand
1
2
3
<h1>Hello, Devise</h1>
<pre><%= debug current_user %></pre>
<pre><%= debug user_session %></pre>
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...

Page 50, 10 entries