Skip to content

Instantly share code, notes, and snippets.

Avatar

Ashley Wilson lifenstein

View GitHub Profile
@bigsergey
bigsergey / review-checklist.md
Last active Jan 1, 2022
Front-end Code Review Checklist
View review-checklist.md

Review checklist

General

  1. Does the code work?
  2. Description of the project status is included.
  3. Code is easily understand.
  4. Code is written following the coding standarts/guidelines (React in our case).
  5. Code is in sync with existing code patterns/technologies.
  6. DRY. Is the same code duplicated more than twice?
@leadegroot
leadegroot / bulkCloneMoreThan100Repos.md
Created Jul 3, 2017
bulk clone github repos from a user or organisation
View bulkCloneMoreThan100Repos.md

IF there are 100 or fewer repos, simply run:

curl -u $YOURUSERNAME -s https://api.github.com/orgs/$ORGNAME/repos?per_page=100 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'

(per https://gist.github.com/caniszczyk/3856584 )

and wait.

(Note when prompted for password, they do not mean your github web password, they mean your oauth token - all command line requests for password are actually for oath token. See https://github.com/blog/1509-personal-api-tokens to generate a token.)

@aurbano
aurbano / removeKeys.js
Last active Jun 23, 2021
Remove a property from a nested object, recursively
View removeKeys.js
/**
* Remove all specified keys from an object, no matter how deep they are.
* The removal is done in place, so run it on a copy if you don't want to modify the original object.
* This function has no limit so circular objects will probably crash the browser
*
* @param obj The object from where you want to remove the keys
* @param keys An array of property names (strings) to remove
*/
function removeKeys(obj, keys){
var index;