Skip to content

Instantly share code, notes, and snippets.

View wrumsby's full-sized avatar
💭
what is this even

Walter Rumsby wrumsby

💭
what is this even
View GitHub Profile
name ring quadrant isNew description
Launch Darkly adopt tools FALSE
New Relic adopt tools FALSE todo describe how we use
date-fns adopt tools FALSE
mango queries/cloudant query adopt tools FALSE if there's no reduce function you probably don't need a couch view
Testing Library trial tools FALSE prefer over Enzyme
Calibre trial tools TRUE
Percy trial tools TRUE
SWR assess tools TRUE <a href="https://swr.vercel.app/">SWR</a> provides a lightweight way of fetching data in React apps compared to other solutions like React Query.
Hosted Login UI assess tools TRUE Bundling login into our apps via @conqa/login increases page size and rolling out updates to the login experience requires multiple changes across our applications. Solutions like <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-integration.html">Cognito Hosted UI</a> don't have these issues and it could improve our login security and user experience.
import React from 'react';
import Picture from './Picture';
export const PictureWrapper = () => {
return (
<div>
<Picture
src="http://placekitten.com/g/300/300"
srcSet="https://placeimg.com/440/440/nature 440w, https://placeimg.com/640/640/nature 640w"
sizes="(max-width: 500px) 440w, 640w"
@wrumsby
wrumsby / cloudant.js
Last active October 30, 2019 21:24
Exporting BasePlugin from @cloudant/cloudant
// Add this import after requiring ('./lib/client.js')
const BasePlugin = require('./plugins/base.js');
// This adds BasePlugin to the existing export
Cloudant.BasePlugin = BasePlugin;
...
// change nano.basePlugin = require('./plugins/base.js'); to
nano.basePlugin = BasePlugin;
import 'reflect-metadata';
import AWS from 'aws-sdk';
const metadataKey = Symbol('snsAttribute');
function snsAttribute(isSnsAttribute: boolean = true) {
return Reflect.metadata(metadataKey, isSnsAttribute);
}

Keybase proof

I hereby claim:

  • I am wrumsby on github.
  • I am walterconqa (https://keybase.io/walterconqa) on keybase.
  • I have a public key ASCEp73_IFK-LrFIOQcu4yY28cfff6kKIcN8XF-gsGJIkQo

To claim this, I am signing this object:

<!-- content to be placed inside <body>…</body> -->
<style>@font-face{font-family:"Futura-Book";font-display:optional;src:url(https://mfbstatic.azureedge.net/style/my-food-bag/fonts/ftn45-webfont.woff2) format("woff2"),url(https://mfbstatic.azureedge.net/style/my-food-bag/fonts/ftn45-webfont.woff) format("woff")}@font-face{font-family:"Futura-Demi";font-display:optional;src:url(https://mfbstatic.azureedge.net/style/my-food-bag/fonts/ftn65-webfont.woff2) format("woff2"),url(https://mfbstatic.azureedge.net/style/my-food-bag/fonts/ftn65-webfont.woff) format("woff")}@font-face{font-family:"vivabeautifulb";font-display:swap;src:url(https://mfbstatic.azureedge.net/style/my-food-bag/fonts/vivabeautifulb-webfont.woff2) format("woff2"),url(https://mfbstatic.azureedge.net/style/my-food-bag/fonts/vivabeautifulb-webfont.woff) format("woff");font-weight:400;font-style:normal}:root{--blue: #007bff;--indigo: #6610f2;--purple: #b6388e;--pink: #e83e8c;--red: #dc3545;--orange: #d97a08;--yellow: #ffc107;--green: #77a222;--teal:
@wrumsby
wrumsby / normalizr-spec.ts
Created June 2, 2017 02:52
Normalizing and denormalizing with normalizr
import { normalize, denormalize, schema } from 'normalizr';
import { assert } from 'chai';
const data = [
{
id_str: '123',
url: 'https://twitter.com',
user: {
id: 456,
name: 'Jimmy',
@wrumsby
wrumsby / output.txt
Created March 21, 2017 19:18
Gist for nyc bug report
v7.4.0
4.0.5
mybargainbox@ C:\buildagent\work\f715362d1ef7e55f\src\my.bargainbox.co.nz
+-- acquaint@1.4.0
| +-- async@2.0.1
| | `-- lodash@4.17.4
| +-- glob@7.0.6
| | +-- fs.realpath@1.0.0
| | +-- inflight@1.0.6
| | | `-- wrappy@1.0.2
@wrumsby
wrumsby / post-merge
Created March 4, 2016 03:26 — forked from sindresorhus/post-merge
git hook to run a command after `git pull` if a specified file was changed. In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed. Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
@wrumsby
wrumsby / dabblet.css
Last active February 3, 2016 23:49
px, calc and rem
/**
* px, calc and rem
*/
html {
font-size: 36px;
font-family: sans-serif;
}
@media only screen and (min-width: 480px) {
html {