Skip to content

Instantly share code, notes, and snippets.

View boris-nekezov's full-sized avatar

Boris Nekezov boris-nekezov

View GitHub Profile

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.

Effective Engineer - Notes

What's an Effective Engineer?

boris-nekezov / index.html
Created June 22, 2014 10:46
Quick HTML Template
<!doctype html>
<meta charset="UTF-8">
<script src="//"></script>
iamnewton / media-queries.css
Created January 1, 2014 03:29
A boilerplate or starter template of media queries for various device widths and orientations.
/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
getify / ex1-prototype-style.js
Last active January 7, 2024 11:58
OLOO (objects linked to other objects) pattern explored (with comparison to the prototype style of the same code)
function Foo(who) { = who;
Foo.prototype.identify = function() {
return "I am " +;
function Bar(who) {,"Bar:" + who);
getify / gist:5226305
Last active January 7, 2024 11:59
playing around with an `Object.make()` helper
// `Object.make(..)` is a helper/wrapper for `Object.create(..)`. Both create a new
// object, and optionally link that new object's `[[Prototype]]` chain to another object.
// But `Object.make(..)` makes sure the new object always has a `__proto__` property
// (even a null one) and delegation to a `isPrototypeOf(..)` method, both of which are
// missing from the bare object (aka "Dictionary") created by `Object.create(null)`.
// `isPrototypeOf()` is put on a extra object that your created object can delegate to,
// if any only if you create an empty object (by not passing a `linkTo`) that otherwise
// wouldn't have access to `isPrototypeOf()`.