Skip to content

Instantly share code, notes, and snippets.

@jperla
jperla / file.c
Created October 3, 2012 20:20
test gis
what is a c file?
# 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)
Verifying myself: My Bitcoin username is josephperla. https://onename.io/josephperla
from flask import Flask
from flask import request
app = Flask(__name__)
db = {}
@app.route('/set')
def set():
if len(request.args) > 0: