Welcome! This page is using CodeRay 1.1.2.

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

Page 107, 10 entries

Some Python function 67 lines of Python 2.86 KB Show Edit Expand
1
2
3
4
5
def plot_field(field, levels=16, fill=True, antialiased=False, comp=None, factor=1.0, **kwargs):
    '''Plot scalar real fields as two-dimensional color map'''
    #TODO documentation

    data...
test 179 lines of YAML 5.4 KB Show Edit Expand
1
2
3
# Instructions for this configuration file can be found at the BukkitDev page:
# http://dev.bukkit.org/server-mods/casino-slots/pages/info/config/
# If you change the config-version, the defaults...
snippet 7 lines of ERb 174 Bytes Show Edit Expand
1
2
3
4
5
6
7
<% content_for :on_ready do %>
    jQuery('#vtn_table').infiniteScroll({
      url: '/virtual_lines/9.json?ajax=1'
    });
  <% end %>

  <table id="vtn_table"></table>
Ruby Test 8 lines of Ruby by Tester 297 Bytes Show Edit Expand
1
2
3
4
# create a custom renderer that allows highlighting of code blocks
class HTMLwithPygments < Redcarpet::Render::HTML
  def block_code(code, language)
    Pygments.highlight(code, :lexer => langua...
test 8 lines of HTML by test 80 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
<html>
  <head>
    <title></title>
  </head>
  <body>

  </body>
</html>
CSS Media Queries 27 lines of CSS by Matt 466 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
@media only screen and (min-width: 561px) {
  .centered {
    width: 531px;
  }
}
@media only screen and (min-width: 743px) {
  .centered {
    width: 713px;
  }
}
@media only screen and ...
ssss 9 lines of PHP 131 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
[mysql_pbx]
enabled => yes
dsn => cc_mysql_local
pre-connect => yes

[pg_hr]
enabled => yes
dsn => cc_hr
pre-connect => yes
sss 8 lines of C 265 Bytes Show Edit Expand
1
2
3
4
5
6
if (x == 0) return(32);
n = 0;
if (x <= 0x0000FFFF) {n = n +16; x = x <<16;}
if (x <= 0x00FFFFFF) {n = n + 8; x = x << 8;}
if (x <= 0x0FFFFFFF) {n = n + 4; x = x << 4;}
if (x <= 0x3FFFFFFF) {n...
method_missing example 76 lines of Ruby by Hugo Corbucci 1.74 KB Show Edit Expand
1
2
3
4
5
6
7
require 'timeout'
class TimeoutWrapper
  def initialize(timeout_in_seconds, target)
    @timeout = timeout_in_seconds
    @target = target
  end
  def respond_to?(symbol, include_private=fals...
Alireza 6 lines of C by Alireza 197 Bytes Show Edit Expand
1
2
3
4
5
6
ThisType::Value ThisType::genericData ( const ValueRole & role ) const
{
  if ( role == ToolTipRole )
    return Value::fromValue( "Generic tooltip" );
  return ParentType::genericData( role );
};

Page 107, 10 entries