Skip to content

Instantly share code, notes, and snippets.

@theodoregold
theodoregold / box-shadow.css
Last active March 16, 2020 19:14
IMHO a very cool box-shadow.
box-shadow:
0 1px 1px rgba(0,0,0,0.1),
0 2px 2px rgba(0,0,0,0.1)
box-shadow:
0 2px 2px rgba(41,47,56,0.1),
0 4px 4px rgba(41,47,56,0.1),
0 8px 8px rgba(41,47,56,0.1),
0 16px 16px rgba(41,47,56,0.1),
0 32px 32px rgba(41,47,56,0.1);
// two lines are the same
agesChanged={this.updateSelections('ages')}
agesChanged={(value) => this.updateSelections('ages', value)}
// curried example (try in your browser console)
const dog = () => () => {}
dog() === dog() // will return false
@theodoregold
theodoregold / sort-package-json
Last active March 16, 2020 19:14
Easy way to sort your package.json file
npx sort-package-json
const obj = {
name: "John Doe",
email: "john.doe@company.space",
firstName: "John",
phone: "123-4567",
age: 33,
};
const Validator = require("fastest-validator");