This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://gemcutter.org' | |
# Project requirements | |
gem 'rack-flash' | |
gem 'thin' # or mongrel | |
# Component requirements | |
gem 'haml' | |
# Test requirements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
retro@retro-laptop:~/padri/test$ bundle install | |
Fetching source index from http://gemcutter.org | |
Resolving dependencies | |
Installing activesupport (2.3.5) from system gems | |
Installing bundler (0.9.5) from system gems | |
Installing daemons (1.0.10) from system gems | |
Installing eventmachine (0.12.10) from system gems | |
Installing fuzzyhash (0.0.11) from system gems | |
Installing haml (2.2.20) from system gems | |
Installing i18n (0.3.3) from system gems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
namespace serializeArray | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class First | |
def test(arg1, arg2) | |
p arg1 | |
p arg2 | |
end | |
end | |
class Second < First | |
def test(arg1, arg2) | |
super(arg1, arg2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Fadi> hi | |
<retro|cz> hi | |
<Fadi> how r u? | |
<retro|cz> good | |
<Fadi> nice nick name | |
<Fadi> Retro | |
<retro|cz> Thank you | |
<retro|cz> Your nickname is nice too. | |
<Fadi> thanks alot | |
<Fadi> r u student? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parent_keys | |
x = [] | |
if not parent.nil? | |
x << parent.parent_keys | |
end | |
x.flatten + self.key.to_a | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def nest | |
a = full_key_array | |
x = {}; a[0..-2].inject(x) { |h,k| h[k.to_sym] = {} }[a[-1].to_sym] = value; | |
x | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test = Hash.new | |
test.class == Hash #=> true | |
case test.class.to_s | |
when "Hash" | |
true | |
else | |
false | |
end | |
end #=> true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'ApplicationHelper format_message should translate one new line to a html format' FAILED | |
expected <p>Maecenas adipiscing scelerisque urna. | |
<br />Aliquam at diam elit, sit amet eleifend sem.</p>, got "<p>Maecenas adipiscing scelerisque urna.\n<br />Aliquam at diam elit, sit amet eleifend sem.</p>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dev/vda: | |
Timing cached reads: 9826 MB in 2.00 seconds = 4919.46 MB/sec | |
Timing buffered disk reads: 18 MB in 3.13 seconds = 5.75 MB/sec | |
/dev/vda: | |
Timing cached reads: 8360 MB in 2.00 seconds = 4184.95 MB/sec | |
Timing buffered disk reads: 22 MB in 3.41 seconds = 6.45 MB/sec | |
/dev/vda: | |
Timing cached reads: 10058 MB in 2.00 seconds = 5036.60 MB/sec |
OlderNewer