Skip to content

Instantly share code, notes, and snippets.

💭
Volunteer on https://github.com/StreetPet Project (Seeking Home Work)

Carlos Delfino carlosdelfino

💭
Volunteer on https://github.com/StreetPet Project (Seeking Home Work)
View GitHub Profile
View lzd_lib.cpp
#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;
View Average_Filter.h
/*********************************************************************
* ALGORITMOS DSP FORUM CdH *
* *
* Arquivo: Average_Filter.h *
* Descrição: Arquivo header de Average_Filter.C *
*********************************************************************/
/********************************************************************
--Conteúdo:
@carlosdelfino
carlosdelfino / forma_1.sh
Created Apr 12, 2020
Formas de manter GH-Pages com Git-SubTree
View forma_1.sh
## 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
View docker_wsl2.md

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 Mar 19, 2020 — forked from cesarga/.zshrc
[WSL .bashrc snippets] #wsl #snippets
View .zshrc
# 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 Mar 19, 2020 — forked from ThYpHo0n/.zshrc
WSL(2) bash profile helpers
View .zshrc
# 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
View inverter-schematic1-spwm-inverter.sim
**** 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 Feb 28, 2020
como listar papeis e permitir que somente seja marcado após processamento.
View lista-papeis-component.html
<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>
View Morlet.m
% 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 Feb 14, 2020
Sugestão de configuração para Angular gravar arquivos JS em pastas diferentes do index.html
View README.md
You can’t perform that action at this time.