Skip to content

Instantly share code, notes, and snippets.

@leandrodaher
leandrodaher / pt_br.affix
Created July 19, 2021 14:38 — forked from CauanCabral/pt_br.affix
Dicionários Hunspell PT-BR preparados para busca textual (FTS) com Postgresql. Fonte: https://cgit.freedesktop.org/libreoffice/dictionaries/tree/pt_BR
This file has been truncated, but you can view the full file.
SET UTF-8
TRY áàãâéêíóõôúüçesianrtolcdugmphbyfvkwjqxz
# VERO - Verificador Ortográfico Livre - Versão 3.2
# Copyright (C) 2006 - 2013 por Raimundo Santos Moura
# <raimundo.smoura@gmail.com>
# Brasil - outubro 2013
# Este é um dicionário para correção ortográfica da língua Portuguesa
# para o Hunspell.
# Este programa é livre e pode ser redistribuído e/ou modificado nos
@leandrodaher
leandrodaher / context_proxy.js
Created December 8, 2021 15:06 — forked from mikechambers/context_proxy.js
HTML5 CanvasRenderingContext2D Proxy
/*
Created by Mike Chambers
Copyright 2018
Released under an MIT License
https://github.com/mikechambers
ES6 JavaScript module and class that proxies,
captures and batches all canvas context 2d api
@leandrodaher
leandrodaher / canvascapture.md
Created December 8, 2021 17:37 — forked from iandanforth/canvascapture.md
Capture WebGL frames to disk

How to capture WebGL/Canvas by piping data over a websocket.

This Gist builds on https://gist.github.com/unconed/4370822 from @unconed.

Instead of the original method which writes to the browsers sandboxed filesystem here we use a websocket connection provided by websocketd to pipe image data to a short python script that writes out the .png files to disk.

Install websocketd

@leandrodaher
leandrodaher / README.md
Created April 12, 2022 14:43 — forked from roachhd/README.md
Games on GitHub

Games on GitHub

Below is a list of open source games and game-related projects that can be found on GitHub - old school text adventures, educational games, 8-bit platform games, browser-based games, indie games, GameJam projects, add-ons/maps/hacks/plugins for commercial games, libraries, frameworks, engines, you name it.

Contributing

If you'd like to add a repository to the list, please create an Issue, or fork this repository and submit a pull request.

Help: MarkDown Help, Markdown Cheatsheet

@leandrodaher
leandrodaher / gist:049067bde1eeeb5559c60385473743bf
Created April 12, 2022 14:47 — forked from kapadia/gist:3956486
Endianness in JavaScript
// Endian Differences When Interpreting Binary Data in JavaScript
// Let's make a request for a binary file
var xhr = new XMLHttpRequest();
xhr.open('GET', 'data/m101.fits');
xhr.responseType = 'arraybuffer';
xhr.onload = function() {
var buffer = xhr.response;
@leandrodaher
leandrodaher / mpeg-dash live stream.md
Created May 9, 2022 11:32 — forked from andriika/mpeg-dash live stream.md
live video streaming, html5, mpeg-dash, ffmpeg

Live streaming with HTML5

This document contains collected notes regarding html5 live streaming approaches. I'm trying to understand how to build a system that enables streaming of live video to HTML5 clients. Following content is mainly centered around MPEG-DASH - modern way of dealing with given needs.

Approach 1

To prepare movie.avi from MPEG-DASH streaming we will execute following ffmpeg commands:

> ffmpeg -y -i movie.avi -an -c:v libx264 -x264opts 'keyint=24:min-keyint=24:no-scenecut' -b:v 1500k -maxrate 1500k -bufsize 3000k -vf "scale=-1:720" movie-720.mp4
> ffmpeg -y -i movie.avi -an -c:v libx264 -x264opts 'keyint=24:min-keyint=24:no-scenecut' -b:v 800k -maxrate 800k -bufsize 1600k -vf "scale=-1:540" movie-540.mp4
&gt; ffmpeg -y -i movie.avi -an -c:v libx264 -x264opts 'keyint=24:min-keyint=24:no-scenecut' -b:v 400k -maxrate 400k -bufsize 800k -vf "scale=-1:360" movie-360.mp4
@leandrodaher
leandrodaher / resumo-ess.md
Created May 11, 2022 13:39 — forked from cassiocardoso/resumo-ess.md
Resumo - Engenharia de Software

Engenharia de Software

Plano de ensino:

  • Ementa

    • Discute as disciplinas da engenharia de software dando maior ênfase nas áreas do conhecimento mais relevantes para o desenvolvimento de aplicações web, como requisitos não-funcionais, arquitetura, testes e qualidade de software, evolução e entrega contínua.
    • A disciplina apresenta o modelo de referência da ISO 25.000 para a qualidade de software, bem como o uso de modelos ágeis para dar suporte ao dinamismo das aplicações web.
  • Objetivos

  • Entender características do software e de seu ciclo de vida

@leandrodaher
leandrodaher / wsl2-network.ps1
Created July 2, 2022 14:08 — forked from xmeng1/wsl2-network.ps1
WSL2 Port forwarding port to linux
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}