Skip to content

Instantly share code, notes, and snippets.

View gist:76835
<p>
Lorem ipsum dolor sit amet, <a href="#" title="Lorem ipsum">consectetur</a> adipiscing elit.
Quisque nisl. Duis dapibus <a href="#" title="Blabla">vulputate risus</a>. Sed a diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
</p>
View gist:77030
%p
:plain
orem ipsum dolor sit amet, <a href="#" title="Lorem ipsum">consectetur</a> adipiscing elit.
View gist:79190
@RequestMapping("/book/listByTitle")
public ModelAndView listByTitle() {
List<Book> sorted = bookDAO.getAll();
java.util.Collections.sort(sorted, new Comparator(){
public int compare(Object o1, Object o2) {
Book b1 = (Book) o1;
Book b2 = (Book) o2;
View gist:97767
Compiling Passenger support files...
# /usr/local/bin/ruby -S /usr/local/bin/rake clean nginx
/usr/local/bin/rake:19:in `load': Is a directory - /usr/local/lib/ruby/gems/1.9.1/gems/rake-compiler-0.4.1/lib/rake (Errno::EISDIR)
from /usr/local/bin/rake:19:in `<main>'
View gist:101778
deepj@popelnice:~$ rake-compiler cross-ruby VERSION=1.9.1-p0 SOURCE=http://www.deep-jungle.eu/ruby-1.9.1-p0.tar.gz
mkdir -p /home/deepj/.rake-compiler/builds/ruby-1.9.1-p0
mkdir -p /home/deepj/.rake-compiler/sources
cd /home/deepj/.rake-compiler/sources
wget http://www.deep-jungle.eu/ruby-1.9.1-p0.tar.gz || curl -O http://www.deep-j ungle.eu/ruby-1.9.1-p0.tar.gz
--2009-04-26 00:20:12-- http://www.deep-jungle.eu/ruby-1.9.1-p0.tar.gz
Překládám www.deep-jungle.eu… 89.187.133.175
Navazuje se spojení s www.deep-jungle.eu|89.187.133.175|:80… spojeno.
HTTP požadavek odeslán, program čeká na odpověď… 200 OK
Délka: 9025004 (8,6M) [application/x-gzip]
View gist:102827
Pry jednoducha pisemecka aneb vzhuru ke svetlejsim zitrkum :-/
Maximum bylo 6 bodu.
1. 6 57. 2.5 113. 1.5 169. 1 225. 0.5 281. 0
2. 5 58. 2.5 114. 1.5 170. 1 226. 0.5 282. 0
3. 5 59. 2.5 115. 1.5 171. 1 227. 0.5 283. 0
4. 5 60. 2.5 116. 1.5 172. 1 228. 0.5 284. 0
5. 4.5 61. 2.5 117. 1.5 173. 1 229. 0.5 285. 0
6. 4 62. 2.5 118. 1.5 174. 1 230. 0.5 286. 0
View gist:116431
require 'couchrest'
# CouchRest's ExtendedDocument
class Doc < CouchRest::ExtendedDocument
attr_accessor :login
property :login
def login=(login)
@login = login
View gist:150220
# encoding: utf-8
require File.dirname(__FILE__) + '/../../spec_helper'
Rango.import("ext/time_dsl")
SECOND = 1
TWO_SECONDS = 2 * SECOND
MINUTE = 60 * SECOND
TWO_MINUTES = 2 * MINUTE
HOUR = 60 * MINUTE
View gist:166520
/*********************************************************
* Copyright (C) 2006 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation version 2 and no later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
View gist:187267
==============================================================================
pass: 5, fail: 15, error: 3084
total: 3104 tests with 537 assertions in 110.071952 seconds
==============================================================================