Welcome! This page is using CodeRay 1.1.2.

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

Page 63, 10 entries

foo 18 lines of YAML by egg 666 Bytes Show Edit Expand
1
2
3
4
5
6
resources:
- type: compute.v1.instance
  name: vm-my-first-deployment
  properties:
    zone: us-central1-f
    machineType: https://www.googleapis.com/compute/v1/projects/foo/zones/us-central...
JavaScript 182 lines of JavaScript 6.53 KB Show Edit Expand
1
2
// Avoid `console` errors in browsers that lack a console.
;(function(){for(var a,e=function(){},b="assert clear count debug dir dirxml error exception group groupCollapsed groupEnd info log markT...
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]
        ]);

Page 63, 10 entries