Skip to content

Instantly share code, notes, and snippets.

View KristofferC's full-sized avatar
🇸🇪

Kristoffer Carlsson KristofferC

🇸🇪
View GitHub Profile
ERROR: LoadError: Yeppp not properly installed. Please run Pkg.build("Yeppp")
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] top-level scope at /root/.julia/packages/Yeppp/LvmJH/src/Yeppp.jl:11
[3] include at ./boot.jl:317 [inlined]
[4] include_relative(::Module, ::String) at ./loading.jl:1044
[5] include(::Module, ::String) at ./sysimg.jl:29
[6] top-level scope at none:2
[7] eval at ./boot.jl:319 [inlined]
[8] eval(::Expr) at ./client.jl:393
ERROR: LoadError: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /root/.julia/packages/Alpine/IFj1c/test/solver.jl:18
in expression starting at /root/.julia/packages/Alpine/IFj1c/test/runtests.jl:22
***********************************************************************
This package contains Alpine.jl, a global solver for nonconvex MINLPs
If you find it useful, please cite the following paper:
Journal of Global Optimization, 2019, https://goo.gl/89zrDf
***********************************************************************
solverstring = "Alpine.UnsetSolver()"
ERROR: LoadError: Some tests did not pass: 33 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /root/.julia/packages/BSONqs/pq4Nu/test/runtests.jl:22
Anonymous Functions: Error During Test at /root/.julia/packages/BSONqs/pq4Nu/test/runtests.jl:74
Got exception outside of a @test
MethodError: no method matching applychildren!(::BSONqs.var"##23#24"{Array{Any,1}}, ::UInt8)
Closest candidates are:
applychildren!(::Function, !Matched::Dict{Symbol,Any}) at /root/.julia/packages/BSONqs/pq4Nu/src/BSONqs.jl:32
applychildren!(::Function, !Matched::Array{Any,1}) at /root/.julia/packages/BSONqs/pq4Nu/src/BSONqs.jl:33
applychildren!(::Function, !Matched::Union{Nothing, Bool, Float64, Int32, Int64, Dict{Symbol,Any}, Array{Any,1}, Array{UInt8,1}, String, Symbol, Type{Union{}}}) at /root/.julia/packages/BSONqs/pq4Nu/src/BSONqs.jl:31
...
@KristofferC
KristofferC / AverageShiftedHistograms.log
Last active August 27, 2019 14:41
PkgEval 1.0.5 backports
[ Info: Messy Output
[ Info: Begin Tests
ERROR: LoadError: Some tests did not pass: 20 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /root/.julia/packages/AverageShiftedHistograms/QUkhq/test/runtests.jl:27
Ash
> edges | -3.093 : 0.0135 : 3.6452
> kernel | AverageShiftedHistograms.Kernels.biweight
> m | 5
> nobs | 1000
┌────────────────────────────────────────┐
```
- # This file is a part of Julia. License is MIT: https://julialang.org/license
-
- module UUIDs
-
- using Random
-
- import SHA
-
- export UUID, uuid1, uuid4, uuid5, uuid_version
using BenchmarkTools
@enum Shape Rock Paper Scissors
function play(a::Shape, b::Shape)
if a == b
return 0
elseif a == Paper && b == Rock
return 1
elseif a == Paper && b == Scissors
using Statistics
using Printf
import Pkg
const JULIA_CMD = Base.julia_cmd()
run_cmd(cmd) = run(`$JULIA_CMD --startup=no --history-file=no -e $cmd`)
const N_STARTUP_RUNS = 5
function run_latency_check()
julia> Profile.print(noisefloor=4)
15604 ./task.jl:259; (::getfield(REPL, Symbol("##26#27")){REPL.REPLBackend})()
15604 /Users/kristoffer/julia/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:117; macro expansion
15603 /Users/kristoffer/julia/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:85; eval_user_input(::Any, ::REPL.REPLBackend)
15603 ./boot.jl:328; eval(::Module, ::Any)
15599 /Users/kristoffer/.julia/packages/GeoStats/r5a6L/src/solvers/kriging.jl:94; solve(::EstimationProblem{PointSetData{Float64,2},RegularGrid{Float64,2},SimpleMapper}, ::Kriging)
14715 /Users/kristoffer/.julia/packages/GeoStats/r5a6L/src/solvers/kriging.jl:126; solve(::EstimationProblem{PointSetData{Float64,2},RegularGrid{Float64,2},SimpleMapper}, ::Symbol, ::OrdinaryKrigin...
14258 /Users/kristoffer/.julia/packages/KrigingEstimators/IyyR6/src/estimators.jl:39; predict(::OrdinaryKriging{Float64,Float64}, ::StaticArrays.MArray{Tuple{2},Float64,1,2})
2985 /Users/kristoffer/.julia/packages/KrigingEstimators/IyyR6/s
const XX = ([2.0, 3.0, 4.0], [6.0, 3.0, 2.0], [2.0, 5.0, 1.0], [4.0, 3.0, 6.0], [4.0, 3.0, 3.0], [4.0, 4.0, 1.5], [2.0, 4.0, 2.5], [3.0, 3.0, 5.0], [5.0, 3.0, 4.0], [3.0, 4.0, 3.5])
function FEMBase.assemble_elements!(problem::Problem{Poisson},
assembly::Assembly,
elements::Vector{Element{E}},
time::Float64) where E
bi = BasisInfo(E)
ndofs = length(bi)
Ke = zeros(ndofs, ndofs)
@KristofferC
KristofferC / 6.jl
Last active December 6, 2018 19:02
struct Point
id::Int
x::Int
y::Int
end
function run_6()
data = readlines(joinpath(@__DIR__, "../../inputs/input_6"))
points = Point[]