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
@wrumsby
wrumsby / bolderiser.js
Created July 2, 2013 08:25
AMD module definition
define(['jquery'], function ($) {
'use strict';
var Bolderiser = function ();
Bolderiser.prototype = {
embolden: function (el) {
var $el = $(el);
$el.css('font-weight', 'bold');
@wrumsby
wrumsby / toUpperCase.js
Created July 21, 2013 08:54
AMD function
define([], function () {
'use strict';
return function (text) {
return text.toUpperCase();
};
});
@wrumsby
wrumsby / tick.js
Created July 21, 2013 08:36
AMD Singleton
define([], function () {
'use strict';
var i = 0;
return {
next: function () {
return i++;
}
};
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.
@wrumsby
wrumsby / names.css
Last active February 9, 2022 09:47
CSS naming convention.
/* Base styles */
body {}
p {}
/* .layout-{name} */
.layout-sidebar {}
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);
}
@wrumsby
wrumsby / dabblet.css
Created May 6, 2013 02:09
Using images for checkboxes and radiobuttons
/**
* Using images for checkboxes and radiobuttons
*/
body {
background-color: #fff;
color: #333;
font-family: "Open Sans", Arial, Helvetica, sans-serif;
line-height: 1.6;
}

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: