Skip to content

Instantly share code, notes, and snippets.

View darthdeus's full-sized avatar

Jakub Arnold darthdeus

View GitHub Profile
!arial = "Arial, 'Helvetica Neue', Helvetica, 'sans-serif'"
!p_baskerville = "Baskerville, 'Times New Roman', Times, serif"
!t_baskerville = "Baskerville, Times, 'Times New Roman', serif"
!cambria = "Cambria, Georgia, Times, 'Times New Roman”, serif"
!century = "'Century Gothic”, 'Apple Gothic','sans-serif'"
!consolas = "Consolas, 'Lucida Console', Monaco, monospace"
!copperplate = "'Copperplate Light', 'Copperplate Gothic Light', serif"
!courier = "'Courier New', Courier, monospace"
<div id="r_bar">
<div class="head"><b>Quick contact</b></div><div class="body" style="font-size: 11px; ">Prague Casting Services a.s.<br><br>Radlická 227 / 107<br>158 00 Praha 5 - Jinonice<br>Czech Republic<br><br>Tel.: 222 531 565<br>Tel.: 222 531 566<br>Fax: 222 531 569<br><br>
</div><div style="text-align: center; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(35, 80, 113); width: 100%; padding-top: 4px; padding-right: 5px; padding-bottom: 8px; padding-left: 5px; "><a href="mailto:centralnet@praguecast.cz" style="line-height: 1; display: block; text-decoration: none; ">centralnet@praguecast.cz</a></div>
</div>
ActiveRecord::Schema.define(:version => 20101127202138) do
create_table "users", :force => true do |t|
t.string "email", :default => "", :null => false
t.string "encrypted_password", :limit => 128, :default => "", :null => false
t.string "password_salt", :default => "", :null => false
t.string "reset_password_token"
t.string "remember_token"
t.datetime "remember_created_at"
t.integer "sign_in_count", :default => 0
# load rubygems and wirble
require 'rubygems' rescue nil
require 'wirble'
# load wirble
Wirble.init
Wirble.colorize
IRB.conf[:AUTO_INDENT] = true
var page = 1;
var loader_src = $('#loader').attr('src');
$('.holder').attr('src', loader_src);
$('#right .gallery a').each(function(iterator, item) {
var holder = $("<img/>")
.css("display", "none")
.addClass("holder")
.data("img", $(this).children())
\`*-.
) _`-.
. : `. .
: _ ' \
; *` _. `*-._
`-.-' `-.
; ` `.
:. . \
. \ . : .-' .
' `+.; ; ' :
@darthdeus
darthdeus / about_assert.rb
Created December 7, 2010 16:58
First Ruby koan
# We shall contemplate truth by testing reality, via asserts.
def test_assert_truth
assert __ # This should be true
end
@darthdeus
darthdeus / about_arrays.rb
Created December 7, 2010 16:59
Ruby Arrays and Ranges Koans
def test_arrays_and_ranges
assert_equal __, (1..5).class
assert_not_equal __, (1..5)
assert_equal __, (1..5).to_a
assert_equal __, (1...5).to_a
end
/*************************
PRVNI MOZNOST
*************************/
var poSchovani = function() {
alert("schovano");
}
$("#odstavec").hide(2000, poSchovani);
/*************************
$ autotest
loading autotest/rspec2
bundle exec /home/darth/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -S /home/darth/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.2.1/bin/rspec --tty '/home/darth/projects/neurons/spec/neurons/neuron_spec.rb'
Exception encountered: #<OptionParser::InvalidOption: --tty>
backtrace:
/home/darth/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/option_parser.rb:18:in `parse!'
/home/darth/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/option_parser.rb:4:in `parse!'
/home/darth/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/configuration_options.rb:64:in `parse_command_line_options'
/home/darth/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/configuration_options.rb:46:in `parse_options'
/home/darth/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:7:in `initialize'