Instantly share code, notes, and snippets.
- Boston, MA
This file has been truncated, but you canview the full file.
This file contains hidden or 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
backedges=Array{Any, 1}(dims=(15410,), mem=Memory{Any}(17310, 0x55f4d407bb40)[ | |
Tuple{typeof(LinearAlgebra._generic_matmatmul!), Array{Base.Complex{Float32}, 2}, Any, Any, LinearAlgebra.MulAddMul{ais1, bis0, Bool, Bool} where bis0 where ais1}, | |
generic_matmatmul!(Array{Base.Complex{Float32}, 2}, Char, Char, LinearAlgebra.UpperTriangular{Base.Complex{Float32}, Array{Base.Complex{Float32}, 2}}, LinearAlgebra.UpperTriangular{Base.Complex{Float32}, Array{Base.Complex{Float32}, 2}}, LinearAlgebra.MulAddMul{ais1, bis0, Bool, Bool} where bis0 where ais1) from generic_matmatmul!(Union{AbstractArray{T, 1}, AbstractArray{T, 2}} where T, Any, Any, Union{AbstractArray{T, 1}, AbstractArray{T, 2}} where T, Union{AbstractArray{T, 1}, AbstractArray{T, 2}} where T, LinearAlgebra.MulAddMul{ais1, bis0, TA, TB} where TB where TA where bis0 where ais1), |
vtjnash /Profile-Allocs-print.jl
CreatedSeptember 20, 2022 21:14
Mix-in file for adding Profile.print-like functionality to Profile.Allocs This file contains hidden or 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
# This file is a part of Julia. License is MIT: https://julialang.org/license | |
# Mix-in functionality to Profile.Allocs to give it a similar print output as Profile | |
# Activate with: | |
# Base.include(Profile.Allocs, "/Users/jameson/julia/zipyard/profile_alloc_tools.jl") | |
# or | |
# using Revise; Revise.includet(Profile.Allocs, "/Users/jameson/julia/zipyard/profile_alloc_tools.jl") | |
# Refs: https://github.com/JuliaLang/julia/pull/42768 | |
global print |
vtjnash /jameson-pgp2022.asc
CreatedMarch 5, 2022 04:56
This file contains hidden or 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGIi5QABEAC8iWK3GRMBqX5r3w2OmGexT/RnFhjblO7zka+Y32LEq8Lp6QA9 | |
iT79fyO8vWgGZRC6qvIiNYzeOMb4IuYMlwSnSYg631cnij3nFqGU4vy8bmFMakPA | |
uS3PF4/uqwdrQ+SUY8bWM7K2ymhvg6v04tilcSOzTw2S0OetHl0Js7McYcoiCBCl | |
AB2B3QM714VWeTEYllbelLiFCoN6m9KBqPmektTfmZpNUWHmw308KQkn0TzuIyTt | |
B6iJ0qc6+Z9+6HutRRpfz3Ly3DtS6K8Z9YbmqL8EmESjlYgFQUNu98oEcsrFbIXC | |
d6WtlvSqrvr5tCtpG7kg+dR4rcONiosvNKb77l21QU0NbIvuLndMAKsHuJRSQkI0 | |
/ktWvIIq5MVhDoYBs633V9S3TMPzCCZ07KQthM8juzcL9Z78AvSHOttmqHvfvEnj | |
rMfz+sZfYPZIwcwBYVrv/RSH0cOg2FJ7HvEHL3paAMufYS+zOXk1pykBG1UGuj6Q |
vtjnash /mach-sigchld-bug.c
CreatedAugust 17, 2021 22:03
SIGCHLD bug with macOS mach xnu posix_spawn This file contains hidden or 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
/*Copyrightlibuvcontributors.Allrightsreserved. | |
* | |
*Permissionisherebygranted,freeofcharge,toanypersonobtainingacopy | |
*ofthissoftwareandassociateddocumentationfiles (the"Software"),to | |
*dealintheSoftwarewithoutrestriction,includingwithoutlimitationthe | |
*rightstouse,copy,modify,merge,publish,distribute,sublicense,and/or | |
*sellcopiesoftheSoftware,andtopermitpersonstowhomtheSoftwareis | |
*furnishedtodoso,subjecttothefollowingconditions: | |
* | |
*Theabovecopyrightnoticeandthispermissionnoticeshallbeincludedin |
vtjnash /jameson-pgp2021.asc
CreatedJuly 7, 2021 05:40
This file contains hidden or 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGDlNbwBEACcP4bRV2VZjt0gjTl5g9Eild/e9MAemDGd63U2570f+3bJJo3I | |
ysbIUeIikWtYvmnZPXCQz2rn7skXX2v1bHRpaP8eEyeCxtuzIJ8IFk6cS253abZw | |
dWuy3fEYFlW0qez9BkLuYF25nbEBi964GBpsivmnGmzlN3hctJT1n+eJgukt/NQw | |
twp/5aiEfZ6ACW9hrzegOefVjd5ahs+rNViME5COk+a1fkRV8FDcSz6i5nEFxKEs | |
wDgziOoWhK9jzVCq+5p45uNKcZnp80zdyjerFF9oVpvqwwF6lM2H+FvYx+yT/x7C | |
zd7iwWB4ERDtOiyqbl+MEu2ES0I/inwYve14/mEiq2CBCvEh6b3kijcahU+ND9/N | |
1XCMJYUp0tORGEWKAi2xPWB5u8toL2qg/Y9wG2QJ+W81qxyXw1IHAO2N35jUI+Hr | |
GmyFRuCxdj/T1nBTJT8CfeXEPGbAud2JU2Lb3jLoy86F+BQhLVttJiDvV/y6gJOk |
vtjnash /jameson-pgp.asc
CreatedJuly 7, 2021 03:58
This file contains hidden or 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v2 | |
mQINBFcQfaEBEACsFVOK9z9DQTbBAh0fWIilqgeT6B1MM5fKSJOjT/UreHEicdQG | |
yAws+C7/1HqotqAStLbpO2bLHBWhtMZyiINPkRJ8Wa4Pl/57TgJoN6B1peGnyH2a | |
QBtyje+Ikp+9ZcdSBSXM5ozOXjuW9bEn65esg6uBXossN6cblkWBCWGvWFD5SoHf | |
e0EyHGS2Lnj2mPM+eBttxcK8q2RTFTPp4JbKGmv7B3z8ML2VrtDZRP5KwTq3Kf9N | |
rKU7tK0tJOqMHPltcBmIm+pvbJGFlAWSkF+opcufoRNRy+V/dSlREywh+ywhrQnB | |
k7nsAN49qt84wz3zyLez+0B+nvzVJPGx40ZsIxLUhuSMxNFmo4kOOGhfy0m7tn0V | |
S0Evyei1YV7wg8pvkyvszaT7kCBs3GzaoWbndNG2DZebObcUg2dmMeo8rjdEZyQ9 |
vtjnash /JuliaAtomics.md
Last activeFebruary 5, 2025 20:24
This file contains hidden or 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
let a=2;global y2= Int[] | |
while a<2^42 | |
a+= a< .1*2^34? a:round(Int, .1*2^34) | |
push!(y2, a) | |
end | |
y2 | |
end; | |
let a=2;global y3= Int[] | |
while a<2^46 |
vtjnash /MHO-C303.txt
Last activeJanuary 18, 2023 05:08
Updating time on MHO-C303 manually (example) This file contains hidden or 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
Getting current time: | |
julia> string(bswap(round(UInt32, datetime2unix(Dates.now()))), base=16) * "00" | |
"5f3f1f60" | |
The "00" is the timezone offset (in hours). Here we just use localtime (with offset zero). | |
With Bluetility.app (from Github) or any other similar tool for bt gatt, look for: | |
Service: EBE0CCB0-7A0A-4B0C-8A1A-6FF2997DA3A6 | |
Characteristic: EBE0CCB7-7A0A-4B0C-8A1A-6FF2997DA3A6 | |
Read: Hex: 973F1F60_00 |
This file contains hidden or 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
julia> Test.detect_ambiguities(Base) | |
35-element Array{Tuple{Method,Method},1}: | |
(\(F::LinearAlgebra.Factorization{T}, B::Union{Array{Complex{T},1}, Array{Complex{T},2}}) where T<:Union{Float32, Float64} in LinearAlgebra at /data/vtjnash/julia/usr/share/julia/stdlib/v1.6/LinearAlgebra/src/factorization.jl:84, \(A::LinearAlgebra.LQ{TA,S} where S<:AbstractArray{TA,2}, B::StridedVecOrMat{TB}) where {TA, TB} in LinearAlgebra at /data/vtjnash/julia/usr/share/julia/stdlib/v1.6/LinearAlgebra/src/lq.jl:310) | |
(convert(::Type{T}, x::T) where T in Base at essentials.jl:171, convert(::Type{T}, x) where T>:Missing in Base at missing.jl:69) | |
(convert(::Type{T}, x) where T>:Missing in Base at missing.jl:69, convert(::Type{T}, x::T) where T>:Nothing in Base at some.jl:33) |
NewerOlder