- What is a class?
- What is an object?
- What is a module? Can you tell me the difference between classes and modules?
- Can you tell me the three levels of method access control for classes and modules? What do they imply about the method?
- There are three ways to invoke a method in ruby. Can you give me at least two?
- Explain this ruby idiom: a ||= b
Remove imagemagick
sudo apt-get --purge remove imagemagick
sudo apt autoremove
Install Required package:
sudo apt-get install build-essential
sudo apt-get install checkinstall
Please visit https://asistencia.in/blogs/1-mysql-5-5-installation-guide
Thank you
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
# Oracle/OCI 8i, 9, 10g | |
# | |
# Requires Ruby/OCI8: | |
# http://rubyforge.org/projects/ruby-oci8/ | |
# | |
# Specify your database using any valid connection syntax, such as a | |
# tnsnames.ora service name, or an SQL connect string of the form: | |
# | |
# //host:[port][/service name] | |
# |
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
#1===========First code================ | |
#!/usr/bin/env ruby | |
databases = { | |
:local_db => { | |
:database => 'my_db', | |
:username => 'root', | |
:password => 'admin', | |
:host => 'localhost' |
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
describe 'Expectation Matchers' do | |
describe 'equivalence matchers' do | |
it 'will match loose equality with #eq' do | |
a = "2 cats" | |
b = "2 cats" | |
expect(a).to eq(b) | |
expect(a).to be == b # synonym for #eq |
This Rails style guide recommends best practices so that real-world Rails programmers can write code that can be maintained by other real-world Rails programmers. A style guide that reflects real-world usage gets used, and a style guide that holds to an ideal that has been rejected by the people it is supposed to help risks not getting used at all – no matter how good it is.
The guide is separated into several sections of related rules. I've tried to add
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
require 'formula' | |
class Imagemagick < Formula | |
homepage 'http://www.imagemagick.org' | |
url 'http://www.imagemagick.org/download/releases/ImageMagick-6.7.7-10.tar.xz' | |
sha256 '85b0f9afe122c52a821001976a4f54ae011bb3d94a87b97e3112e515185731ad' | |
head 'https://www.imagemagick.org/subversion/ImageMagick/trunk', | |
:using => UnsafeSubversionDownloadStrategy |
NewerOlder