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
def getOneBits(n: Int): Array[Int] = { | |
var start: Int = 0 | |
var total: Int = 0 | |
val bin = n.toBinaryString | |
bin.foreach( c => if(c == '1') total += 1) | |
var positions = List(total) | |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
flExibir: 0, | |
flEsconder: 1, | |
}); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>AUDIO</title> | |
</head> | |
<style> |
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
body, err := ioutil.ReadAll(resp.Body) | |
if err != nil { | |
log.Fatal("ReadAll: ", err) | |
return | |
} | |
fmt.Printf("%s", body) |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
value: null, | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
session: Ember.inject.service('session'), | |
}); |
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
<h1>teste</h1> | |
<p>meu conteudo</p> |
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
Aquele que crê em mim nunca estará sozinho. |
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
[ { "AwayTeam" : "Chicago Bulls", | |
"HomeTeam" : "Toronto Raptors", | |
"ID" : "abc2a6db-818a-47aa-81d1-f4f59d75708d", | |
"MatchTime" : "2015-02-20T06:05:00Z", | |
"Odds" : [ { "EventID" : "abc2a6db-818a-47aa-81d1-f4f59d75708d", | |
"ID" : "f3ae1953-bb3a-49f0-b745-8491f034f08f", | |
//moneyline é a aposta mais simples (seca) para jogo de basquete tem as opcoes casa/fora | |
// a partir dessa odds variamos as demais que são casa-empate, empate-fora, casa-fora, etc... | |
"MoneyLineAway" : 132, | |
"MoneyLineHome" : -152, |