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
cd ~/googleDrive | |
grive -V --log-http logs/synclogHTTP.txt -l logs/synclog.txt -P |
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
import cv2 as cv | |
import numpy as np | |
def nothing(x): | |
pass | |
#img = cv.imread('fil_img.jpg') | |
cap = cv.VideoCapture(0) | |
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
#ifndef DEBUG_HELPER_H | |
#define DEBUG_HELPER_H | |
/** | |
@file debug_helper.h | |
@author Lucas Martins Mendes | |
@brief debug macros | |
*/ | |
/*--Used to paste tokens together--*/ |
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
PImage img; | |
int x_max = 0, y_max = 0, _x_max = 0, _y_max = 0 ; | |
final int inc = 10; | |
final int color_num = 4; | |
final float e[] = {7.0/16.0, 3.0/16.0, 5.0/16.0, 1.0/16.0}; | |
void setup() | |
{ |
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
#!/bin/bash | |
trap 'exit' INT | |
stop() | |
{ | |
killall oneko | |
exit | |
} |
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
(defun org-insert-image-from-clipboard () | |
"Take a screenshot into a time stamped unique-named file in the | |
same directory as the org-buffer and insert a link to this file. Depends in X.org to work (for now)" | |
(interactive) | |
(setq folder-name (concat (file-name-sans-extension (buffer-file-name)) "-orgimg")) | |
(message folder-name) | |
(if (not (file-directory-p folder-name)) | |
(make-directory folder-name nil)) | |
(setq filename | |
(concat |
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
alias setmonitorbrightness='sudo ddcutil --display 1 setvcp 10' |
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
/** | |
@brief print a number as a decimal (because of memory constraints the limited printf only works for hex and strings, no decimals). | |
*/ | |
void print_num(alt_u32 num) | |
{ | |
char buff[15],tmp; | |
char * str = buff; | |
alt_u8 dp=0; /*number of decimal places*/ | |
if(num == 0) | |
{ |
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
/** | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the |
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
alias stophd='sudo hdparm -B1' #<path to drive> | |
#Usage: stophd /dev/sdb |
OlderNewer