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
<html lang="en"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<head><title>JavaScript testing questionnaire for Houston.js</title></head> | |
<style> | |
body { | |
font-family: Helvetica, Arial, sans-serif; | |
font-size: 10px; | |
} | |
h5 { |
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
<!-- 100% magic! note the "~/" --> | |
<img src="~/Content/Images/dog.png" /> | |
<!-- 20-50% magical! note the call to Url.Content("~/seizurerobots.gif") --> | |
<style> | |
.some-style { | |
background-image: url('@Url.Content("~/Content/Images/seizurerobots.gif")'); | |
} | |
</style> |
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
<!-- works on my machine --> | |
<img src="file:///C:/Users/Herman%20The%20HermanTank%20Jackson/Desktop/dog.png" /> |
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
<!-- this can be a problem if you host your application on a subfolder of a website (e.g. my blog at /blog) --> | |
<img src="/Content/Images/dog.png" /> | |
<!-- this will almost certainly be a problem if you use URLs like /, /Home, and /Home/Index --> | |
<img src="../Content/Images/dog.png" |
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
<img src="dog.png" /> <!-- wait, how does it work again? --> |
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
/* test results: | |
PASS __test__\day3.test.js | |
Acceptance tests | |
√ 5 10 25 | |
√ 5 10 25, but not in any order of size | |
√ valid triangle 5 5 5 | |
Vertical parsing | |
√ Input with wrong number of rows will throw an error (15ms) | |
√ Vertical triangles are parsed in groups of 3 | |
*/ |
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
/* test results: | |
PASS __tests__\day4.test.js | |
Acceptance tests | |
√ aaaaa-bbb-z-y-x-123[abxyz] is a real room (15ms) | |
√ totally-real-room-200[decoy] is not a real room | |
parsing | |
√ aaaaa-bbb-z-y-x-123[abxyz] | |
generating a checksum | |
√ aaaaa-bbb-z-y-x-123[abxyz] | |
decrypt |
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
//---------------------------------------------------- | |
// main script | |
import fs = require("fs") | |
import _ = require("lodash") | |
import parse = require("./parse") | |
import decode = require("./decode") | |
const input = fs.readFileSync("./input.txt", "utf8") | |
const columns = parse(input) | |
const decoded = decode(columns) |
OlderNewer