Block or Report
Block or report nvd916
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
Random Integer Generator Bookmarklet
Random Integer Generator Bookmarklet 1// Put this in your bookmark's URL field
2javascript: (() => {
3const input = prompt('Enter random integer range or single digit to go from 1, example: 1 10');
4const [min, max] = input.split(' ', 2).map(Number).reduce((acc, x, i, arr) => arr.length == 1 ? [1, x] : acc.push(x) && acc, []);
5while (confirm(Math.floor(Math.random() * (max - min + 1) + min)));
-
Useful Scripts
Useful Scripts 1# revert a merge while keeping local changes
2git reset --merge ORIG_HEAD
3# export a stash
4git 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
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.