This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
usage: http [METHOD] <URL> [REQUEST ITEM [REQUEST ITEM ...]] | |
HTTPie - cURL for humans. <http://httpie.org> | |
Positional arguments: | |
These arguments come after any flags and in the order they are listed | |
here. Only URL is required. |
This file contains hidden or 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
import timeit | |
#import sys | |
# Implementation: | |
def matmult(A, B): | |
# multiplies 2x2 matrix | |
def val(i, j): | |
return (A[i][0] * B[0][j]) + (A[i][1] * B[1][j]) | |
return ((val(0, 0), val(0, 1)), |
NewerOlder