Skip to content

Instantly share code, notes, and snippets.

View Omar-Elrefaei's full-sized avatar

Omar Elrefaei Omar-Elrefaei

View GitHub Profile
using AxisArrayTables
using AxisArrayTables: AxisArrays, data, named_axes
using Distributions
using Plots
## Option 1
function conf_limits(data, interval::Float64)
upper_limit = Vector{Float64}(undef, length(data))

Performance

  • Paralllize over columns
  • Potentially use lazystrings
  • Potentially extra copys with work2?

Maintainablilty

  • conventional testing
  • calling libblas mainually
    • check if views still allocate
@Omar-Elrefaei
Omar-Elrefaei / obsidian-standard-interactions.md
Last active April 13, 2023 12:24
How to make Obsidian more accessible, ergonomic, and reproducable.

While obsidian tries to create a plain-text, standard-format, future-proof notes; I found that it does a B- job of doing the same for the whole experience of using the application.

It gets some marks for supporting customization themes, plain-text representation of settings, and plugins support.

So here are some recommendations to make that experience more ergonomic and reproducible. I hope these could influence the devs and spark some interesting conversations.

Follow Standard System Interactions

  • User should be able to have multiple vaults open in different instances at the same time.
  • All vaults should have the same configuration by default.
    • Therefore, all settings should be available under ~/.config/obsidian by default.
{
"basics": {
"name": "omrfe",
"label": "BASc Nanotechnology Engineering @ University of Waterloo",
"picture": "",
"email": "[email protected]",
"phone": "",
"website": "",
"summary": " .",
"location": {
@Omar-Elrefaei
Omar-Elrefaei / bibtex.png
Created March 18, 2019 10:10 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@Omar-Elrefaei
Omar-Elrefaei / lua_external.c
Created February 6, 2018 14:53 — forked from jarcode-foss/lua_external.c
MPD client code with plain Lua and C
/* GIST NOTE: this is part of a much larger collection of lua utilities for AwesomeWM
and has some (very tiny) lua code that wraps these C functions and places them into
a table. */
/* License: GPLv3
Copyright 2018 Levi Webb */
/* MINIMAL TCP SOCKET SUPPORT */
typedef struct tsoc_con {
@Omar-Elrefaei
Omar-Elrefaei / radial.glsl
Created February 5, 2018 15:45
Radial config for Glava in (~/.config/glava/)
/* center radius (pixels) */
#define C_RADIUS 112
/* center line thickness (pixels) */
#define C_LINE 2
/* outline color --- (R, G, B, transparency)*/
#define OUTLINE vec4(0, 0, 0, 0)
/* number of bars (use even values for best results) */