- Languages: JavaScript (ES6), HTML5, CSS3, Ruby
- Framework & Library: JQuery, AJAX, Node.js, EmberJS, ReactJS, Bootstrap 4, Grid, Media Query, RESTful API, Heroku, Netlify, Mocha, Chai
- Database: SQL
- Methodologies: Agile Development, Responsive Design, Wireframe, Object-Oriented Programming, MVC, Test-Driven Development, Authentication, JSON
This file contains hidden or 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
get numWrongGuesses() { | |
let count = 0; | |
const uWord = this.word.toUpperCase(); | |
this.guesses.forEach(guess => { | |
if (uWord.indexOf(guess) < 0) count++; | |
}); | |
return count; | |
} |
This file contains hidden or 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
get wordWithBlanks() { | |
const chars = []; | |
for (let i = 0; i < this.args.word.length; i++) { | |
const char = this.args.word[i]; | |
if (this.guesses.indexOf(char.toUpperCase()) >= 0) chars.push(char); | |
else chars.push("_"); | |
} | |
return chars.join("").toUpperCase(); // _IS_ in video stream example | |
} |
This file contains hidden or 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 Component from "@glimmer/component"; | |
import { tracked } from "@glimmer/tracking"; | |
import { action } from '@ember/object'; | |
export default class GameComponent extends Component { | |
@tracked | |
guessString = ''; | |
// using action decorator on our event listener | |
@action |
This file contains hidden or 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 { helper } from '@ember/component/helper'; | |
const WORDS = ['Apple', 'Pear', 'Orange', 'Tomato', 'Kumquat', 'Jackfruit']; | |
export function randomWord() { | |
const idx = Math.round(Math.random() * WORDS.length); | |
return WORDS[idx]; | |
} | |
export default helper(randomWord); |
This file contains hidden or 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 Component from "@glimmer/component"; | |
import { tracked } from "@glimmer/tracking"; | |
import { action } from '@ember/object'; | |
export default class GameComponent extends Component { | |
@tracked | |
guessString = 'ZYX'; | |
// using action decorator on our event listener | |
@action |
This file contains hidden or 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 Component from "@glimmer/component"; | |
import { tracked } from "@glimmer/tracking"; | |
export default class GameComponent extends Component { | |
@tracked | |
guesses = ["I", "S"]; | |
@tracked | |
word = "Lisa"; |
NewerOlder