Skip to content

Instantly share code, notes, and snippets.

Anand Raman codeStryke

  • Netflix
  • San Francisco
Block or report user

Report or block codeStryke

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
@codeStryke
codeStryke / thoughts.md
Created Sep 7, 2018
Thoughts on writing clever code
View thoughts.md
  1. From http://read.humanjavascript.com/ch03-code-for-humans.html

    • Code is read more often than it's written.
    • If you're too clever, you'll forever own the project because no one else will know what the heck you're doing. That will suck, and so will your project.
    • As the requirements change and evolve (as they most certainly will), your ability to quickly read and understand the various pieces of your app will dramatically affect how quickly you can change course.

    All of this is to say: WRITE CODE THAT IS EASY TO READ!

@codeStryke
codeStryke / collapse-file-diffs.js
Created Jul 4, 2018
Collapse all file diffs in a PR
View collapse-file-diffs.js
var elems = document.querySelectorAll('.js-details-target');
for( var i = 0; i < elems.length; i++ ) {
elems[i].click();
}
@codeStryke
codeStryke / config-files.md
Last active Jun 29, 2018
Create-react-app + eslint + prettier + airbnb config
View config-files.md

package.json

{
  "engines": {
    "node": "8.11.3",
    "npm": "5.8.0"
  },
  "scripts": {
    "precommit": "lint-staged",
    "lint": "eslint '**/*.{js,jsx}'",
View keybase.md

Keybase proof

I hereby claim:

  • I am codestryke on github.
  • I am anandraman (https://keybase.io/anandraman) on keybase.
  • I have a public key ASA86mxgPi2pITzV4qW-g3pIBEDaN_dDiuYfEoW-C-3sygo

To claim this, I am signing this object:

You can’t perform that action at this time.