Skip to content

Instantly share code, notes, and snippets.

@shicholas
Last active December 31, 2016 07:46
Show Gist options
  • Save shicholas/dd12aef2a5b983641f0988e95e48a02c to your computer and use it in GitHub Desktop.
Save shicholas/dd12aef2a5b983641f0988e95e48a02c to your computer and use it in GitHub Desktop.

To find out how many classes you did at a studio do the following:

  1. Log in to the studio Mind Body Portal by navigating to https://clients.mindbodyonline.com/ASP/su1.asp?studioid=47475
  2. Visit your visit history by navigating to https://clients.mindbodyonline.com/ASP/my_vh.asp
  3. Open the console in your web browser. You can do that in Chrome on Windows by pressing Ctrl + Shift + J simultaneously (or Cmd + Opt + J for macs). For Firefox the keyboard shortcuts are Ctrl + Shift + K and Cmd + Opt + K respectively.
  4. Copy and paste the following code, it counts all the table rows for classes this year.
Array.apply(null, Array($('.myInfoTable tr').length)).map(function (_, i) {return i;}).reduce(function(p, c) { return /2016/.test($((".myInfoTable tr:nth-child(" + c + ")")).text()) ? p + 1 : p }, 0);
@shicholas
Copy link
Author

shicholas commented Dec 31, 2016

when you're done your screen should look something like this. This year I've taken 106 classes at Bikram Centennial. Big thanks to all of you!

screenshot from 2016-12-30 23-43-36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment