I hereby claim:
- I am emersonmello on github.
- I am emersonmello (https://keybase.io/emersonmello) on keybase.
- I have a public key whose fingerprint is 63DD 23E5 47D4 4F9E 91CF FA30 05BD 0AB5 8B75 C272
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import java.io.*; | |
import java.util.Scanner; | |
/** | |
* Exemplo de como fazer a leitura e escrita em arquivos texto com Java 6 | |
* | |
* @author Emerson Ribeiro de Mello | |
*/ | |
public class ArquivoTexto { |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $local_fs $remote_fs $networking | |
# Required-Stop: $local_fs $remote_fs $networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Starts supervisord - see http://supervisord.org | |
# Description: Starts and stops supervisord as needed - see http://supervisord.org | |
### END INIT INFO |
/* | |
* File: os-signals.c | |
* Author: Emerson Ribeiro de Mello <mello@ifsc.edu.br> | |
* | |
* Created on 30 June 2016 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <signal.h> |
package poo; | |
import java.io.InputStream; | |
import java.util.Scanner; | |
public class ArquivoERecurso { | |
public static void main(String[] args) { | |
System.out.println("Trabalhando com arquivos"); | |
Principal p = new Principal(); |
% 2020-08-24 | |
% Logo do Instituto Federal feito com o pacote tikz do LaTeX | |
% | |
% Emerson Ribeiro de Mello - mello@ifsc.edu.br | |
% | |
\documentclass[margin=1cm]{standalone} | |
\usepackage[utf8]{inputenc} | |
\usepackage[default]{opensans} | |
\usepackage[T1]{fontenc} |
#!/bin/sh | |
# view here: | |
# https://i.stack.imgur.com/OK3po.png | |
e=$'\e[' | |
for n in {0..7}; do | |
printf "${e}"'38;05;'"${n}"'m%-6s' '('"$n"') ' | |
done |
# Alterando o prompt (variável PS1) para refletir o status do repositório git | |
# Adaptações de soluções presentes em https://gist.github.com/justintv/168835 | |
function situacao_repo_git() { | |
if [[ $(git status -s 2> /dev/null) ]]; then | |
echo -ne "\e[0;33m$(__git_ps1)\033[0m"; | |
else | |
echo -ne "\e[0;32m$(__git_ps1)\033[0m"; | |
fi | |
} |
package poo; | |
import org.fusesource.jansi.AnsiConsole; | |
import static org.fusesource.jansi.Ansi.*; | |
import static org.fusesource.jansi.Ansi.Color.*; | |
/** | |
* Esta classe depende da biblioteca jansi. Coloque-a como dependência em teu projeto gradle ou maven | |
* https://mvnrepository.com/artifact/org.fusesource.jansi/jansi | |
*/ |