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
@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 / 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 / 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 / loan-of-108000-reais-to-buy-a-house-from-caixa-federal.js
Last active March 7, 2019 16:27
This is some data extracted from a simulation at http://www8.caixa.gov.br/siopiinternet-web/simulaOperacaoInternet.do?method=inicializarCasoUso in order to get some money to buy an apartment in Brazil.
const payments = [
{
"nr": 1,
"payment": 1180.01
},
{
"nr": 2,
"payment": 1177.81
},
{
@uqmessias
uqmessias / removeAtRouteName.js
Last active March 27, 2019 23:28
Function to remove an single route from the navigation.route of react-navigation module
const removeAtRouteName = (state, routeName) => {
if (!routeName || !state.routes || !state.routes.length) {
return state;
}
const newState = { ...state };
let removed = false;
state.routes.forEach((currentRoute, index) => {
if (currentRoute.routeName === routeName) {
@uqmessias
uqmessias / regex-tutorial.md
Created May 15, 2019 22:30
Basic Regex tutorial for designers :)
@uqmessias
uqmessias / .gitconfig
Last active July 23, 2019 18:20
My default .gitconfig with some alias
[user]
name = Uilque Messias
[alias]
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
@uqmessias
uqmessias / .editorconfig
Last active July 23, 2019 18:46
Function to select the current screen on an react-navigation.navigation.routes
# EditorConfig is awesome: http://EditorConfig.org
# 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
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
import { serve } from "https://deno.land/std@v0.30.0/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" });
}