Skip to content

Instantly share code, notes, and snippets.

View uqmessias's full-sized avatar
🤓
Being a Nerd...

Uilque Messias uqmessias

🤓
Being a Nerd...
View GitHub Profile
import { serve } from "https://deno.land/[email protected]/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost: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
uqmessias / countries-names-and-flags-in-portuguese-brazil-pt-br.md
Last active August 1, 2024 18:39
The list of all (or almost all) countries with their names and flag codes in brazilian portuguese (pt-br) and english — Lista de todos (ou quase todos) os países com seus nome e códigos de bandeiras em português brasileiro (pt-br) e inglês.
var countriesInPortugueseBR = [
    {
      flag: 'af',
      nameEn: 'Afghanistan',
      namePt: 'Afeganistão',
    },
    {
      flag: 'za',
@uqmessias
uqmessias / regex-tutorial.md
Created May 15, 2019 22:30
Basic Regex tutorial for designers :)
@uqmessias
uqmessias / cv-uilque-messias-english.md
Last active January 10, 2019 03:17
My resumé written in english and on markdown format

Uilque Messias Oliveira da Cruz

Summary

I'm a self-taught and highly motivated professional developer who work on the technology industry since 2010. I have advanced knowledge with Microsoft technologies and Android stack. I consider myself a fast learner with a great computer programming and logic skills.

I've been working in mobile stack since 2012 when I gained several prizes for developing some apps for Windows Phone and since then, I started to study more about Android and its technologies.

Professional experience

@uqmessias
uqmessias / android_screen_capture.sh
Created September 11, 2018 20:05 — forked from Ider/android_screen_capture.sh
Capture or record android screen, pull file to Mac when it's completed
# Demo: https://www.youtube.com/watch?v=4GsUf5OQAlI
# capture screen of android device
andrdroidScreenCapture() {
curTime=`date +%Y-%m-%d-%H-%M-%S`
tmpeName="$curTime.png"
[[ -n $1 ]] && fileName=$1 || fileName=$tmpeName
devicePath="/sdcard/$tmpeName"
adb shell screencap -p $devicePath
adb pull $devicePath $fileName
@uqmessias
uqmessias / calculateInvestiment.js
Created July 18, 2018 18:14
Calculate investiment already discounting the tax
const calculateInvestiment = (initial, months, annualInterestPercentage/*6.4 for instance*/, taxPercentage/*0 to 100*/) => {
const monthInterestMultiplier = Math.pow((annualInterestPercentage / 100) + 1, 1 / 12) - 1;
const totalInterestMultiplier = Math.pow(monthInterestMultiplier + 1, months) - 1;
const total = initial * (totalInterestMultiplier + 1);
const profit = total - initial;
const tax = profit * taxPercentage / 100;
const liquidProfit = profit - tax;
return {
initial,
@uqmessias
uqmessias / DatePickerDialogFixedNougatSpinner.java
Last active March 26, 2022 11:08 — forked from jeffdgr8/TimePickerDialogFixedNougatSpinner.java
TimePickerDialog with fixed android:timePickerMode spinner in Nougat
package my.packagename;
import android.app.DatePickerDialog;
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
uqmessias / ogl_osx.md
Created June 19, 2018 15:32 — forked from v3n/ogl_osx.md
GLFW on OS X starting guide

OpenGL Development on OS X

While it's possible to download packages and install them manually, it's such a hassle. Fortunately for us, OS X has an unofficial package manager called http://brew.sh Let's install it. Open you Terminal and paste the following code:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Great. Homebrew will automatically install packages to /usr/local. Conveniently, that directory is already in your include and link paths.

@uqmessias
uqmessias / easing.js
Created June 14, 2018 15:08 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity