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 author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

boris-nekezov / index.html
Created June 22, 2014 10:46
Quick HTML Template
View index.html
<!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.
View media-queries.css
/* 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 September 7, 2023 20:07
OLOO (objects linked to other objects) pattern explored (with comparison to the prototype style of the same code)
View ex1-prototype-style.js
function Foo(who) { = who;
Foo.prototype.identify = function() {
return "I am " +;
function Bar(who) {,"Bar:" + who);
getify / gist:5226305
Last active May 28, 2023 19:50
playing around with an `Object.make()` helper
View gist:5226305
// `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()`.