If your state was a California county it would be…
| State | Population | CA County | Population |
|---|---|---|---|
| Wyoming | 576,851 | San Mateo | 737,888 |
| Vermont | 643,077 | San Mateo | 737,888 |
| Alaska | 733,391 | San Mateo | 737,888 |
| North Dakota | 779,094 | San Joaquin | 789,410 |
| [ | |
| { | |
| "Hand": 1, | |
| "Player": "Neela", | |
| "Score": 24, | |
| "Winner": "" | |
| }, | |
| { | |
| "Hand": 2, | |
| "Player": "Neela", |
| // original: https://pastebin.com/9br3VZjX | |
| // improvements: add 'created at' field | |
| (function() { | |
| var pageSize = 100; | |
| var stationPageSize = 250; // IMPORTANT: This script only gets the first page of stations. If you have more than 250 this may be a problem, sorry. | |
| var webname = location.pathname.split("/").pop(); // Seems to be a variation of the username, can be retrieved from the URL | |
| var includeThumbsDown = true; | |
| var allThumbs = []; |
| FROM scratch | |
| COPY ./http /bin/app | |
| ENTRYPOINT ["/bin/app"] |
Notes:
| #!/usr/bin/env bash | |
| set -o nounset | |
| set -o errexit | |
| set -o pipefail | |
| set -x | |
| IFS=$'\n\t' | |
| main(){ | |
| for d in *; do |
| const assert = require('assert').strict | |
| function dedupe (input) { | |
| return Object.keys(input.reduce((memo, num) => { | |
| memo[num] = true | |
| return memo | |
| }, {})).map((numStr) => { | |
| return parseInt(numStr, 10) | |
| }) | |
| } |
| # vagrant box add --name ol76 --checksum cfb58aaa12f56702afd739966273df63cd3ff3362e6a5a3fa6fa9ffcec4762e3 --checksum-type sha256 https://yum.oracle.com/boxes/oraclelinux/ol76/ol76.box | |
| # https://nginx.org/en/docs/njs/examples.html#subrequest | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "ol76" | |
| config.vm.network "forwarded_port", guest: 80, host: 8111, host_ip: "127.0.0.1" | |
| config.vm.synced_folder ".", "/vagrant_data" | |
| config.vm.provision "shell", inline: <<-SHELL | |
| sudo cat > /etc/yum.repos.d/nginx.repo <<EOF |
| let laneWidthMeters = 1.22 | |
| function getLanes({laneOneMeters, aRadMeters, bRadMeters, numLanes}) { | |
| let turnMeters = 2 * Math.PI * aRadMeters | |
| let straightMeters = laneOneMeters - turnMeters | |
| let lanes = [ | |
| ['#', 'distance (m)', 'turn (m)', 'straight (m)'], | |
| ] | |
| lanes.push([ |