Skip to content

Instantly share code, notes, and snippets.

View KristofferC's full-sized avatar
🇸🇪

Kristoffer Carlsson KristofferC

🇸🇪
View GitHub Profile
colptr = [1, 20, 53, 107, 138, 139, 158, 191, 224, 278, 332, 333, 364, 383, 402, 435, 468, 499, 530, 531, 550, 569, 588, 621, 675, 708, 741, 795, 849, 871, 893, 926, 959, 995, 1031, 1053, 1075, 1094, 1125, 1126, 1145, 1146, 1177, 1196, 1215, 1216, 1235, 1266, 1297, 1316, 1335, 1389, 1420, 1474, 1528, 1529, 1560, 1593, 1626, 1657, 1688, 1689, 1708, 1727, 1746, 1799, 1852, 1905, 1938, 1971, 2007, 2043, 2065, 2087, 2117, 2118, 2148, 2149, 2168, 2198, 2228, 2247, 2266, 2320, 2351, 2405, 2459, 2460, 2491, 2524, 2557, 2588, 2619, 2620, 2639, 2658, 2677, 2732, 2787, 2842, 2874, 2906, 2942, 2978, 3000, 3022, 3066, 3067, 3068, 3069, 3087, 3119, 3151, 3169, 3187, 3241, 3272, 3326, 3380, 3381, 3412, 3445, 3478, 3509, 3540, 3541, 3560, 3579, 3598, 3655, 3712, 3769, 3803, 3837, 3873, 3909, 3931, 3953, 4008, 4063, 4118, 4150, 4182, 4216, 4250, 4270, 4290, 4320, 4373, 4403, 4404, 4457, 4510, 4528, 4529, 4559, 4589, 4621, 4653, 4671, 4689, 4717, 4766, 4794, 4795, 4844, 4893, 4912, 4913, 4941, 4969, 5002, 5035, 5054, 5073, 50
precompile(Tuple{typeof(Base.setindex!), Base.RefValue{Union{Nothing, String}}, String})
precompile(Tuple{typeof(Requires.listenpkg), Any, Base.PkgId})
precompile(Tuple{typeof(Requires.loaded), Base.PkgId})
precompile(Tuple{typeof(Requires.callbacks), Base.PkgId})
precompile(Tuple{REPL.LineEdit.var"##refresh_multi_line#14", Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where T<:Tuple{Vararg{Any, N}} where names where N where V, typeof(REPL.LineEdit.refresh_multi_line), REPL.Terminals.TerminalBuffer, REPL.LineEdit.ModeState})
precompile(Tuple{typeof(Base.rand), Int64, Int64})
precompile(Tuple{typeof(RecipesBase.plot), Any})
precompile(Tuple{typeof(Base.haskey), Base.Dict{Symbol, Any}, Symbol})
precompile(Tuple{typeof(Base.get), Base.Dict{Symbol, Any}, Symbol, Symbol})
precompile(Tuple{typeof(Base.copy), Base.Dict{Symbol, Any}})
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $2320, %rsp # imm = 0x910
movq (%rsi), %rdx
vmovupd 80(%rdx), %ymm12
vmovupd 112(%rdx), %ymm9
vmovupd 224(%rdx), %ymm3
Regarding this PR that kind of came out of the blue: https://github.com/JuliaLang/Pkg.jl/pull/1835
I've been thinking more and more about it, and I really like the idea of having preferences, by default, get stored to depot-wide preference files, but for there to still be an option to set preferences within the top-level Project. What this would look like is if you were to call @save_preferences(prefs), it would overwrite whatever is within ~/.julia/prefs/$uuid.toml, However, if you write @save_preferences(prefs, target=:project), then it would save the preferences into the Project.toml file:
name = "MyPackage"
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
version = "1.0.0"
[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
[preferences.1a6f20f1-ba5f-a4e8-2e79-39224701f35d]
foo = "true"
# function meshformatparser(str)
#
# end
# const SECTION_PARSER = Dict{String,Function}(
# "MeshFormat" => meshformatparser,
# )
module Gmsh
using Tensors, JuAFEM
function parsenodes(str; version=v"4.1")
◼ libspqr.dll
◼ C:\Users\Kristoffer Carlsson\AppData\Local\Julia-1.3.1\bin\libgcc_s_seh-1.dll
◼ C:\Users\Kristoffer Carlsson\AppData\Local\Julia-1.3.1\bin\libwinpthread-1.dll
◼ C:\Windows\System32\msvcrt.dll
❓ C:\Windows\SYSTEM32\ntdll.dll (COULD NOT READ METADATA)
◼ C:\Windows\System32\KERNELBASE.dll
❓ C:\Windows\SYSTEM32\ntdll.dll (COULD NOT READ METADATA)
◼ C:\Windows\System32\KERNEL32.DLL
❓ C:\Windows\SYSTEM32\ntdll.dll (COULD NOT READ METADATA)
◼ C:\Windows\System32\KERNELBASE.dll
julia> Profile.print(noisefloor=2, C=true, recur=:flat)
Overhead ╎ [+additional indent] Count File:Line; Function
=========================================================
 1╎1   @Base/boot.jl:224; Expr(::Any, ::Vararg{Any,N} where N)
  ╎311 /Users/kristoffer/julia/src/task.c:687; start_task
  ╎ 311 /Users/kristoffer/julia/src/./julia.h:1657; jl_apply
  ╎  311 @Base/task.jl:349; (::REPL.var"#26#27"{REPL.REPLBackend})()
  ╎   311 @REPL/src/REPL.jl:118; macro expansion
  ╎    311 @REPL/src/REPL.jl:86; eval_user_input(::Any, ::REPL.REPLBackend)
AMDGPUnative => ["ROCArrays"]
AbstractAlgebra => ["Ccluster", "IntegerTriangles"]
AbstractMCMC => ["Turing"]
AbstractTrees => ["PDFIO", "PhysOcean"]
ApproxFun => ["EffectiveWaves", "PDSampler"]
ApproxFunBase => ["ApproxFunRational", "Poltergeist", "RiemannHilbert"]
ApproxFunFourier => ["ApproxFunRational"]
ApproxFunOrthogonalPolynomials => ["ApproxFunRational"]
ArgCheck => ["ANOVA", "AltDistributions", "BAT", "ContinuousTransformations", "DarkSky", "FunctionalTables", "GoogleMaps", "HMMBase", "MultistartOptimization", "PolynomialBases", "SimpleIntegrals", "SortedVectors", "SpectralKit", "StataDTAFiles", "TransformVariables"]
import Pkg
import Pkg.TOML
import Pkg.Types: VersionRange, ≲
using UUIDs
using GitHub
using ProgressMeter
# Copied from Registrator.jl
#=====================#
import Pkg
import Pkg.TOML
import Pkg.Types: VersionRange, ≲
using UUIDs
using GitHub
using ProgressMeter
#const auth = GitHub.authenticate(ENV["GITHUB_KEY"])