Welcome! This page is using CodeRay 1.1.1.

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

Page 126, 10 entries

s 118 lines of Ruby by s 3.56 KB Show Edit Expand
1
2
3
4
5
6
7
class RepositoriesController < ApplicationController
  layout 'v2'
  before_filter :require_login

  def index
    @repositories = @user.account.repositories + @user.account.git_repositories
...
Rotate 5 lines of C++ 319 Bytes Show Edit Expand
1
2
3
// In your ViewController.m subclass that you wish to just obey the specified supported orientations,
// #import "UIApplicationAddition.h"
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterf...
dasdsa 104 lines of JavaScript 3.44 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
/*
Classe: cmdf.rule
Autor:  Caio Augusto Amorim

Copyright (c) 2012 Intervalor
*/

var nb_rule = {
    init: function (options, elem) {
        log.profile("[rule] class initialization");...
dasdsa 106 lines of JavaScript 3.47 KB Show Edit Expand
1
2
3
4
5
6
7
8
9
10
/*
Classe: cmdf.rule
Autor:  Caio Augusto Amorim

Copyright (c) 2012 Intervalor
*/

var nb_rule = {
    init: function (options, elem) {
        log.profile("[rule] class initialization");...
ahk 88 lines of Plain text 3.65 KB Show Edit Expand
1
2
3
4
5
; Script: Existing SR Hotkey (Universal)
; AutoHotkey Version: 30-May-2011 FINAL
; Author:         Adam Arseneau <arseneau_adam@emc.com>

#NoEnv  ; Recommended for performance and compatibility...
kjhkjh 27 lines of JavaScript by dhaval 811 Bytes Show Edit Expand
1
2
3
4
5
6
7
db.util.readFormInstanceData = function(fi, callback) {

    // pending
    // + form master data from TT050
    console.log(fi.formindex);

    db.tables.TT050.all().filter("formindex", "=", fi.form...
test python 10 lines of Python 158 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
import Allo as Al

a = Al.Courbe()
a = Al.import('example.dat')

# Rotate the curve by 15 deg
a.rotate(15)

axes = [-0.1,1.1,-0.7,0.7]
a.plot(axes)
基本原则 2 lines of PHP 17 Bytes Show Edit Expand
1
2
phpinfo();
#这是中文
Some SQL-Queries 5 lines of SQL by tester 126 Bytes Show Edit Expand
1
2
3
4
5
SELECT * FROM Addresses;
SELECT * FROM Customers;
SELECT * FROM Invoices;
SELECT * FROM LineItems;
SELECT * FROM Products;
pg sql 10 lines of SQL 194 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
CREATE FUNCTION get_name(integer) RETURNS varchar AS $$
DECLARE
uname varchar;
BEGIN
  SELECT name into uname
  FROM table_test1
  WHERE id = $1;
  RETURN uname;
END;
$$ LANGUAGE plpgsql;

Page 126, 10 entries