Welcome! This page is using CodeRay 1.1.2.

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

Page 123, 10 entries

Project 34 lines of Ruby 1.83 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
class Project < ActiveRecord::Base
  include Redmine::SafeAttributes

  # Project statuses
  STATUS_ACTIVE     = 1
  STATUS_CLOSED     = 5
  STATUS_ARCHIVED   = 9

  # Maximum length for pr...
test 242 lines of Ruby 6.48 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
$window = MrubyJs.get_root_object
$document = $window.document
$container = $window.jQuery["#container"]

def jq(selector)
  MrubyJs.window.jQuery(selector)
end

$polja = Array.new
$semafor...
test 1 line of JSON by 13 129 Bytes Show Edit Expand
1
{"data":{"_csrf_token":"DacarfxmyLgqohn8FT5Wydgo3EpsdCg3mcW/blsH60I=","username":"santa.claus","user_id":405},"session_id":"nil"}
test 24 lines of JSON by xxx 429 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
[ 
    { 
        xxx: xx, 
        xx: xx, 
        xxx: xxxx, 
        xx: xx, 
        xxxxx: xxx, 
        xxx: xx,

        xx: "xxxx-1_01_01", 
        xxx: 7, 
        xxx: "1", 
...
bydlokod 6 lines of PHP 272 Bytes Show Edit Expand
1
2
3
4
5
/* Быдлокод высшей пробы */
function konfeta($word, $text, $domain)
{
    $id = substr(md5($domain), 0, 6);
    return '<span class="tooltip' . $id . '"><span class="word' . $id . '">' . $word ...
compute_OD 14 lines of Python 662 Bytes Show Edit Expand
1
2
3
def compute_OD(atoms, flat, dark, Icutoff=1, Isat=0, sigma=1, pixel_size=1):
    mask = array(flat-dark, dtype='int16') < Icutoff # ignore pixels without probe light
    # atoms = ma.array(atoms-...
Test objc 16 lines of C by me 447 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
- (void)ViewController:(ViewController *)ViewController didWork:(BOOL)didWork
{
}

- (void)cancelledByUser:(ViewController *)ViewController
{
}

- (BOOL)ViewController:(ViewController *)Vie...
Test ObjC 16 lines of C++ by me 447 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
- (void)ViewController:(ViewController *)ViewController didWork:(BOOL)didWork
{
}

- (void)cancelledByUser:(ViewController *)ViewController
{
}

- (BOOL)ViewController:(ViewController *)Vie...
test 6 lines of C by Ma 291 Bytes Show Edit Expand
1
2
3
4
        [MustHavePermission(Permissons = AccountPermissions.None, IsAjax = true, IsJson = true)]
        public ActionResult GetGeoList()
        {
            SolarUtilities.GeoEntry geo = Sola...
llllll 29 lines of Python 864 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
from selenium import webdriver
import getpass

driver = webdriver.Firefox()
driver.get('https://myaccount.lib.ncsu.edu/')

user = driver.find_element_by_name('user_idp')

for option in user...

Page 123, 10 entries