Month: June 2019

Useful Composer PHP Package Manager Commands

Useful Composer PHP 7 Package Manager Commands ==========================   Composer is fairly easy to update, just run this command: composer self-update Composer works by using the configuration in a file called composer.json, where you can outline external dependencies and your autoloading style. Once Composer has installed

Read More

Addition and Multiplication of Matrix in Python 3

Addition and Multiplication of Matrix in Python 3 ========= m1 = [[1,2,3],[4,5,6],[7,8,9],[10,11,12]] m2 = [[1,2,3],[4,5,6],[7,8,9],[10,11,12]] m3 = [[1,2,3],[4,5,6],[7,8,9],[10,11,12]] m4 = [[1,2,3,4],[4,5,6,7],[7,8,9,0]] class TwoDimMatrixOp: def __init__(self, m1, m2): self._m1 = m1 self._m2 = m2 self._result = [ [0]*(len(m1)-1) for _ in xrange(len(m2)) ] def sum(self): # iterate

Read More