Skip to content

Instantly share code, notes, and snippets.

View embs's full-sized avatar

Matheus Santana embs

View GitHub Profile
@embs
embs / Sunspot.md
Created October 18, 2012 17:11
A Sunspot review for Redu Apps search

#Sunspot

Uma mão na roda

Muito fácil de instalar e fazer setup

Aqui, ó.

Priorização de resultados baseada em texto

Dá pra fazer um boost muito legal e ser tolerante com resultados que não apresentam exatamente os termos buscados - isto é, possuem alguns termos entre os termos da busca. Ah! Também dá pra priorizar aqueles que apresentem os termos com exatidão.

@embs
embs / Tutorial Quince Site.md
Last active May 24, 2017 12:25
Como pegar projeto de repositório no Heroku, realizar modificações e enviá-las novamente ao remoto.
@embs
embs / projet_rn.md
Last active December 14, 2015 06:09
Especificação do Projeto de Redes Neurais [IF702]

Projeto de Redes Neurais (2012.2)

Informações Gerais

  • Equipes de 4 pessoas
  • Ao final do projeto
    • Entrega de relatório; e
    • Apresentação;

O projeto consiste em utilizar o Matlab para simular uma Rede Multilayer Perceptron com o script e os dados fornecidos no site da disciplina. Basicamente, o que se há de fazer é alterar o nome de rotinas no script e definir parâmetros da rede.

O Problema

@embs
embs / mnt
Created June 20, 2013 12:57
Mounting Linux partition
Boot your system into a live CD. Mount your system into the live CD:
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
Log into the mounted system:
sudo chroot /mnt
@embs
embs / grails-tests-fail.sh
Created July 24, 2013 16:01
RGMS Grails testes falham ao utilizar o chromedriver do Linux presente no projeto
embs@duff ~/Code/rgms (master) $ grails -Dgeb.env=chrome -Dwebdriver.chrome.driver="/home/embs/Code/rgms/chromedrivers/chromedriverlinux32" test-app functional:cucumber Record.feature --stacktrace
| Server running. Browse to http://localhost:8080/rgms
| Running 8 cucumber tests...
geb.driver.DriverCreationException: failed to create driver from callback 'script1374681497705835008888$_run_closure1@19d9a63'
at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)
at geb.driver.CachingDriverFactory$_getDriver_closure3.doCall(CachingDriverFactory.groovy:80)
at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:30)
at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:79)
at geb.Configuration.createDriver(Configuration.groovy:306)
@embs
embs / grails-test-passed.sh
Created July 24, 2013 16:03
RGMS Grails testes passam ao utilizar chromedriver do Linux disponível em http://code.google.com/p/chromedriver/downloads/list
embs@duff ~/Code/rgms (master) $ grails -Dgeb.env=chrome -Dwebdriver.chrome.driver="/home/embs/Downloads/chromedriver" test-app functional:cucumber Record.feature --stacktrace
| Server running. Browse to http://localhost:8080/rgms
| Running 8 cucumber tests...
| Completed 8 cucumber tests, 0 failed in 57598ms
| Server stopped
| Tests PASSED - view reports in /home/embs/Code/rgms/target/test-reports
@embs
embs / main.cpp
Created April 10, 2014 17:54
Realidade Virtual
/****************************************************
OpenCV Base
Voxar Labs
Informatics Center - CIn
Federal University of Pernambuco - UFPE
http://www.cin.ufpe.br/voxarlabs
@author Rafael Roberto (rar3@cin.ufpe.br)
*****************************************************/
@embs
embs / mp42gif.bash
Last active July 14, 2020 17:10
Mp4 to GIF
mkdir frames
ffmpeg -i screencast.mp4 -r 5 'frames/frame-%03d.jpg'
cd frames
convert -delay 20 -loop 0 -layers Optimize *.jpg myimage.gif
@embs
embs / 2017.1
Last active March 18, 2017 14:06
IN1077 AVALIAÇÃO DE DESEMPENHO DE SISTEMAS
IN1112 ESPECIFICAÇÃO DE SISTEMAS DISTRIBUÍDOS
IN1118 PLATAFORMAS DE DISTRIBUIÇÃO
IN1119 PRINCÍPIOS E TÉCNICAS DA ANÁLISE ESTATÍSTICA EXPERIMENTAL
IN1030 SEMINÁRIOS
@embs
embs / .aREADME.md
Last active June 24, 2017 00:29
An epic battle CSP specification