Skip to content

Instantly share code, notes, and snippets.

Emmanuel unuigbee

  • UK
Block or report user

Report or block unuigbee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@unuigbee
unuigbee / README.md
Created Sep 26, 2016 — forked from addyosmani/README.md
108 byte CSS Layout Debugger
View README.md

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@unuigbee
unuigbee / js
Last active Sep 12, 2016
Setting new array of document references when updating a document
View js
Lets say I had this schema:
const userCommandSchema = mongo.Schema({
objectID: mongo.Schema.ObjectId,
userID: { type: String, required: true },
command: { type: String, required: true },
summary: { type: String },
isFavourite: { type: Boolean, default: false },
},
{ timestamps: true }
You can’t perform that action at this time.