This file contains 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 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 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 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 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 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 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 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 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 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