Skip to content

Instantly share code, notes, and snippets.

View oxechicao's full-sized avatar

Francisco Thiago oxechicao

View GitHub Profile
@oxechicao
oxechicao / zshrc
Last active March 19, 2017 15:09
.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/$USER/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="robbyrussell"
@oxechicao
oxechicao / honukai.zsh-theme
Created March 13, 2017 14:12
Backup honukai.zsh-theme
# Based on the great ys theme (http://ysmood.org/wp/2013/03/my-ys-terminal-theme/)
# Machine name.
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo $HOST
}
# Directory info.
local current_dir='${PWD/#$HOME/~}'
@oxechicao
oxechicao / Intruder 125 - Dicas.md
Last active November 14, 2017 18:26
Intruder 125 - Dicas

Dia a dia

  • Ande sempre com uma lampada reserva de pisca alerta. Pois, se for parado num blitz e uma lâmpada estiver queimada, é só trocar e sair com a moto. Caso queiram ainda manter a moto, faça um BO na polícia civil.

Mudança para 150cc

  • Recomenda-se comprar da KMP.

Elétrica

Relé

>Tiu Bruno

@oxechicao
oxechicao / AG_MAX.cpp
Created May 12, 2017 01:54
Árvore Geradora Máxima (examplo)
#include <bits/stdc++.h>
using namespace std;
const int MAX = 100;
pair <int, pair <int,int> > p[MAX];
int id[MAX], vertices, arestas, arvores, pesoMAX;
void iniciarVertices(int n){
@oxechicao
oxechicao / personal-development-environment.md
Last active July 1, 2017 18:48
Just a wiki file that I'm using to install some packages needed to development in my linux.

Instalação

It can be written in a .sh file and ran to install all of packages.


UBUNTU

@oxechicao
oxechicao / vscode.json
Last active June 24, 2017 20:26
set of config colors
// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "'Monaco', 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
"editor.fontSize": 13,
"editor.lineHeight": 30,
"editor.renderWhitespace": "all",
"editor.rulers": [
80, 120
],
"editor.wordWrap": "",
// Monochrome -----------------------------------
@syntax-bg: #26362e // high-dark greenblue
@syntax-fg: #abbfb5
@syntax-select: #82978c
@syntax-comment: #5c7066
// Colors -----------------------------------
@methods-lang: #bb7de8 // purple
@methods: #f4a871 // orange
@keywords: #19e680 // green
@oxechicao
oxechicao / Commands multimidea keybinds Spotify.md
Last active October 4, 2017 17:52
Commands to use for multimidea binds. Works on XFCE-4

SOURCE

Open 'Keyboard' and go to 'Application Shorcuts' tab.

Add each one line bellow with the respective shotcut wanted.

I tested on XFCE 4, Linux Mint 18.2 and Ubuntu 16.04.

@oxechicao
oxechicao / UploadResizeQuality.vue
Last active October 23, 2017 14:16
Vuejs component that resize an image and reduce your quality using basically javascript and html.
<template>
<div id='UploadImagem'>
<input
id='docUp'
name='arquivo'
type='file'
accept='image/*'
@change='onFileChange'
/>
<canvas ref='docCanvas' hidden></canvas>
  1. Ayoub Alsarhan, Awni Itradat, Ahmed Y. Al-Dubai, Senior Member, IEEE Albert Y. Zomaya, IEEE, Fellow and Geyong Min

O que é feito

Proposta um novo framework SLA onde o parâmetro das demandas de QoS é o preço.

Como é feito

Esse framework usa aprendizagem por reforço (reinforcement learning, RL) para a política de alocação de VM que se adapta a mudanças no sistema. Parâmetros avaliados: custo do serviço, capacidade do sistema e demandas por serviços.