Skip to content

Instantly share code, notes, and snippets.

View wookay's full-sized avatar
๐Ÿ“Ÿ
๊ฐ›๋‚ฒ๋‹ฝ๋ž”๋งŸ๋ฐช์ƒ์•—์žก์ฐธ์นผํƒ‡ํŒํ•™

WooKyoung Noh wookay

๐Ÿ“Ÿ
๊ฐ›๋‚ฒ๋‹ฝ๋ž”๋งŸ๋ฐช์ƒ์•—์žก์ฐธ์นผํƒ‡ํŒํ•™
View GitHub Profile
using Bukdu
struct RestController <: ApplicationController
conn::Conn
end
function long(c::RestController)
sleep(3)
render(JSON, 10)
end
@wookay
wookay / thinking.jl
Last active November 14, 2019 13:19
thinking.jl
๐Ÿค”= 3
println(2๐Ÿค”)
@wookay
wookay / auth.jl
Last active January 17, 2020 12:00
bukdu auth
# 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
@wookay
wookay / mana.jl
Last active August 12, 2020 16:19
### 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
# ์ข…ํ•ฉ์†Œ๋“์„ธ ๊ฒ€์‚ฐ 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}: