Welcome! This page is using CodeRay 1.1.2.

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

Page 34, 10 entries

blink 45 lines of C by iii 866 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
#include <avr/io.h>
#include <avr/interrupt.h>

#define LED PC5

#define set_bit(reg, bit) (reg |= (1 << bit))
#define clear_bit(reg, bit) (reg &= ~(1 << bit))
#define toggle_bit(reg, bit) (...
ruby 8 lines of Ruby 326 Bytes Show Edit Expand
1
2
3
4
5
6
OAUTH2_SITE = 'https://foo'
RESOURCE_OWNER_USERNAME = 'user@example.com'
RESOURCE_OWNER_PASSWORD = 'password'

client = OAuth2::Client.new(CLIENT_ID, CLIENT_SECRET, site: OAUTH2_SITE)
token = ...
arachni_name 1 line of C by 1 1 Byte Show Edit Expand
1
1
just some ruby 22 lines of Ruby by chomaras 438 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
 (2..@num).each do |t| # an array of the number range 2-number given
            range<<t
end

(2..@num).each do |t| # an array of the number range 2-number given
            range<<t
end

...
random quote generator 20 lines of JavaScript by webdevbecca.com 797 Bytes Show Edit Expand
1
2
3
4
5
6
<div id="quote-generator">

    <div id="quote-background">
      
        <h1><blockquote><span class="speechmarks"></span><span id="quote"> The relationship you 
            have with yourself...
foo.yaml 29 lines of YAML 524 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
apiVersion: v1
kind: Pod
metadata:
  name: mc1
  labels:
    app: mc1
spec:
  volumes:
  - name: html
    emptyDir: {}
  containers:
  - name: 1st
    image: nginx
    ports:
      - ...
test 7 lines of CSS by m 133 Bytes Show Edit Expand
1
2
3
4
5
6
7
.dfwp-list {
background-color: #5f7e92; 
margin-bottom: 0.5em;
margin-right: 0.75em;
margin-left: 0.75em;
margin-bottom: 1px;
}
Awesome E 21 lines of Ruby by Chang 885 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
class Clinics::DashboardsController < ApplicationController
  before_action do
    set_current_clinic(params[:clinic_id])
  end

  def index
    if current_clinic.belongs_to?(current_user)
 ...
JSON 5 lines of Clojure by John 93 Bytes Show Edit Expand
1
2
3
4
5
{
     "name" : "john",
     "age" : 21,
     "knowledge" : [ "C++","Java","JavaScript"
}
nvd_feed_api 13 lines of Ruby by noraj 587 Bytes Show Edit Expand
1
2
3
4
5
6
# Initialize the scraper.
s = NVDFeedScraper.new
# Scrap the NVD website to get the feeds attributes.
s.scrap
# Change the default feed storage location beacause default value is '/tmp/'.
# '/...

Page 34, 10 entries