Welcome! This page is using CodeRay 1.1.0 (beta).

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

Page 1, 10 entries

My Test Ray 31 lines of CSS 728 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
// Editor source pane
textarea.cke_source {
  padding: 10px 15px !important;
  box-sizing: border-box;
  font-family: $code-font !important;
  font-size: 15px !important;
  color: #333333;
}...
VBA 9 lines of Ruby 236 Bytes Show Edit Expand
1
2
3
4
5
6
Private Sub Open_Closed_Status_Change()
    If Me.Open_Closed_Status.Value = "Closed" Then
        Me.Date_Closed = Format(Now, "mm/dd/yy")
    Else
        Me.Date_Closed.Value = Null
    End...
test 86 lines of JavaScript 2.16 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
tx_price_od : 0.0;
max_price_oh : [1396021378015, 597, 1.81];
offer_bmoid : 0;
offer_id : 5983232850332;
offer_market : 0;
book1_oh : 1.81;
ts : 1396021379544;
tx_price_oa : 0.0;
event_type...
ini 2 lines of diff by andy 93 Bytes Show Edit Expand
1
2
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\USBOTG]
"CableDetectPol"=dword:0x00000001     ;default 1
adsfsadg 8 lines of Clojure 160 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
user=> (rational? 1)
true
user=> (rational? 1.0)
false
user=> (class 1.0)
java.lang.Double

;; Note that decimal? only returns true if n is a BigDecimal.
ARGF doc top 14 lines of Ruby by Douglas Allen 209 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
# argf.rb

p ARGF.argv   
p option = ARGV.shift
p ARGF.argv
p ARGF.all?
p ARGF.any? 

$ ruby argf.rb --verbose file1 file2
["--verbose", "file1", "file2"]
"--verbose"
["file1", "file2"]
...
div1 1 line of Ruby by div 4 Bytes Show Edit Expand
1
x/ 1
sidekiq 28 lines of Ruby 950 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
class StatusNotifier
  include Sidekiq::Worker
  include Sidetiq::Schedulable

  recurrence { minutely }
  sidekiq_options retry: false

  def perform options={}
    Grow.not_updated.each d...
controller 48 lines of Ruby 1.13 KB Show Edit Expand
1
2
3
4
5
6
7
8
class GrowsController < ApplicationController

  before_filter :authenticate_user!

  def index
    @grows = current_user.grows
    if @grows.size < 1
      flash[:notice] = "Please add a new g...
Route 4 lines of C 156 Bytes Show Edit Expand
1
2
3
4
Rails.application.routes.draw do
  get "/current", controller: :statuses, action: :current
  get "/statuses", controller: :statuses, action: :index
end

Page 1, 10 entries