Profile cover photo
Profile photo
Amit Acharya
227 followers
227 followers
About
Posts

Post has attachment

Post has attachment
Shortcut for Array#join
You would normally do ["hello", "world"].join(" ") => "hello world" There is a shortcut to do the same. ["hello", "world"] * ' ' => "hello world" #Foding => FunCoding

Post has attachment
Artificial Intelligence, Maybe we should get more serious about it now.

Post has attachment
Whats there in an Object
Whats there in an Object Lets start with the basics and look at the following piece of Ruby code: class A
def method
@v = 1
end
end
a = A.new
a.class # => A 1) Instance Variables: Objects contain instance variables, Ruby provides a met...
Whats there in an Object
Whats there in an Object
metaprogrammingruby.blogspot.com

Post has attachment
How to remove non printable characters from string using ruby regex
How to remove non printable characters from string using ruby regex: "\x11sometext\x12".gsub(/[^[:print:]]/) {|x| x.ord} x11 and x12 are control characters and are not printable. to replace them you can use the [:print:] which is a character class and match...

Post has attachment
Block Commenting in ruby
How to comment multiple lines in ruby To comment multiple lines , just put the code between the =begin and =end block: =begin  commented code =end Although with modern editors its seldom requried.

Post has attachment
**
Install Ruby on Rails using RVM (Ruby Version Manager) http://t.co/K9ciyQ6XAp — Amit Acharya (@acharyaamit) October 2, 2013

Post has attachment

Post has attachment
Finally you can test the idea that continuously following the first link of any Wikipedia article will eventually lead to “Philosophy.”\


http://www.xefer.com/wikipedia

Post has attachment
My Snaps
Photo
Wait while more posts are being loaded