Skip to content

Instantly share code, notes, and snippets.

View joaoantoniocardoso's full-sized avatar
🎯
Focusing

João Antônio Cardoso joaoantoniocardoso

🎯
Focusing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/sh
yay -S libreoffice-fresh libreoffice-extension-texmaths libreoffice-extension-writer2latex hunspell-en_US hunspell-pt-br hyphen-pt-br hyphen mythes-pt-br --needed

Investigação sobre como compilar elementary e edje com seus exemplos habilitados.

A partir da branch devs/expertise/native-windows, aplicar o seguinte patch:

diff --git a/meson.build b/meson.build
index 67ae20db3e..4740b578fc 100644
--- a/meson.build
+++ b/meson.build
@@ -479,11 +479,11 @@ subprojects = [
 ['efreet'           ,[]                    , false, false,  true, false, false, false,  true, ['eina', 'efl', 'eo'], []],
@joaoantoniocardoso
joaoantoniocardoso / .clang-format
Last active April 17, 2020 17:14
clang-format for efl style
---
BasedOnStyle: Mozilla
Language: Cpp
SortIncludes: 'false'
IncludeBlocks: Preserve
MaxEmptyLinesToKeep: 2
AlignConsecutiveMacros: 'true'
AlignConsecutiveDeclarations: 'false'
AlignEscapedNewlines: Right
@joaoantoniocardoso
joaoantoniocardoso / PKGBUILD
Created December 26, 2019 04:54
pkgbuild for libresprite
# Maintainer: Kuba Kowalik <[email protected]>
pkgname=libresprite-git
pkgver=1.1.7
pkgrel=1
pkgdesc='fork of last GPL version of aseprite'
arch=('x86_64' 'i686')
url='https://github.com/LibreSprite/LibreSprite'
license=('GPL')
depends=('pixman' 'curl' 'giflib' 'zlib' 'libpng' 'libjpeg-turbo' 'tinyxml'
#include <stdio.h>
void type1(void);
void type2(void);
void type3(void);
void type4(void);
// CFlags for avr-gcc:
// -mmcu=atmega328p -DF_CPU=16000000UL -Os -funsigned-char -funsigned-bitfields
// -fpack-struct -fshort-enums -Wall -Wundef -MMD -MP
#!/bin/sh
# requires: cloc (https://github.com/AlDanial/cloc)
# Clone all repos:
REPOS=(BOAT19 MT19 MRPC19 MAB19 MCB19 MCS19 MCT19 MFP19 MIC19 MSC19 MVC19 MSWI19 MAM19 FUPCI19)
BASE_URL=https://github.com/ZeniteSolar/
for repo in ${REPOS[*]}; do
git clone $BASE_URL/$repo
done
@joaoantoniocardoso
joaoantoniocardoso / PI.c
Last active November 24, 2019 01:50
PI CONTROL ALGORITHM - SERIES IMPLEMENTATION
/* PI CONTROL ALGORITHM - SERIES IMPLEMENTATION
** /desc Algoritimo para Controlador Proporcional Integrativo Diferencial.
** ref1: https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/902/PI-controller-equations.pdf
** /var r é o valor desejado para a saída, o 'set-point'.
** /var y é o valor da saída.
** /ret retorna a ação de controle u.
*/
float pi(float r, float y){
// PI CONFIGURATIONS:
const float Kp = 0.08*0.8; // analog series proportional gain
/* PID CONTROL ALGORITHM
** /desc Algoritimo para Controlador Proporcional Integrativo Diferencial.
** ref1: https://www.scilab.org/discrete-time-pid-controller-implementation
** ref2: https://scilabdotninja.wordpress.com/scilab-control-engineering-basics/module-4-pid-control/
** /var r é o valor desejado para a saída
** /var y é o valor da saída
** /ret retorna a ação de controle
*/
float pidVo(float r, float y){
// PID SETUP FROM ZNFD METHOD:
@joaoantoniocardoso
joaoantoniocardoso / compiling_InsightCAE.md
Last active October 1, 2019 01:14
Installing InsightCAE from sources on archlinux

Dependencies:

yay -S --needed opencascade dxflib freecad imagemagick python2 python2-matplotlib python2-scipy python2-numpy qwt qt5-base paraview swig texlive-core texlive-latexextra gnuplot boost gsl armadillo cmake