View pwsumtimetest.jl
This file contains 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
using BenchmarkTools | |
using Statistics | |
using GLMakie | |
function simpsum(a) | |
y = zero(eltype(a)) | |
ll = length(a) | |
@inbounds @simd for i in 1:ll #eachindex(a) | |
y += a[i] | |
end |
View sirfit.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:2ad73c71d561e9fe5ff102ce880a6941
This file contains 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
https://brianbuccola.com/how-to-install-xmonad-and-xmobar-via-stack/ | |
sudo apt install curl wget | |
sudo apt install libxrandr-dev libxrender-dev | |
sudo apt install libxft-dev libxss-dev libxinerama-dev | |
sudo apt install libiw-dev libxpm-dev | |
stack install --flag xmobar:all_extensions | |
View mergemasks.jl
This file contains 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
## Process data from https://www.kaggle.com/c/data-science-bowl-2018/ | |
## Merge a bunch of binary masks into a single one | |
using Glob, Images | |
root = "/home/user/src/data/data-science-bowl-2018/train/" | |
for case in glob("*", root) | |
labels = glob("*png", case * "/masks") | |
mergedlabels = sum(map(load, labels)) | |
save(case * "/mergedmasks.png", mergedlabels) |
View Eigvec2fromeigval.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Eig.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View SE3 Interpolation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View dirmap.c
This file contains 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
#include "uv.h" | |
typedef void (*callback)(const char *, int, void*); | |
void dirmap(const char path[], callback cb, void* thunk) { | |
uv_fs_t readdir_req; | |
uv_fs_opendir(NULL, &readdir_req, path, NULL); | |
uv_dirent_t dirent; |
View file-count.c
This file contains 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
#include "uv.h" | |
#include "stdio.h" | |
#include "string.h" | |
#include <sys/time.h> | |
int min(int a, int b) { return (a < b)? a : b; } | |
int get_file_count_read(const char path[], int chunklen) { | |
uv_fs_t readdir_req; |
NewerOlder