Skip to content

Instantly share code, notes, and snippets.


Abdulrahman AlShetwi d7om

View GitHub Profile
View .gitignore
<<<<<<< HEAD
# See for more about ignoring files.
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config
d7om / matrix.rb
Created May 30, 2012 — forked from ecleel/matrix.rb
Example of how use matrix class in ruby
View matrix.rb
require 'matrix'
require 'pp'
# This is how you can define new matrix
a = Matrix[ [1,2], [3,4]]
b = Matrix[ [4,3], [2,1]]
pp a
pp b