Skip to content

Instantly share code, notes, and snippets.

View lukebrandonfarrell's full-sized avatar
✌️
fixing bugs since 1996

Luke Brandon Farrell lukebrandonfarrell

✌️
fixing bugs since 1996
View GitHub Profile
let glob = require('glob');
let fs = require('fs');
const prettier = require('prettier');
var readJson = (path, cb) => {
fs.readFile(require.resolve(path), (err, data) => {
if (err) cb(err);
else cb(JSON.parse(data));
});
};
import StringUtility from "./StringUtility";
import Util from "./Util";
export default class PropertyNormalizerUtility {
static normalize(json) {
const dataOrEmptyObject = Boolean(json) ? json : {};
// Makes all property names camelCase so they are consistent in the application.
// Also recursively goes through child objects.
return Util.clone(dataOrEmptyObject, StringUtility.toCamelCase);
@DavidWells
DavidWells / aligning-images.md
Last active November 14, 2024 03:45
Guide to aligning images in github readme.md files. https://davidwells.io/snippets/how-to-align-images-in-markdown

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment