Skip to content

Instantly share code, notes, and snippets.

Being a Nerd...

Uilque Messias uqmessias

Being a Nerd...
View GitHub Profile
uqmessias /
Last active May 26, 2022
Some Android devices dimensions
uqmessias /
Last active Mar 26, 2022 — forked from jeffdgr8/
TimePickerDialog with fixed android:timePickerMode spinner in Nougat
package my.packagename;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.DatePicker;
import java.lang.reflect.Field;
uqmessias / base64.js
Created Dec 21, 2021
Function to transform string into base64
View base64.js
* @param {string} str
function base64(str) {
const base64Characters = [
uqmessias / normalize-dates-and-remove-reply-and-like-link-on-facebook.js
Last active Oct 27, 2020
My wife did want to save some screenshots of our posts on facebook, but she wanted to remove all *like* and *reply* buttons. Besides, she wanted to change the relative date and time to an absotule one.
View normalize-dates-and-remove-reply-and-like-link-on-facebook.js
uqmessias /
Created Apr 13, 2020 — forked from protrolium/
using ffmpeg to extract audio from video files


Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

uqmessias / dec2hex.ts
Last active Feb 1, 2020
Converts an input parameter from Decimal to Hexadecimal
View dec2hex.ts
* If you want to use it, you first need to install
* Deno at and run:
* deno 222
function throwError(wrongArgument = null) {
const argumentError =
wrongArgument === null
? ""
: `"${wrongArgument}" is not a valid argument!\n\n`;
View deno-sample.ts
import { serve } from "";
const s = serve({ port: 8000 });
for await (const req of s) {
req.respond({ body: "Hello World\n" });
Código do Evento Descrição do Evento
00.000.001 Adequação de Meio
00.000.008 Consulta de Especialista em Estomatologia
00.000.009 Consulta de Especialista em Periodontia
00.000.010 Consulta de Especialista em Prótese
00.000.014 Estudo e Planejamento Ortodôntico
00.000.017 Manutenção Periodontal
00.000.025 Técnica de Localização radiográfica
00.000.028 Remoção de corpo estranho no seio maxilar
uqmessias / .editorconfig
Last active Jul 23, 2019
Function to select the current screen on an react-navigation.navigation.routes
View .editorconfig
# EditorConfig is awesome:
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
indent_style = space
uqmessias / .gitconfig
Last active Jul 23, 2019
My default .gitconfig with some alias
View .gitconfig
name = Uilque Messias
graph = log --graph --oneline --all --decorate --stat
graphall = log --graph --all --decorate --stat
pull = pull --rebase
graphline = log --graph --oneline --all --decorate
delbranch = "!f() { git push origin :\"$1\" --no-verify && git branch -d \"$1\"; }; f"
contributors = shortlog -s -n --no-merges