Welcome! This page is using CodeRay 1.1.2.

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

Page 1, 10 entries

bkj 25 lines of C 643 Bytes Show Edit Expand
1
2
3
4
5
6
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Macken");
MODULE_DESCRIPTION("SW2");

static int mygpio_open(struct inode*, struct file*);
static int mygpio_release(struct inode *inode, struct ...
Test JS with callout 2 lines of JavaScript 43 Bytes Show Edit Expand
1
2
function(x) {
 return math.pow(x, 2);//<1>
Ruby 32 lines of Ruby 854 Bytes Show Edit Expand
1
2
3
4
5
6
class GatewayPicker
  def self.run(context)
    if transaction.cc_type == AMERICAN_EXPRESS
      AmericanExpressGatewayPicker.execute(context)
    elseif transaction.cc_type == DISCOVER
      ...
skel 18 lines of C 454 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Canvas tutorial</title>
    <script type="text/javascript">
      function draw() {
        var canvas = document.getEl...
skelton 18 lines of HTML 454 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Canvas tutorial</title>
    <script type="text/javascript">
      function draw() {
        var canvas = document.getEl...
erb 3 lines of ERb by taro 89 Bytes Show Edit Expand
1
2
3
<h1>New blog</h1>
<p>title: <%= @blog.title %></p>
<p>content: <%= @blog.content %></p>
test 38 lines of C++ 1.34 KB Show Edit Expand
1
2
3
4
5
struct enum_modules_t {
    template<class Subsystem, class Callback>
    NTSTATUS operator()(void* handle, Callback cb, std::uint64_t peb_address) const
    {
        using ptr_t = typename Su...
adf 1 line of JSON by asdf 117 Bytes Show Edit Expand
1
{ "id": "", "hw": "asdf", "type": "env", "version": "0.12", "temperature": 22.3, "humidity": 23, "pressure": 1013 }
abc 1 line of Plain text by abc 1018 Bytes Show Edit Expand
1
[2020-08-13 20:36:07] INFO WEBrick 1.3.1 ,[2020-08-13 20:36:07] INFO ruby 2.4.7 (2019-08-28) [x86_64-darwin18] ,== Sinatra (v2.0.8.1) has taken the stage on 4567 for development with backup from WE...
tece to shopify 81 lines of Ruby 2.19 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
p_new = product
if r1.nil?
  puts "!! #{item_id} no product found in ERP"
  return ""
end

if r1["Vintage"].to_i > 1000
  p_new.title = r1["Vintage"] + " " + r1["LongTitle"]
else
  p_new.title...

Page 1, 10 entries