(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| // | |
| // Smooth scroll-to inspired by: | |
| // http://stackoverflow.com/a/24559613/728480 | |
| // | |
| module.exports = function (scrollTo, scrollDuration) { | |
| // | |
| // Set a default for where we're scrolling to | |
| // |
| // Pase these lines into website's console ( Ctrl/Cmd + Shift + I ) | |
| if(!!window.React || | |
| !!document.querySelector('[data-reactroot], [data-reactid]')) | |
| console.log('React.js'); | |
| if(!!window.angular || | |
| !!document.querySelector('.ng-binding, [ng-app], [data-ng-app], [ng-controller], [data-ng-controller], [ng-repeat], [data-ng-repeat]') || | |
| !!document.querySelector('script[src*="angular.js"], script[src*="angular.min.js"]')) | |
| console.log('Angular.js'); |
| // 还需要了解的: | |
| // - 什么是 UID | |
| // - 这四种方式优劣 | |
| function getId() { | |
| return "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/x/g, function() { | |
| return Math.floor(Math.random()*16).toString(16).toUpperCase(); | |
| }); | |
| } |