This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait ServiceError { | |
def errorMessage: String | |
} | |
case class HttpError(error: Error, code: Int) extends ServiceError { | |
override def errorMessage: String = | |
s"Error: ${error.getMessage}. Code: $code" | |
} | |
case class DbError(error: Error, dbName: String) extends ServiceError { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector('[data-player1-name]').textContent = player1Name; | |
document.querySelector('[data-player1-score]').textContent = player1Score; | |
document.querySelector('[data-player2-name]').textContent = player2Name; | |
document.querySelector('[data-player2-score]').textContent = player2Score; | |
document.querySelector('[data-parsed-score]').textContent = getScore(); | |
document.querySelector('[data-player1-add-score]').addEventListener('click', function () { | |
player1Score++; | |
document.querySelector('[data-parsed-score]').textContent = getScore(); | |
document.querySelector('[data-player1-score]').textContent = player1Score; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getScore = function() { | |
var s; | |
if ((player1Score < 4 && player2Score < 4) && (player1Score + player2Score < 6)) { | |
var p = ['Love', 'Fifteen', 'Thirty', 'Forty']; | |
s = p[player1Score]; | |
return (player1Score === player2Score) ? s + '-All' : s + '-' + p[player2Score]; | |
} else { | |
if (player1Score === player2Score) | |
return 'Deuce'; | |
s = player1Score > player2Score ? player1Name : player2Name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var player1Name = 'Player 1'; | |
var player2Name = 'Player 2'; | |
var player1Score = 0; | |
var player2Score = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var player1Name = 'Player 1'; | |
var player2Name = 'Player 2'; | |
var player1Score = 0; | |
var player2Score = 0; | |
var getScore = function() { | |
var s; | |
if ((player1Score < 4 && player2Score < 4) && (player1Score + player2Score < 6)) { | |
var p = ['Love', 'Fifteen', 'Thirty', 'Forty']; | |
s = p[player1Score]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
O POA Software Development Group está comprometido com uma política anti-assédio que visa proporcionar uma experiência livre | |
de assédio para todos e todas as participantes, independentemente de gênero, necessidades especiais, orientação sexual, | |
aparência física, raça, etnicidade, religião e condição sócio-econômica. | |
Nós – membros da organização do grupo – não toleramos nenhuma forma de assédio ou desrespeito as pessoas participantes | |
do evento. | |
Imagens e linguagem de caráter sexual discriminatório não são apropriadas para o grupo. | |
A prática de assédio inclui comentários ofensivos - relacionados com gênero, orientação sexual, aparência física, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ls='ls -G' | |
alias lt='tree -C' | |
alias ll='ls -l' | |
alias la='ls -la' | |
export TERM=xterm-256color | |
export JAVA_HOME=/usr/lib/jvm/java-6-oracle | |
export PATH=$PATH:$JAVA_HOME/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. /usr/local/etc/bash_completion.d/git-completion.bash | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
PATH=$PATH:$HOME/bin | |
export PATH | |
alias ls='ls -G' | |
alias lt='tree -C' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAB | |
TxAoMC4wMjc0NTA5ODAzOSAwLjIxMTc2NDcwNTkgMC4yNTg4MjM1Mjk0ANIQERITWiRj | |
bGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Junior Ales | |
email = edilson.ales.jr@gmail.com | |
[color] | |
ui = auto | |
[branch "master"] | |
remote = origin | |
merge = refs/heads/master | |
[apply] | |
whitespace = fix |
NewerOlder