Skip to content

Instantly share code, notes, and snippets.

View yudi-matsuzake's full-sized avatar

Yudi Matsuzake yudi-matsuzake

  • Curitiba, Paraná, Brasil
View GitHub Profile
@yudi-matsuzake
yudi-matsuzake / CMakeLists.txt
Last active February 1, 2019 12:56
c++17 opencv adaptors
cmake_minimum_required(VERSION 2.8)
project(adaptors)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(adaptors main.cpp)
target_compile_features(adaptors PUBLIC cxx_std_17)
target_link_libraries(adaptors ${OpenCV_LIBS})
@yudi-matsuzake
yudi-matsuzake / r-deepin-i-kde.txt
Last active September 5, 2023 00:53
remove deepin install kde
sudo pacman -Rsun deepin deepin-desktop-base deepin-wm deepin-extra lightdm deepin-manjaro
sudo pacman -S plasma kio-extras kde-applications manjaro-kde-settings sddm-breath-theme manjaro-settings-manager-knotifier manjaro-settings-manager-kcm
sudo systemctl enable sddm.service --force
/usr/bin/cp -rf /etc/skel/. ~
sudo pacman -Scc
sudo pacman -S deepin deepin-extra lightdm deepin-manjaro mesa xf86-video-intel nvidia bumblebee
sudo systemctl enable lightdm.service --force
sudo systemctl enable bumblebeed.service
/usr/bin/cp -rf /etc/skel/. ~
@yudi-matsuzake
yudi-matsuzake / any.hpp
Last active June 13, 2017 14:06
This class implement a generic placeholder for any type in C++ using smart pointers
/** @file any.hpp
* This class implement a generic placeholder for any type.
* Inspired by the awesome article "Valued Convertions" by
* Kevlin Henney.
* http://www.two-sdg.demon.co.uk/curbralan/papers/ValuedConversions.pdf
*/
#pragma once
#include <cstdlib>
#include <string>
@yudi-matsuzake
yudi-matsuzake / daisy-example.py
Created March 16, 2017 00:16
scikit-image daisy example
import skimage.feature
import skimage.data
import skimage.color
import skimage as sk
import matplotlib.pyplot as plt
img_astronaut = sk.color.rgb2gray(sk.data.astronaut())
img_photographer = sk.data.camera()
parameters = [
@yudi-matsuzake
yudi-matsuzake / keys
Created August 26, 2016 20:44
vim-like feh keys config
menu_parent Left
menu_child Right
menu_down Down
menu_up Up
scroll_left h
scroll_right l
scroll_up k
scroll_down j
#include <stdio.h>
typedef void* (*f)(void);
int n = 0;
void* func(void){
printf("%d\n", n++);
return &func;
}
@yudi-matsuzake
yudi-matsuzake / about_you.c
Created July 20, 2016 14:58
imprime algo sobre você
#include <stdio.h>
int main(){int n=12237514;/*imprime algo sobre você*/printf("%02x\n",*((int*)(&main+(n-12237503))));return 0;}
#include <stdio.h>
int print_0_99(int n){
printf("%d\n",n);
((n<99) && print_0_99(n+1));
return 0;
}
int main(){
print_0_99(0);
#include <stdio.h>
#define CAT(a, ...) PRIMITIVE_CAT(a, __VA_ARGS__)
#define PRIMITIVE_CAT(a, ...) a ## __VA_ARGS__
#define COMPL(b) PRIMITIVE_CAT(COMPL_, b)
#define COMPL_0 1
#define COMPL_1 0
#define BITAND(x) PRIMITIVE_CAT(BITAND_, x)