Skip to content

Instantly share code, notes, and snippets.

View carlosdelfino's full-sized avatar
💭
De volta as origens, com o canal Basicão da Eletrônica

Carlos Delfino carlosdelfino

💭
De volta as origens, com o canal Basicão da Eletrônica
View GitHub Profile
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "parameters.h"
#include "lzd_lib.h"
static uint_fast8_t dicType = DIC_NUM;
static DicEntryT **dic;
/*********************************************************************
* ALGORITMOS DSP FORUM CdH *
* *
* Arquivo: Average_Filter.h *
* Descrição: Arquivo header de Average_Filter.C *
*********************************************************************/
/********************************************************************
--Conteúdo:
@carlosdelfino
carlosdelfino / forma_1.sh
Created April 12, 2020 15:43
Formas de manter GH-Pages com Git-SubTree
## Abaixo os comandos para manter o Github Pages atualizado considerando que está usando o GitBook
git checkout master && git pull # procure manter o branch master sempre atualizado
git subtree split --prefix _books -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin

Instalando o Docker WSL2

O Objetivo aqui é registrar os comandos necessários para instalar o Docker no WSL2 e assim exitinguir o Uso do Docker Tool Box para windows e outras adaptações.

Abra o terminal do Ubuntu WSL em seu windows e execute os comandos abaixo:

sudo apt update
@carlosdelfino
carlosdelfino / .zshrc
Created March 19, 2020 15:13
[WSL .bashrc snippets] #wsl #snippets
# Windows XSrv config
export $(dbus-launch)
export LIBGL_ALWAYS_INDIRECT=1
export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g')
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2)
export DISPLAY=$WSL_HOST:0
@carlosdelfino
carlosdelfino / .zshrc
Created March 19, 2020 14:45 — forked from ThYpHo0n/.zshrc
WSL(2) bash profile helpers
# Windows XSrv config
export $(dbus-launch)
export LIBGL_ALWAYS_INDIRECT=1
export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g')
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2)
export DISPLAY=$WSL_HOST:0
@carlosdelfino
carlosdelfino / inverter-schematic1-spwm-inverter.sim
Created March 8, 2020 16:50
Um circuito SPWM para desvendar detalhes sobre Synchronized PWM, http://en.pudn.com/Download/item/id/871360.html
**** 08/22/08 15:59:18 ********* PSpice 9.2 (Mar 2000) ******** ID# 1 ********
** Profile: "SCHEMATIC1-SPWM-inverter" [ D:\My Works\Orcad\Inverter SPWM[Unipolar]\Set Td\inverter-schematic1-spwm-inverter.sim ]
**** CIRCUIT DESCRIPTION
** http://en.pudn.com/Download/item/id/871360.html
******************************************************************************
** Creating circuit file "inverter-schematic1-spwm-inverter.sim.cir"
** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS
*Libraries:
* Local Libraries :
@carlosdelfino
carlosdelfino / lista-papeis-component.html
Last active February 28, 2020 16:58
como listar papeis e permitir que somente seja marcado após processamento.
<section class="papeis-section container-fluid row">
<div class="col col-3" *ngFor="let papel of _papeis$ | async" >
<mat-checkbox class="col col-2" class="papeis-margin" [checked]="checkPapel(papel) | async" [indeterminate]="waittingPapel(papel)|async" (click)="clickCheckPapel(papel)" labelPosition="after">
{{papel.nome}}
</mat-checkbox>
<div class="col col-1"></div>
</div>
</section>
@carlosdelfino
carlosdelfino / Morlet.m
Created February 25, 2020 01:41
Wavelets
% http://mikexcohen.com/lecturelets/morlet/morlet.html
% mikexcohen.com
%% create a Morlet wavelet
srate = 1000; % in hz
time = -2:1/srate:2; % best practice is to have time=0 at the center of the wavelet
frex = 6.5; % frequency of wavelet, in Hz
% create complex sine wave
@carlosdelfino
carlosdelfino / README.md
Last active February 14, 2020 07:06
Sugestão de configuração para Angular gravar arquivos JS em pastas diferentes do index.html

Baseado em angular/angular-cli#2688

For anyone needs a way to achieve this goal through angular-cli, please have a look here: softdays/angularcli-index-location@c9918fd

Key steps

npm i -D @angular-builders/custom-webpack