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.
Ruby test |
14 lines
of
Ruby
by
me
|
333 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
class UltimateProxy < BasicObject
def initialize(object)
delegate_everything_to(object)
end
private
def delegate_everything_to(object)
metaclass = class << self; self; end... |
|
test |
1 line
of
C++
|
14 Bytes |
Show |
Edit |
Expand |
|
SQL |
22 lines
of
SQL
by
SQL
|
1.13 KB |
Show |
Edit |
Expand |
1
2 |
SELECT stk.PART_NO AS 商品條碼, stk.PARTNAME2 AS 商品名稱, BASEDB.dbo.fnGetRetailItemPackingSpec(stk.part_no) AS 包裝規格, r.unit AS 單位, r.QTY AS 數量, r.PRICE
* (1 -r.discount / 100.0) AS 單價, r.PRICE *... |
|
VMware |
30 lines
of
YAML
|
1.15 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
require 'rbvmomi'
require 'highline/import'
liste_vms = File.open("vmlist","r").readlines
liste_vms.map! { |vm| vm.chomp }
|
|
config file |
18 lines
of
diff
|
681 Bytes |
Show |
Edit |
Expand |
|
config file |
18 lines
of
Ruby
|
681 Bytes |
Show |
Edit |
Expand |
|
config file |
18 lines
of
Plain text
|
681 Bytes |
Show |
Edit |
Expand |
1
2
3 |
######################################################################
# Advanced Intrusion Detection System configuration file. Note: When
# using RHEL and SELinux is operational, all the parame... |
|
config file |
18 lines
of
CSS
|
681 Bytes |
Show |
Edit |
Expand |
1
2
3 |
######################################################################
# Advanced Intrusion Detection System configuration file. Note: When
# using RHEL and SELinux is operational, all the parame... |
|
test |
8 lines
of
Ruby
|
177 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
def index
@items = current_user.items.roots
respond_to do |format|
format.html
format.xml { render :xml => @items }
end
end |
|
xcvxc |
1 line
of
HTML
|
45 Bytes |
Show |
Edit |
Expand |
1 |
<div>this is a test<a href="/">here</a></div> |
|