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
using Bukdu | |
struct RestController <: ApplicationController | |
conn::Conn | |
end | |
function long(c::RestController) | |
sleep(3) | |
render(JSON, 10) | |
end |
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
๐ค= 3 | |
println(2๐ค) |
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
# https://github.com/wookay/Bukdu.jl/tree/master | |
using Bukdu | |
struct Authorization <: Plug.AbstractPlug | |
end | |
function user_authorized(conn::Conn) | |
conn.params[:pass] == "1" | |
end |
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
### Multi-dimensional Arrays | |
julia> ma = [[1,2] [3, 4]] | |
2ร2 Array{Int64,2}: | |
1 3 | |
2 4 | |
julia> ma == hcat([1,2], [3,4]) == [1 3; 2 4] | |
true |
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
# ์ข ํฉ์๋์ธ ๊ฒ์ฐ https://www.facebook.com/seungjoon.choi/posts/10224347898020604 | |
julia> ์์ ๊ธ์ก = [250_000, 500_000, 750_000] | |
3-element Vector{Int64}: | |
250000 | |
500000 | |
750000 | |
julia> ๊ฒฝ๋น์จ = [0.587, 0.617, 0.723] # ๋จ์๊ฒฝ๋น์จ ์ ์ฉ | |
3-element Vector{Float64}: |
OlderNewer