Skip to content

Instantly share code, notes, and snippets.

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

WooKyoung Noh wookay

๐Ÿ“Ÿ
๊ฐ›๋‚ฒ๋‹ฝ๋ž”๋งŸ๋ฐช์ƒ์•—์žก์ฐธ์นผํƒ‡ํŒํ•™
View GitHub Profile
@wookay
wookay / cp949.md
Last active February 25, 2016 11:53
parse cp949 csv

iconv ์„ค์น˜

http://gnuwin32.sourceforge.net/packages/libiconv.htm ์—์„œ Complete package, except sources Setup 969371 14 October 2004 e0217c09792beec74578516d9fff55c ์š”๊ฑฐ ๋ฐ›์œผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

StringEncodings.jl ์„ค์น˜

julia> Pkg.clone("https://github.com/nalimilan/StringEncodings.jl.git")
julia> Pkg.build("StringEncodings")
@wookay
wookay / showtypetree.jl
Last active January 5, 2019 09:01
showtypetree
# https://en.wikibooks.org/wiki/Introducing_Julia/Types
level = 0
function showtypetree(subtype)
global level
subtypelist = filter(asubtype -> asubtype != Any, subtypes(subtype))
if length(subtypelist) > 0
println("\t" ^ level, subtype)
level += 1
map(showtypetree, subtypelist)
@wookay
wookay / cmd.sh
Last active September 20, 2016 10:41
circleci bukdu
cd /home/ubuntu/
wget https://julialang.s3.amazonaws.com/bin/linux/x64/0.5/julia-0.5.0-linux-x86_64.tar.gz
tar xvzf julia-0.5.0-linux-x86_64.tar.gz -C /home/ubuntu/
mkdir -p /home/ubuntu/.julia/v0.5/
cd /home/ubuntu/.julia/v0.5/
git clone https://github.com/JuliaLang/METADATA.jl.git METADATA
git clone https://github.com/JuliaLang/BinDeps.jl.git BinDeps
@wookay
wookay / cmd.sh
Last active September 20, 2016 10:42
ecto.jl build deps
cd /home/ubuntu/
wget https://julialang.s3.amazonaws.com/bin/linux/x64/0.5/julia-0.5.0-linux-x86_64.tar.gz
tar xvzf julia-0.5.0-linux-x86_64.tar.gz -C /home/ubuntu/
mkdir -p /home/ubuntu/.julia/v0.5/
cd /home/ubuntu/.julia/v0.5/
git clone https://github.com/JuliaLang/METADATA.jl.git METADATA
git clone https://github.com/wookay/Ecto.jl.git Ecto
@wookay
wookay / dog.java
Created August 13, 2017 06:30
oop dogs
public class Dog
{
//Instance vars
private String name;
private Int age;
//constructor
public Dog(String initName)
{
name = initName;
@wookay
wookay / cmd.sh
Last active January 20, 2018 13:45
gist cmd.sh for Bukdu on Julia 0.6
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
# module Jive
using Distributed # nprocs addprocs rmprocs
"""
runtests(dir::String)
run the test files from the specific directory.
"""
function runtests(dir::String)
@wookay
wookay / example.jl
Created February 11, 2019 19:31
example.jl
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
@wookay
wookay / build.log
Created April 23, 2019 04:23
Mongoc build.log
[ 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
@wookay
wookay / 1059472.jl
Last active June 21, 2019 05:36
1059472
# 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)