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
const { response } = require("express"); | |
const express = require("express"); | |
const app = express(); | |
const animals = require("./animals"); | |
app.get("/", (request, response) => { | |
response.send("Hello from Express server"); | |
}); |
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
const characters = require("./characters.json"); | |
// **A** Write a function that selects the **4th** character of your characters array and returns it. | |
const selectFourthCharacter = () => characters[3]; | |
// **B** Write a function use an array method to locate the character object with id `78` and return it. | |
const findById = () => characters.find((c) => c.id === 78); | |
/* | |
**C** Write a function recieves 1 parameter "blood" returns an array with only the characters that have that blood type. |
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
❯ cabal test | |
Resolving dependencies... | |
cabal: Could not resolve dependencies: | |
[__0] trying: stylegenr-0.1.0.0 (user goal) | |
[__1] rejecting: stylegenr:!test (constraint from config file, command line | |
flag, or user target requires opposite flag selection) | |
[__1] rejecting: stylegenr:*test (requires library from stylegenr, but the | |
component does not exist) | |
[__1] fail (backjumping, conflict set: stylegenr, stylegenr:test) | |
After searching the rest of the dependency tree exhaustively, these were the |
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
@route('/trampoline/aan') | |
def trampoline_aan(request): | |
if request.method == "GET": | |
trampoline_relay.aan() | |
return HTTPResponse(200) | |
@route('/trampoline/uit') | |
.... | |
@route('/') |
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
.......... | |
.......... | |
.......... | |
.+---+.... | |
.|...|.... | |
-x---x+... | |
.O---+|... | |
.+----+... | |
R4,U3,L4, D2 |
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
.......... | |
.......... | |
.......... | |
.+---+.... | |
.|...|.... | |
-x---x+... | |
.O---+|... | |
.+----+... | |
R4,U3,L4, D2 |
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
-- I want to parse sentences like these: | |
-- "There is a #building# over there!" | |
-- Into types like this: | |
-- NonTerminal [Token "There is a ", Symbol "building", Token " over there!" | |
-- However that creates an infite loop | |
import Parser exposing (..) | |
type ProdPart | |
= Symbol String |
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
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: static; | |
width: 100%; | |
height: 100%; |