Welcome! This page is using CodeRay 1.1.2.

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

Page 33, 10 entries

MapMgr 61 lines of Java 1.76 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
package kr.go.incheon.fire.erss.map;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.fasterxml.jac...
www 4 lines of PHP 100 Bytes Show Edit Expand
1
2
3
4
PV: Precio de venta (sin impuestos)
I01: Porcentaje de impuesto aplicado al valor

IMP = PV * I01
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 18 lines of JavaScript by Dominic Chambers 584 Bytes Show Edit Expand
1
2
3
4
5
6
it('allows an item to be added to the list', function() {
  // given
  let todoApp = $(<TodoApp model={model} router={router}/>);

  // when
  todoApp.shallowRender().find('TodoHeader')[0].pro...
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 ...

Page 33, 10 entries