Skip to content
View nvd916's full-sized avatar
  • 就労中
  • 米国
Block or Report

Block or report nvd916

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. Random Integer Generator Bookmarklet Random Integer Generator Bookmarklet
    1
    // Put this in your bookmark's URL field
    2
    javascript: (() => {
    3
        const input = prompt('Enter random integer range or single digit to go from 1, example: 1 10');
    4
        const [min, max] = input.split(' ', 2).map(Number).reduce((acc, x, i, arr) => arr.length == 1 ? [1, x] : acc.push(x) && acc, []);
    5
        while (confirm(Math.floor(Math.random() * (max - min + 1) + min)));
  2. Useful Scripts Useful Scripts
    1
    # revert a merge while keeping local changes
    2
    git reset --merge ORIG_HEAD
    3
    # export a stash
    4
    git stash show -p > /directory/your-stash.diff
    5
    # avoid deleting both 'master' and currently checked out branch, and will, in the same step, clean pointers to remote branches which no longer exist