Skip to content

Instantly share code, notes, and snippets.

View dz's full-sized avatar

David Zhou dz

View GitHub Profile
entry(id: 1234) {
ledeImage {
river: ratio(...),
hero_oneup: ratio(...),
image_above: ratio(...)
}
}
# The API knows to fetch from various database sources,
# and returns full names vs usernames according to community rules,
/**
* not so simple check for object equality
*/
var equal = function(a, b) {
function check(a, b) {
for (var attr in a) {
if (a.hasOwnProperty(attr) && b.hasOwnProperty(attr)) {
if (a[attr] != b[attr]) {
switch (a[attr].constructor) {
case Object: