Skip to content

Instantly share code, notes, and snippets.

View gvinicius's full-sized avatar
🎯
Focusing

Vinicius Lins Gesteira gvinicius

🎯
Focusing
View GitHub Profile
https://github.com/EsotericSoftware/tablelayout#cell-properties
https://www.cs.uic.edu/~liub/FBS/fake-reviews.html
@article{sentiment-analysis,
doi = {10.1007/s10489-013-0463-3},
title = {Sentiment analysis based on clustering: a framework in improving accuracy and recognizing neutral opinions},
author = {Li, Gang; Liu, Fei},
publisher = {Springer US},
journal = {Applied Intelligence},
issnp = {0924-669X},
issne = {1573-7497},
@gvinicius
gvinicius / gist:56e8021df30fac45efb5c741487e0b4e
Created May 24, 2016 19:45
Yearly aggregate value of budget
.map{ |k,v| puts k if k.to_date.year == year }.first
@book{book:787778,
title = {Advances in Applied Economics, Business and Development: International Symposium, ISAEBD 2011, Dalian, China, August 6-7, 2011, Proceedings, Part II},
author = {Chu Huang (auth.), Qingyuan Zhou (eds.)},
publisher = {Springer-Verlag Berlin Heidelberg},
isbn = {3642230199,9783642230196},
year = {2011},
series = {Communications in Computer and Information Science 209},
edition = {1},
volume = {},
}
filho(Y,X) :- progenitor(X,Y).
mae(X,Y) :- progenitor(X,Y),feminino(X).
irma(X,Y) :- progenitor(Z,X),progenitor(Z,Y),feminino(X).
avó(X,Y) :- progenitor(X,_Z), progenitor(_Z,Y),feminino(X).
avô(X,Y) :- progenitor(X,_Z), progenitor(_Z,Y),masculino(X).
joao maria jose julia jorge ana iris
@gvinicius
gvinicius / music.sh
Created October 31, 2016 18:22
Script for downloading album and dividing it into tracks in ogg format
youtube-dl -o $2 -f m4a $1
soundconverter -b $2
new="$2.ogg"
mp3splt -s $new
rm -Rf $2 $new -v
@gvinicius
gvinicius / database_setup.js
Created January 12, 2017 16:12 — forked from seanknox/database_setup.js
First attempt at tool to create/delete/reset DB using Sequelize and MySQL SQL dumps
'use strict';
const _ = require('lodash');
const Promise = require('bluebird');
const fs = require('fs');
const mysql = require('mysql');
const Sequelize = require('sequelize');
const config = require('config');
const database = config.get('database');
@gvinicius
gvinicius / omnetpp
Created February 28, 2017 00:55
Setting up omnettpp on Debian 8.2 (Jessie)
Download omnetpp for Linux on https://omnetpp.org/omnetpp
Install some of relevant libs sudo apt-get update; sudo apt-get install bison flex qt4-dev-tools tk8.6-dev
Check if you have tk library installed (install with apt if you have not it, I guess it is ), probably it is located in /usr/share... sudo ln -s /usr/bin /usr/share/tcltk/tk8.6/
cd omnetpp-5.0/ -./configure
make
Test it with: cd samples/dyna && ./dyna If the eclipse-like IDE opens, its all okay. Otherwise, a error message comes from terminal.
@gvinicius
gvinicius / example.json
Created September 25, 2017 17:51
Example of pg compare file
{
"connection1": {
"host": "10.0.0.208",
"user": "",
"password": "",
"database": "bd_grafite_demonstracao_20170809"
},
"connection2": {
"host": "10.0.0.208",
"user": "",