Welcome! This page is using CodeRay 1.1.2.
We currently have
3066 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
| Gosu boilerplate | 
17 lines
of
Ruby
 | 
233 Bytes | 
Show | 
Edit | 
Expand | 
  1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16  | 
  require 'gosu'
class GameWindow < Gosu::Window
  def initialize
    super 640, 480, false
    self.caption = "Gosu Tutorial Game"
  end
  def update
  end
  def draw
  end
end
wi... | 
  
 
 | 
| Diff test | 
10 lines
of
diff
by
Jaja
 | 
198 Bytes | 
Show | 
Edit | 
Expand | 
  1
2
3
4
5
6
7
8
9
10  | 
  
--- a/Gemfile
+++ b/Gemfile
@@ -7,6 +7,7 @@ gem 'rails', '3.2.12'
 
 gem 'pg'
-gem 'coderay'
+gem 'coderay_bash'
 gem 'devise'
  | 
  
 
 | 
| Baz | 
4 lines
of
Python
by
Boo
 | 
114 Bytes | 
Show | 
Edit | 
Expand | 
  1
2
3
4  | 
  Foo:
  
  bud_value = if bud_calc>0 then MIN(bud_calc, max_buyup)*bup_mult else bud_calc*bdn_mult
  | 
  
 
 | 
| lala | 
12 lines
of
JavaScript
by
lala
 | 
510 Bytes | 
Show | 
Edit | 
Expand | 
  1
2
3
4
5
6
7  | 
      <script type="text/javascript">
          var _gaq = _gaq || [];
          _gaq.push(['_setAccount', 'UA-']);
          (function() {
            var ga = document.createElement('script... | 
  
 
 | 
| Code Test | 
2 lines
of
C++
by
demo
 | 
28 Bytes | 
Show | 
Edit | 
Expand | 
| 
 | 
| Test xml | 
5 lines
of
XML
by
j
 | 
182 Bytes | 
Show | 
Edit | 
Expand | 
  1
2
3
4
5  | 
  <cm-mapping package="zbs.pln.postpaid.switcher">
    <class name="InquiryRequestAdditional">
      <field name="switcherId" type="string" length="7" />
    </class>
</cm-mapping> | 
  
 
 | 
| test | 
39 lines
of
C++
 | 
1.21 KB | 
Show | 
Edit | 
Expand | 
  1
2
3
4
5
6
7  | 
  ...
        int portd, res;
        struct termios options, oldtio;
        char buf[BUFFER_SIZE];
        portd = open(PORTDEVICE, O_RDWR | O_NOCTTY | O_NDELAY);
        fcntl(portd, F_SETF... | 
  
 
 | 
| SetAddRemoveProgramsIcon | 
38 lines
of
C
by
RuWi
 | 
1.67 KB | 
Show | 
Edit | 
Expand | 
  1
2
3
4
5  | 
      private static void SetAddRemoveProgramsIcon()
    {
        
        if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed
             && Applic... | 
  
 
 | 
| Just a test | 
1 line
of
SQL
 | 
65 Bytes | 
Show | 
Edit | 
Expand | 
  1  | 
  select abc+',' from table1 where 1=1 group by id for xml path('') | 
  
 
 | 
| asd | 
1 line
of
HTML
by
asd
 | 
10 Bytes | 
Show | 
Edit | 
Expand | 
| 
 |