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}: |
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://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
๐ค= 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
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
# https://gall.dcinside.com/board/view/?id=programming&no=1059472 | |
using JuMP, GLPK | |
model = Model(with_optimizer(GLPK.Optimizer)) | |
@variable(model, ๐ ) | |
@variable(model, ๐บ ) | |
@variable(model, โฑ ) | |
@constraint(model, ๐ + ๐บ + ๐ + ๐บ + ๐ + ๐บ == 21) |
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
[ Info: Directory E:\home\dev\Mongoc\deps\usr\bin does not exist! | |
โ Warning: Could not extract the platform key of https://github.com/felipenoris/mongo-c-driver-builder/releases/download/v1.14.0_1/mongo-c-driver-builder.v1.14.0.x86_64-windows.tar.gz; continuing... | |
โ @ BinaryProvider E:\home\dev\BinaryProvider\src\Prefix.jl:185 | |
[ Info: Downloading https://github.com/felipenoris/mongo-c-driver-builder/releases/download/v1.14.0_1/mongo-c-driver-builder.v1.14.0.x86_64-windows.tar.gz to E:\home\dev\Mongoc\deps\usr\downloads\mongo-c-driver-builder.v1.14.0.x86_64-windows.tar.gz... | |
[ Info: No hash cache found | |
[ Info: Calculated hash 04b5eb428568797545136f6a4a07af4c0f00235d0a6182042e5eb21e562dbaeb for file E:\home\dev\Mongoc\deps\usr\downloads\mongo-c-driver-builder.v1.14.0.x86_64-windows.tar.gz | |
[ Info: Installing E:\home\dev\Mongoc\deps\usr\downloads\mongo-c-driver-builder.v1.14.0.x86_64-windows.tar.gz into E:\home\dev\Mongoc\deps\usr | |
[ Info: Found a valid dl path concrt140.dll while looking for libmongoc | |
[ Info: Fou |
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 HTTP | |
using HTTP.Messages: setheader | |
using Sockets | |
index = HTTP.Handlers.RequestHandlerFunction() do req | |
resp = req.response | |
setheader(resp, "Access-Control-Allow-Origin" => "*") | |
resp.body = Vector{UInt8}("ok") | |
@info :resp resp | |
resp |
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
# module Jive | |
using Distributed # nprocs addprocs rmprocs | |
""" | |
runtests(dir::String) | |
run the test files from the specific directory. | |
""" | |
function runtests(dir::String) |
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
cd /home/ubuntu/ | |
wget https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.2-linux-x86_64.tar.gz | |
tar xvzf julia-0.6.2-linux-x86_64.tar.gz -C /home/ubuntu/ | |
mkdir -p /home/ubuntu/.julia/v0.6/ | |
cd /home/ubuntu/.julia/v0.6/ | |
git clone https://github.com/JuliaLang/METADATA.jl.git METADATA | |
git clone https://github.com/JuliaLang/BinDeps.jl.git BinDeps |
NewerOlder