Skip to content

Instantly share code, notes, and snippets.

@jkrumbiegel
jkrumbiegel / gist:a9d2dc4d84e27cf22dec2be243815f6d
Created November 8, 2018 11:17
Console output at framerate change crash
Attaching gdb to process id 5885.
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@jkrumbiegel
jkrumbiegel / gist:04604f4d47685792dd86c970fb9ad62b
Created November 8, 2018 14:43
Console output without conda
world - [INFO] pupil_detectors.build: Building extension modules...
world - [INFO] calibration_routines.optimization_calibration.build: Building extension modules...
world - [INFO] video_capture: Install pyrealsense to use the Intel RealSense backend
world - [INFO] camera_models: No user calibration found for camera Pupil Cam1 ID2 at resolution (1280, 720)
world - [INFO] camera_models: Loading pre-recorded calibration
world - [WARNING] launchables.world: Process started.
Estimated / selected altsetting bandwith : 904 / 1600.
!!!!Packets per transfer = 32 frameInterval = 327868
eye0 - [INFO] video_capture: Install pyrealsense to use the Intel RealSense backend
eye0 - [INFO] pupil_detectors.build: Building extension modules...
@jkrumbiegel
jkrumbiegel / constrainttest.jl
Last active June 5, 2019 11:45
Testing Rhea for a plot layout
using Rhea
using Plots
# Vbox: left and right-most spines match, heights are distributed
# Hbox: top and bottom-most spines match, widths are distributed
# grid: rows and columns aligned
mutable struct Axis
l::variable{Float64}
t::variable{Float64}
@jkrumbiegel
jkrumbiegel / brain-vis.jl
Last active December 21, 2019 00:44
Makie brain viewer
using Makie
using MakieLayout
using NIfTI
nipath = "T1.nii.gz"
nidata = niread(nipath)
data = Float32.(nidata) ./ maximum(nidata)
function axhline!(la::LAxis, y::Node; kwargs...)
@jkrumbiegel
jkrumbiegel / iris_makielayout_corrplot.jl
Created January 17, 2020 08:04
Iris MakieLayout corrplot
using Makie, MakieLayout, AbstractPlotting, Statistics, StatsMakie, StatsBase, RDatasets
@recipe(CorrLayout) do scene
Theme(
markersize = 5 * AbstractPlotting.px
)
end
function AbstractPlotting.plot!(scene::Scene, ::Type{CorrLayout}, attributes::Attributes, mat)
n = size(mat, 2)
@jkrumbiegel
jkrumbiegel / distance_grid.jl
Created January 31, 2020 17:34
get a grid of distances and durations between one location and a grid of locations
using HTTP
using Dates
using Printf
using JSON
using DataFrames
using CSV
hbf_location = "53.5527704,10.0065856"
using PrettyTables
st = try
pretty_table(1)
catch e
stacktrace(catch_backtrace())
end
getmodule(frame) = try; string(frame.linfo.def.module) catch; "" end
@jkrumbiegel
jkrumbiegel / selectionrect_makielayout.jl
Created March 12, 2020 12:55
Selection rectangle with MakieLayout.jl
using Makie
using MakieLayout
using GLFW; GLFW.WindowHint(GLFW.FLOATING, 1)
##
scene, layout = layoutscene()
ax = layout[1, 1] = LAxis(scene)
@jkrumbiegel
jkrumbiegel / manual_makie.jl
Created March 14, 2020 06:43
Makie manual screen update
using Makie
using GLFW; GLFW.WindowHint(GLFW.FLOATING, 1)
using MakieLayout
using AbstractPlotting
using AbstractPlotting: px
begin
scene, layout = layoutscene()
@jkrumbiegel
jkrumbiegel / multi_legend_fake.jl
Created March 17, 2020 19:20
faking a legend with multiple sections
using Makie
using MakieLayout
using GLFW; GLFW.WindowHint(GLFW.FLOATING, 1)
##
scene, layout = layoutscene()
ax = layout[1, 1] = LAxis(scene)
scats = [scatter!(ax, rand(10, 2), markersize = i * px) for i in 5:5:20]