isCurrentUserGame always returns false, I'm sure that players contains
{{#if game.isCurrentUserGame}}
<span> You are in this game! </span>
{{else}}
App.Game = DS.Model.extend
name: DS.attr 'string'
sealed trait NotSatisfied { def reason: String } | |
case class MissingOption(reason: String) extends NotSatisfied | |
case class IncorrectBoolean(reason: String) extends NotSatisfied | |
/** | |
* Convert Option[T] to Either.RightProjection[MissingOption, T] | |
* for use in a for comprehension | |
* | |
* @param opt the option to consider |
genderGuess: function (a) { | |
a = a.toLowerCase(); | |
var b = a.charAt(a.length - 1), | |
c = a.charAt(a.length - 2) + b; | |
return "a" != b && "e" != b && "y" != b && "i" != b && "in" != c && "ah" != c && "en" != c && "an" != c && "yn" != c && "er" != c && "ux" != c || "steve" == a || 3 == a.length || "sean" == a || "steven" == a || "dimitri" == a || "ravi" == a || "kenny" == a || "naoki" == a || "ayman" == a || "sachin" == a || "edwin" == a || "justin" == a || "nitin" == a || "bryce" == a || "mike" == a || "gary" == a || "dave" == a || "jonathan" == a || "harry" == a || "male" == a ? "male" : "female" | |
} |
package com.chandler | |
import com.twitter.scalding._ | |
import com.twitter.scalding.commons.source._ | |
case class TestLzoSource(p : String) extends FixedPathSource(p) with LzoText | |
class WordCountJob(args : Args) extends Job(args) { | |
TestLzoSource(args("input")) | |
.flatMap('line -> 'word) { line : String => line.split("""\s+""") } |
# This is the default .slate file. | |
# If no ~/.slate file exists this is the file that will be used. | |
#config | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
#resize | |
bind right:ctrl push right bar-resize:screenSizeX/2 |
node -e "console.log(JSON.stringify(JSON.parse(require('fs').readFileSync(process.argv[1])), null, 4));" ugly.json > pretty.json |
record = @get('model').createRecord(properties) | |
@get('store').get('defaultTransaction').commit() | |
record.on 'becameError', => | |
@set 'errors', 'SERVER ERROR' | |
record.on 'becameInvalid', => | |
@set 'errors', 'SERVER ERROR' | |
console: | |
POST http://localhost:9000/api/users 422 (status code 422) |
isCurrentUserGame always returns false, I'm sure that players contains
{{#if game.isCurrentUserGame}}
<span> You are in this game! </span>
{{else}}
App.Game = DS.Model.extend
name: DS.attr 'string'
App.Game = DS.Model.extend
players: DS.hasMany 'App.Player'
moreThanOnePlayer: (->
Currently there are two ways to login:
when logging in for the first time and pressing the sign in button:
App.Auth.signin({
email: '[email protected]'
password: 'abc'
})
App.MyController = Ember.Controller.extend | |
aSelected: false | |
bSelected: true | |
showA: -> | |
@set 'bSelected', false | |
@set 'aSelected', true | |
showB: -> | |
@set 'bSelected', true | |
@set 'aSelected', false |