Skip to content

Instantly share code, notes, and snippets.

@swanson
Created January 26, 2016 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swanson/3d706bfa9271d2a45df9 to your computer and use it in GitHub Desktop.
Save swanson/3d706bfa9271d2a45df9 to your computer and use it in GitHub Desktop.
Segment users based on github account
Auth with Github -> github username
github username -> https://api.github.com/users/swanson/repos
Repos have a `language` field -> find most occuring language
Segment users based on most occurring language:
* ObjC/Swift -> iOS trail
* Ruby -> Rails trail
* Javascript -> React trail
etc
@r00k
Copy link

r00k commented Jan 26, 2016

Very slick! I like it.

@christoomey
Copy link

Nice! Frankly the "segments" I'm talking about are less nuanced than this, like "subscriber", "former subscriber", "never subscribed". Would love to later iterate to get more nuanced and add this sort of logic. Thanks for sharing!

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