Welcome! This page is using CodeRay 1.1.2.
We currently have
3066 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
| badRuby | 7 lines
of
Ruby | 95 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7 | def is_admin?
  if session[:admin] = 1
    return true
  else
   return false
  end
end
 | 
 | 
| SQL test | 1 line
of
SQL
by
me | 58 Bytes | Show | Edit | Expand | 
| 
  | 1 | alter table vos alter column created_at set default now(); | 
 | 
| bash | 6 lines
of
CSS
by
blubber | 139 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6 | 
#TEST
mkdir -p /var/www/cash.de/htdocs && chown -R www-data:sftp /var/www/cash.de
do_upgrade() {
     OLDBINPIDFILE=$PIDFILE.oldbin
} | 
 | 
| Obj C | 3 lines
of
C | 271 Bytes | Show | Edit | Expand | 
| 
  | 1
2 | [[InsetContextEngine sharedContextEngine] SignUpUsingUserName:username ApplicationKey: APP_KEY];
[[UIApplication sharedApplication] setMinimumBackgroundFetchInterval:UIApplicationBackgroundFetchIn... | 
 | 
| sdsd | 59 lines
of
Java | 2.83 KB | Show | Edit | Expand | 
|  | 
| test | 22 lines
of
HAML
by
murphy | 546 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7
8
9 | !!!5
%html
  %head
    %meta{ :charset => 'utf-8' }
    %title CodeRay
    = stylesheet_link_tag 'application'
    = javascript_include_tag 'application'
    = csrf_meta_tag
    %link{ :rel... | 
 | 
| test | 29 lines
of
JSON | 1.59 KB | Show | Edit | Expand | 
| 
  | 1
2
3
4 | {
                                    "label": "Komunikacja Miejska",
                                    "icon": "9e107d9d372bb6826bd81d3542a419d6",
                                    "badge":... | 
 | 
| clojure | 21 lines
of
Clojure
by
test | 883 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5 | (defn run [nvecs nitems nthreads niters]
  "ffffffffffffffffff"
  (let [vec-refs (vec (map (comp ref vec)
                           (partition nitems (range (* nvecs nitems)))))
        swap #... | 
 | 
| Test | 18 lines
of
XML | 745 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3 | <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ns2:getPaymentsIn xmlns:ns2="http://ideabank.pl/ib/core/payment/ws/... | 
 | 
| Mydiff | 26 lines
of
diff
by
Diff | 637 Bytes | Show | Edit | Expand | 
| 
  | 1
2
3
4
5
6
7
8
9 | @@ -38,12 +38,19 @@ destination: public
 plugins: plugins
 code_dir: downloads/code
 category_dir: blog/categories
-markdown: rdiscount
-rdiscount:
-  extensions:
-    - autolink
-    - foo... | 
 |