Skip to content

Instantly share code, notes, and snippets.

View chris48s's full-sized avatar
🔨
down the code mines, shovelling data

chris48s

🔨
down the code mines, shovelling data
View GitHub Profile
@chris48s
chris48s / 01d477c.diff
Created October 13, 2023 12:36
check-packages diff
diff --git a/Dockerfile b/Dockerfile
index 227740e0..3a746f7b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,6 +7,7 @@ WORKDIR /app
# Install front-end dependencies.
COPY package.json package-lock.json .babelrc.js webpack.config.js .eslintrc.js .eslintignore .stylelintrc.js browsersync.config.js tsconfig.json ./
+COPY scripts/check-packages.js ./scripts/check-packages.js
RUN npm ci --no-optional --no-audit --progress=false

Keybase proof

I hereby claim:

  • I am chris48s on github.
  • I am chris48s (https://keybase.io/chris48s) on keybase.
  • I have a public key whose fingerprint is A860 2710 EC9E 381F 3485 F474 C8C3 7FDA C68B 43AB

To claim this, I am signing this object:

A bit of pseudo-code describing (at a very high level of abstraction) how an AddressBaseGeocoder() and a FuzzyGeocoder() (based on ONSPD) should behave and how we would interact with them.

g = AddressBaseGeocoder('SA8 4DA')
g.getLocalAuth() raises MultipleCodesException
g.getLocalAuth("10010020128") returns "W06000011"
g.getLocalAuth("100100624439") returns "W06000012"
g.getLocalAuth("spoons") raises NotFoundException

g = FuzzyGeocoder('SA8 4DA')
@chris48s
chris48s / MyVersionBehavior.php
Created December 20, 2015 19:56
extend Josegonzalez VersionBehavior plugin to store the user who made the change
<?php
namespace App\Model\Behavior;
use ArrayObject;
use Cake\Event\Event;
use Cake\I18n\Time;
use Cake\ORM\Entity;
use Cake\ORM\TableRegistry;
use Cake\Utility\Hash;
use Josegonzalez\Version\Model\Behavior\VersionBehavior;