{{ message }}

Instantly share code, notes, and snippets.

💭
🐱‍🐉

# ueliwechsler

💭
🐱‍🐉
• Switzerland, Zurich
Created Nov 19, 2020
View Build HSL solver suit
 cd ThirdParty-HSL/ ./configure make make install
Last active Nov 18, 2020
View Build_spral_recipe.jl
 using BinaryBuilder name = "Ipopt_Spral" version = v"0.1.0" ## Sources sources = [ GitSource("https://github.com/coin-or-tools/ThirdParty-Metis.git", "48d89108b173dcf74cc7a27d0beff0eb5eedadd5"), # master GitSource("https://github.com/lanl-ansi/spral.git", "3842fffd5b16f0bf85be6f4b2832816ac4405763"), # master GitSource("https://github.com/lanl-ansi/Ipopt.git", "78a05e2b9138074682a057297b61524f7cb32b53"), # master
Created Jan 26, 2020
View MeetupFreiburg_Lorenz_Attractor_Example.jl
 # Example for Plots.jl http://docs.juliaplots.org/latest/#simple-is-beautiful using Plots # define the Lorenz attractor mutable struct Lorenz dt; σ; ρ; β; x; y; z end function step!(l::Lorenz) dx = l.σ*(l.y - l.x) ; l.x += l.dt * dx
Last active Jan 26, 2020
View MeetupFreiburg_Lotka_Volterra_Example.jl
 using DifferentialEquations α = 1 β = 0.1 γ = 0.05 δ = 0.02 function lotka_voltera!(dx, x, p, t) dx[1] = α*x[1] - β*x[1]*x[2] dx[2] = δ*x[1]*x[2] - γ*x[2]
Created Jul 5, 2018
Shows some ways, how to work with DateTime format in Julia. #Julia #DateTime #time, #Dates
View workingWithDateTimes.jl
 year, month, day = Dates.yearmonthday(now(Dates.UTC)); hour = Dates.Hour(now(Dates.UTC)) timeNow = DateTime(year,month,day,hour) utc_start = [timeNow:Dates.Hour(1):timeNow+Dates.Hour(n-1)...] timeNow = now(Dates.UTC) utc_start = [Dates.format(value, "yyyy-m-dd HH:00:00") for value in timeNow:Dates.Hour(1):timeNow+Dates.Hour(n-1)]
Last active Jun 21, 2018
Julia: read .json to strict #Julia, #JSON