- Download zip.
npm install
.npm start
.
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
<template> | |
<canvas ref="chart"></canvas> | |
</template> | |
<script> | |
import chart from 'chart.js' | |
export default { | |
props: ['options', 'data'], |
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
import 'material-design-lite' | |
Vue.mixin({ | |
mounted() { | |
if (!this.$el || !this.$el.querySelectorAll) return; | |
componentHandler.upgradeElement(this.$el); | |
for (const el of this.$el.querySelectorAll('[class*=mdl-js-]')) { | |
if (!el.dataset.upgraded) { | |
componentHandler.upgradeElement(el); |
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
<style lang="scss"> | |
@import "~material-design-lite/material.css"; | |
</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
FROM base/archlinux | |
RUN pacman -Syu | |
RUN pacman -S --noconfirm git base-devel | |
WORKDIR /build | |
RUN useradd -d /build build-user | |
RUN echo "build-user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
RUN chown -R build-user /build |
kommuner-2019-2020.json (Alle kommuner som har blitt endret).
postnummer.json (Alle postnummer med kommunenummer, gruppert på postnummer).
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 data = require('./2019-2020-knr-gnr.json'); | |
/** | |
* @typedef {Object} Matrikkel | |
* @property {string} knr - Kommunenummer | |
* @property {number} gnr - Gårdsnummer | |
*/ | |
function sanitizeKnr(knr) { | |
return String(knr || '').padStart(4, '0'); |
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
module.exports = table => { | |
const res = []; | |
table.querySelectorAll('tbody tr').forEach((row, y) => | |
row.querySelectorAll('td').forEach((cell, x) => { | |
const rowspan = Number(cell.getAttribute('rowspan') || 1); | |
const colspan = Number(cell.getAttribute('colspan') || 1); | |
while (res[y] && res[y][x]) x++; | |
for (let yy = y; yy < y + rowspan; yy++) { | |
const resRow = res[yy] = res[yy] || []; |
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 fs = require('fs'); | |
const head = () => { | |
Object.assign(process.env, require('../local.settings').Values); | |
const orchestrators = {}; | |
console.log.error = console.error; | |
const context = { log: console.log }; | |
const setInput = input => context.bindings = { input: { input } }; | |
const df = { | |
orchestrator(cb) { |
OlderNewer