Skip to content

Instantly share code, notes, and snippets.

View pavel-perina's full-sized avatar

Pavel Peřina pavel-perina

View GitHub Profile
@theramiyer
theramiyer / arch-arm-rpi3-b-plus.md
Last active April 23, 2024 21:11
Install Arch Linux (ARM) on Raspberry Pi 3 Model B+

Install Arch Linux (ARM) on Raspberry Pi B+

Created 17 Aug 2018

This is a simple installation that I did on my Raspberry Pi. Of course, this is only one of the many reasons to do it.

Here are my requirements:

#include <stdio.h>
int main(int t,int _,char*a)
{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a
)&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_,
t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\
,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\
+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\
l]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\
@discorev
discorev / readmultipageTiff.cpp
Last active November 30, 2023 04:20
C++ to use libtif to read a multi-page tiff and convert it to an opencv matrix for manipulation
#include <opencv2/core/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <string>
#include <tiffio.h>
using namespace cv;
using namespace std;
@hamaluik
hamaluik / flatshaded_frag.glsl
Created August 13, 2015 07:01
Flatshading GLSL Example
#extension GL_OES_standard_derivatives : enable
precision highp float;
precision highp int;
varying vec3 vViewPos;
vec3 normals_1_0(vec3 pos) {
vec3 fdx = dFdx(pos);
vec3 fdy = dFdy(pos);
return normalize(cross(fdx, fdy));
@sacko87
sacko87 / Base.cpp
Last active June 26, 2024 23:37
Factory Pattern in C++ with templates (using the confusingly recurring template and registry patterns)
#include "Base.h"
Base::Base() :
IsRegistered_(false)
{ }
Base::Base(bool isRegistered) :
IsRegistered_(isRegistered)
{ }