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
| what is a c file? |
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
| # Incomplete row major matrix implementation. | |
| type RowMajorMatrix{T} <: AbstractMatrix{T} | |
| col_major::Matrix{T} | |
| end | |
| row_major{T}(c::Matrix{T}) = RowMajorMatrix{T}(c) | |
| Base.size{T}(m::RowMajorMatrix{T}, n::Int) = if n == 1 size(m.col_major, 2) elseif n == 2 size(m.col_major, 1) else size(m.col_major, n) end | |
| Base.getindex{T}(m::RowMajorMatrix{T}, i, j) = m.col_major[j, i] | |
| function setindex!{T}(m::RowMajorMatrix{T}, value, i, j) |
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
| Verifying myself: My Bitcoin username is josephperla. https://onename.io/josephperla |
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
| from flask import Flask | |
| from flask import request | |
| app = Flask(__name__) | |
| db = {} | |
| @app.route('/set') | |
| def set(): | |
| if len(request.args) > 0: |