Skip to content

Instantly share code, notes, and snippets.

View chudur-budur's full-sized avatar
🏠
Working from home

chudur-budur chudur-budur

🏠
Working from home
  • Intel Corporation
  • Kazla, Rajshahi, Bangladesh
View GitHub Profile
@chudur-budur
chudur-budur / notebook.ipynb
Created August 17, 2020 11:52 — forked from vmarkovtsev/notebook.ipynb
lapjv blog post
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chudur-budur
chudur-budur / stupid_tricks.matlab
Created December 31, 2015 03:12 — forked from adambard/stupid_tricks.matlab
Stupid MATLAB Tricks.
function stupid_tricks
% I made some functional tools for MATLAB.
assert(reduce_(@(x, y) x + y, [1, 2, 3, 4]) == 10)
% They got a little out of hand.
join = @(sep, args) ...
if_(ischar(sep), @() ... % Input check
reduce_(@(x, y) [x sep y], ... % Reduce to string
map_(@num2str, args))); % Convert args to string.
@chudur-budur
chudur-budur / minkowski_distance.cc
Created December 30, 2015 00:57 — forked from pallas/minkowski_distance.cc
Minkowski distance function
// All rights reserved,
// Derrick Pallas
// License: zlib
#include <cmath>
#include <cstdlib>
#include <limits>
#include <vector>
template <typename fp_type>
@chudur-budur
chudur-budur / tmp.c
Created December 30, 2015 00:57 — forked from hadess/tmp.c
Hack to control the keyboard backlight level on a Thinkpad Lenovo X1 Carbon Touch
/* gcc -o tmp `pkg-config --libs --cflags glib-2.0` tmp.c
*
* # modprobe ec_sys
*
* # watch -n 0.1 hexdump -C /sys/kernel/debug/ec/ec0/io
*
* 00000000 a7 05 a0 e2 00 86 05 00 00 00 47 00 00 03 00 10 |..........G.....|
* 00000000 a7 05 a0 e2 00 86 05 00 00 00 47 00 00 43 00 10 |..........G..C..|
* 00000000 a7 05 a0 e2 00 86 05 00 00 00 47 00 00 83 00 10 |..........G.....|
@chudur-budur
chudur-budur / README.markdown
Created December 30, 2015 00:57 — forked from lambdalisue/README.markdown
n-dimensional hyperplane (line for 2D, plane for 3D) fitting via singular value decomposition method

n-dimensional hyperplane (line for 2D, plane for 3D) fitting via singular value decomposition method

Screenshot

@chudur-budur
chudur-budur / 0_reuse_code.js
Created December 30, 2015 00:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@chudur-budur
chudur-budur / springer-free-maths-books.md
Created December 28, 2015 22:11 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links