Skip to content

Instantly share code, notes, and snippets.

View handersonbf's full-sized avatar
🏠
Working from home

Handerson Frota handersonbf

🏠
Working from home
View GitHub Profile
@rponte
rponte / install-android-studio-on-linux-ubuntu-14.04.LTS.sh
Last active June 23, 2020 00:36
Installing Android Studio on Ubuntu 14.04-LTS via PPA
#!/bin/bash
set -e
# Update Ubuntu package index
sudo apt-get update -y
sudo apt-get install -y software-properties-common debconf-utils
###
# installs java 8 - oracle
@rponte
rponte / EntityManager_persist_vs_merge.md
Last active April 30, 2020 07:18
difference between entityManager.persist() and entityManager.merge()

QUESTION:

EntityManager.merge() can insert new objects and update existing ones.

Why would one want to use persist() (which can only create new objects)?

ANSWER:

Either way will add an entity to a PersistenceContext, the difference is in what you do with the entity afterwards.

@cmilfont
cmilfont / gist:1536362
Last active September 30, 2020 12:51
Sobre Equipes e Times: Condições que tornam um time mais produtivo e criativo.
Disparidade Salarial e Hierarquia
http://opr.sagepub.com/content/1/1/32.full.pdf
http://www-bcf.usc.edu/~nathanaf/power_without_status.pdf
http://epocanegocios.globo.com/Revista/Common/0,,EMI282586-16366,00-A+UNIAO+PELA+DISPARIDADE.html
Poder sem status
https://static1.squarespace.com/static/5510bf69e4b0f498ce1a71d5/t/598a0f0b49fc2b97646c337e/1502220043694/power-without-status.pdf
Harmonia no ambiente de trabalho
http://content.usatoday.com/communities/gameon/post/2011/05/inside-espn-book-the-feuds-the-egos-and-lebron-james-decision/1
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names