Skip to content

Instantly share code, notes, and snippets.

View juliohm's full-sized avatar
🌎
Working from home

Júlio Hoffimann juliohm

🌎
Working from home
View GitHub Profile
@juliohm
juliohm / axisbug.csv
Created June 20, 2024 14:53
Data to reproduce Makie bug
436752.5063770672 7.002732207281135e6 1091.6719319246122
436752.4993687796 7.002731878090095e6 1090.6907038049
436752.4911755157 7.002731493238734e6 1089.5435675490046
436547.05392508034 7.002792941698978e6 1154.8998124225907
436547.22980068414 7.002793181897359e6 1154.3445954747062
436547.36938449665 7.002793372530995e6 1153.9039471033693
436547.56898934854 7.002793645137093e6 1153.2738199323574
436547.77836506744 7.002793931087548e6 1152.612847375352
436547.98215743364 7.002794209412655e6 1151.9695007532
436548.197116505 7.002794502988454e6 1151.290902261341
@juliohm
juliohm / values.dat
Created December 21, 2023 20:44
Empirical distribution
0.009
0.0043
0.0037
0.004
0.0007
0.0017
0.0067
0.0036
0.0
0.0
x1 x2 x3 y
-0.16485239157797732 -0.2218786857477146 0.025657251025896506 1
-0.14138283354447023 -0.18115496792737906 -0.08881228951195215 2
-0.19156671553489246 -0.21063046433580623 -0.2917535547111554 3
-0.279588288598788 -0.27721378406398256 0.015351159741035935 4
-0.3226797091143479 -0.3261822936012488 0.10225411867529889 2
0.36719732717363746 0.4162419801073728 0.15575307734063756 2
-0.2758953203829891 -0.2474704632695943 -0.14546736263944215 2
-0.271400774910694 -0.26209306422374024 -0.005437600507968055 4
-0.4938512097624689 -0.3518243528882096 -0.07185283149402386 3
@juliohm
juliohm / main.jl
Created April 23, 2020 12:48
Benchmark Julia, Python, R, C
# Example adapted from https://github.com/JuliaComputing/JuliaBoxTutorials
# Assumes that Python and R are also installed in the system
# let's compare various implementations of the sum(x) function
x = rand(10^7)
sum(x) # expected result 5×10⁶
#------------------------
# Python implementation
using PyCall
@juliohm
juliohm / small-test.csv
Last active November 5, 2019 12:11
MLJ.jl bug report
band1 band2 band3 band4 crop
118 87 72 253 2
155 121 172 193 3
147 114 132 187 3
129 104 95 294 2
105 64 42 293 3
123 89 64 306 2
106 70 46 287 3
128 93 71 307 2
126 102 71 306 3
@juliohm
juliohm / kb2d.for
Created February 16, 2019 21:01
GSLIB's 2D Kriging implementation
C%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
C %
C Copyright (C) 2003, Statios Software and Services Incorporated. All %
C rights reserved. %
C %
C This program has been modified from the one distributed in 1996 (see %
C below). This version is also distributed in the hope that it will %
C be useful, but WITHOUT ANY WARRANTY. Compiled programs based on this %
C code may be redistributed without restriction; however, this code is %
C for one developer only. Each developer or user of this source code %
@juliohm
juliohm / profile.out
Last active January 2, 2019 23:23
Profiling Kriging
9 /buildworker/worker/package_linux64/build/src/gf.c:2184; jl_apply_generic
1 /buildworker/worker/package_linux64/build/src/jltypes.c:635; typekey_compare
30140 /buildworker/worker/package_linux64/build/src/task.c:268; start_task
30140 /buildworker/worker/package_linux64/build/src/julia.h:1536; jl_apply
30140 /buildworker/worker/package_linux64/build/src/gf.c:2182; jl_apply_generic
30140 /buildworker/worker/package_linux64/build/src/gf.c:1829; jl_fptr_trampoline
30140 ./task.jl:259; (::getfield(IJulia, Symbol("##12#15")))()
30140 /home/juliohm/.julia/packages/IJulia/DL02A/src/eventloop.jl:8; eventloop(::ZMQ.Socket)
30140 ./essentials.jl:685; invokelatest
30140 ./essentials.jl:686; #invokelatest#1
@juliohm
juliohm / ldd.out
Created October 24, 2018 13:56
LDD and NM output on libclang
linux-vdso.so.1 (0x00007fff7f291000)
libclangAST.so.7 => /usr/lib/../lib/../lib/libclangAST.so.7 (0x00007f7dc2d43000)
libclangBasic.so.7 => /usr/lib/../lib/../lib/libclangBasic.so.7 (0x00007f7dc2a0e000)
libclangLex.so.7 => /usr/lib/../lib/../lib/libclangLex.so.7 (0x00007f7dc293f000)
libclangSema.so.7 => /usr/lib/../lib/../lib/libclangSema.so.7 (0x00007f7dc21a4000)
libLLVM-7.so => /usr/lib/../lib/../lib/libLLVM-7.so (0x00007f7dbe1db000)
libstdc++.so.6 => /usr/lib/../lib/../lib/libstdc++.so.6 (0x00007f7dbe04c000)
libc.so.6 => /usr/lib/../lib/../lib/libc.so.6 (0x00007f7dbde86000)
libgcc_s.so.1 => /usr/lib/../lib/../lib/../lib/libgcc_s.so.1 (0x00007f7dbde6c000)
libclangAnalysis.so.7 => /usr/lib/../lib/../lib/../lib/libclangAnalysis.so.7 (0x00007f7dbddbe000)
@juliohm
juliohm / bindings.out
Created October 23, 2018 19:15
Testing OpenCL.jl with LD_DEBUG=bindings
This file has been truncated, but you can view the full file.
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libc.so.6 [0]: normal symbol `_res' [GLIBC_2.2.5]
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libc.so.6 [0]: normal symbol `stderr' [GLIBC_2.2.5]
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libc.so.6 [0]: normal symbol `error_one_per_line' [GLIBC_2.2.5]
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libc.so.6 [0]: normal symbol `realloc' [GLIBC_2.2.5]
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libc.so.6 [0]: normal symbol `__morecore' [GLIBC_2.2.5]
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libc.so.6 [0]: normal symbol `__key_encryptsession_pk_LOCAL' [GLIBC_2.2.5]
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libpthread.so.0 [0]: normal symbol `__libpthread_freeres'
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libc.so.6 [0]: normal symbol `__progname_full' [GLIBC_2.2.5]
32335: binding file /usr/lib/libc.so.6 [0] to /usr/lib/libc.so.6 [0]:
@juliohm
juliohm / data1D.tsv
Created July 7, 2018 17:02
Data for CSV.jl issue
x value
0.0 0.0
10.0 0.1
20.0 0.2
30.0 0.3
40.0 0.4
50.0 0.5
60.0 0.4
70.0 0.3
80.0 0.2