Skip to content

Instantly share code, notes, and snippets.

@Swendude
Swendude / server.js
Created October 28, 2022 09:09
Kriztian's express assessment
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");
});
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.
❯ 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
@route('/trampoline/aan')
def trampoline_aan(request):
if request.method == "GET":
trampoline_relay.aan()
return HTTPResponse(200)
@route('/trampoline/uit')
....
@route('/')
..........
..........
..........
.+---+....
.|...|....
-x---x+...
.O---+|...
.+----+...
R4,U3,L4, D2
..........
..........
..........
.+---+....
.|...|....
-x---x+...
.O---+|...
.+----+...
R4,U3,L4, D2
-- 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
@Swendude
Swendude / designer.html
Created December 22, 2014 14:34
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@Swendude
Swendude / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: static;
width: 100%;
height: 100%;