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
describe('Authentication', () => { | |
it('Login - fail w/ incorrect credentials', () => { | |
cy.visit('/login') | |
cy.get('[data-cy=email]').type('[email protected]') | |
cy.get('[data-cy=password]').type('wrongpwd123') | |
cy.get('[data-cy=submit]').click().then(() => { | |
cy.url().should('include', '/login') | |
cy.get('[data-cy=error]').should('be.visible') | |
}) | |
}) |
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
<template> | |
<div class="dropdown is-hoverable" ref="dropdown"> | |
<div class="dropdown-trigger" style="cursor:pointer"> | |
<span v-html="getName()">Dropdown button</span> | |
<span class="icon is-small"> | |
<i class="fas fa-angle-down" aria-hidden="true"></i> | |
</span> | |
</div> | |
<div class="dropdown-menu" id="dropdown-menu" role="menu"> | |
<div class="dropdown-content"> |
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
<template> | |
<div> | |
<button | |
@click="upload()" | |
class="button" | |
> | |
{{ label }} | |
</button> | |
<modal | |
v-if="showUploadModal" |
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
const rubric = { | |
dimensions: [ | |
{id: 1, text: "Writing Quality"}, | |
{id: 2, text: "Description of Service Learning"}, | |
{id: 3, text: "Insights and Understanding"}, | |
{id: 4, text: "Committment & Challenge"} | |
], | |
criteria: [ | |
{id: 1, text: "Excellent", points: 4}, | |
{id: 2, text: "Very Good", points: 3}, |
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 api from "api.js"; | |
import jwt_decode from 'jwt-decode'; | |
$(function(){ | |
//Login Button | |
$('#btn-login').click(function() { | |
login() | |
} | |
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
export default { | |
get(page) { | |
return this.all().find(p => p.page == page) | |
}, | |
all() { | |
return [ | |
{ | |
page: 'signup', | |
title: 'Sign up', | |
subtitle: 'Please enter your name, email and set a password.', |
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
, { | |
"recipe" : { | |
"uri" : "http://www.edamam.com/ontologies/edamam.owl#recipe_95fa6f5689286a4ffab774da45192494", | |
"label" : "Thomato Chicken", | |
"image" : "https://www.edamam.com/web-img/561/56100df8491403ea215cea3c782faec9.jpg", | |
"source" : "BBC Good Food", | |
"url" : "http://www.bbcgoodfood.com/recipes/94602/thomato-chicken", | |
"shareAs" : "http://www.edamam.com/recipe/thomato-chicken-95fa6f5689286a4ffab774da45192494/chicken/alcohol-free/591-722-cal", | |
"yield" : 3.0, | |
"dietLabels" : [ "Low-Carb" ], |
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
##MY OLD THINKING APPROACH | |
defmodule MathHelpers do | |
def average(values) do | |
unless Enum.empty?(values), do: Enum.sum(values) / Enum.count(values) | |
end | |
end | |
##PATTERN MATCHING APPROACH |