Created
          October 2, 2017 12:21 
        
      - 
      
 - 
        
Save said-and-done/4c345b095844b5ebfa2ec8762ab11103 to your computer and use it in GitHub Desktop.  
    Google spreadsheets - gid to worksheet id
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var gid2Wid = function (gid) { | |
| var xorval = gid > 31578 ? 474 : 31578; | |
| var letter = gid > 31578 ? 'o' : ''; | |
| return letter + parseInt((gid ^ xorval)).toString(36); | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment