Welcome! This page is using CodeRay 1.1.2.

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

Page 65, 10 entries

C++11 lambda 15 lines of C++ by Garf 214 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void test()
{
  int sum = 0;
  auto f = [&sum](int i){ sum += i; };
  std::vector<int> v;

  fill(v);

  for(auto i: v)
  {
    f(i);
  }

  std::cout << "sum of values in v : " << sum...
HAML Example 5 lines of HAML by http://haml.info/ 91 Bytes Show Edit Expand
1
2
3
4
5
%section.container
  %h1= post.title
  %h2= post.subtitle
  .content
    = post.content
asd 54 lines of Ruby by ff 2.03 KB Show Edit Expand
1
2
3
# These settings are documented in more detail at
# https://gitlab.com/gitlab-org/gitlab-ce/blob/a0a826ebdcb783c660dd40d8cb217db28a9d4998/config/gitlab.yml.example#L136
# Be careful not to break ...
su 18 lines of diff 576 Bytes Show Edit Expand
1
2
3
4
5
6
su
sqlite3 /data/data/com.android.providers.media/databases/external.db "select _data from files;" | grep "mp3" > /sdcard/log.txt
num_strings=`wc -l /sdcard/log.txt`
count=0

killall android.p...
JSX 1 line of JavaScript by Dominic Chambers 10 Bytes Show Edit Expand
1
<Prompt />
hierarchical query 20 lines of SQL by copied_from_postgres 759 Bytes Show Edit Expand
1
2
3
4
5
WITH RECURSIVE search_graph(parent_id, child_id, depth, path, cycle) AS (
        select g.parent_id, g.child_id, 1,
          ARRAY[child_id, parent_id], // # <1>
          false
        from ...
Groovy Sample 3 lines of Groovy (beta) 85 Bytes Show Edit Expand
1
2
3
['Emerson', 'Palmer', 'Lake'].each { progger ->
    println "Progger: $progger"
}
rubes 5 lines of JavaScript 194 Bytes Show Edit Expand
1
2
3
4
5
        data.addRows([
          [new Date(2015, 7, 23, 13, 53), 67, null],
          [new Date(2015, 7, 23, 13, 54), 1, null],
          [new Date(2015, 7, 23, 13, 55), 2, null]
        ]);
ddd 4 lines of JavaScript 35 Bytes Show Edit Expand
1
2
3
4
function(ee) {
  var tt = ee;

}
dd 4 lines of C++ 33 Bytes Show Edit Expand
1
2
3
4
void zz()
{
  return "dsds";
}

Page 65, 10 entries