Skip to content

Instantly share code, notes, and snippets.

@dulichan
Created January 29, 2016 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dulichan/5f6d9f549ed51df04dae to your computer and use it in GitHub Desktop.
Save dulichan/5f6d9f549ed51df04dae to your computer and use it in GitHub Desktop.
If— BY RUDYARD KIPLING (in JS)
var you = {};
var others = [];
// If you can keep your head when all about you
// Are losing theirs and blaming it on you,
if (keepYourHead(you)){
looseTheirHead(others);
blame(you);
}
// If you can trust yourself when all men doubt you,
// But make allowance for their doubting too;
if (trustSelf(you) && doubt(you, others)){
you = doubt(you)
}
// If you can wait and not be tired by waiting,
// Or being lied about, don’t deal in lies,
if (wait(you) && tired(you, others)){
var lie = lie(others)
lie.entertain(you)
}
// Or being hated, don’t give way to hating,
// And yet don’t look too good, nor talk too wise:
else if (hate(you, others)){
you.lookGood = false;
you.talkLess = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment