Skip to content

Instantly share code, notes, and snippets.

View romulomourao's full-sized avatar

Romulo Mourão romulomourao

View GitHub Profile

Keybase proof

I hereby claim:

  • I am romulomourao on github.
  • I am romulomourao (https://keybase.io/romulomourao) on keybase.
  • I have a public key ASDqaoiD9WnHWdbUCSBP-GW4inIqPBI0MjZJGznacD8dDgo

To claim this, I am signing this object:

#git
alias gstu='git stash -u'
alias gsync='gitpr development -b master'
alias gprd='gitpr development'
alias gprm='gitpr master'
alias gtlog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias github="google-chrome https://github.com/qcx/odin/pulls"
#apt
alias update='sudo apt update -y'
@romulomourao
romulomourao / macos-essentials.md
Created December 4, 2018 11:40
MacOS essentials dev

RVM

brew install gnupg

curl -sSL https://rvm.io/mpapis.asc | gpg --import -

\curl -sSL https://get.rvm.io | bash -s stable --ruby

Consultas mongoDB

Importar o arquivo senado2017.json

  1. Fazer uma consulta que retorne os gastos (“VALOR_REEMBOLSADO”) por senador (“SENADOR”) e por tipo de despesa (“TIPO_DESPESA”), ordenado em ambos os casos por gastos, limitando aos 15 senadores que mais gastaram em 2017.

  2. Fazer uma consulta contendo por ano/mês, o valor médio de gastos do mês (independente de senador) e somente os senadores que gastaram mais que a média naquele mês específico.

@romulomourao
romulomourao / webpack.config.js
Created October 13, 2017 14:09 — forked from danielwrobert/webpack.config.js
Example Webpack Config File
const ExtractTextPlugin = require( 'extract-text-webpack-plugin' );
const autoprefixer = require( 'autoprefixer' );
const precss = require( 'precss' );
const svgFragments = require( 'postcss-svg-fragments' );
const pxtorem = require( 'postcss-pxtorem' );
const cssnano = require( 'cssnano' );
const path = require( 'path' );
module.exports = {
entry: {
/**
* Created by IntelliJ IDEA.
* User: Milan Vít (Cellane)
* Date: May 12, 2010
* Time: 2:16:44 PM
*/
import java.text.MessageFormat;
public class MatrixDeterminant {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS STI</title>
<style id="jsbin-css">
body{
display: flex;
height: 100vh;
general {
colors = true
interval = 1
color_good = "#50fa7b"
color_degraded = "#ffb86c"
color_bad = "#ff5555"
}
order += "ethernet _first_"
order += "cpu_usage"
@romulomourao
romulomourao / README-Template.md
Created August 8, 2017 00:28 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites