Skip to content

Instantly share code, notes, and snippets.

@vilkoz
Last active June 2, 2018 10:53
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 vilkoz/f319a51bfbd7c7adf4a2e977ab7a2f96 to your computer and use it in GitHub Desktop.
Save vilkoz/f319a51bfbd7c7adf4a2e977ab7a2f96 to your computer and use it in GitHub Desktop.
find users in UNIT cluster
//https://cheatera.unit.ua/42/projects/matcha
g = document.querySelectorAll('.highcharts-axis-labels > text > tspan');
a = [];
for (let i = 0; i < g.length; i++)
{
a.push(g[i].innerHTML);
}
a = a.map(function(x) {return x.split(" ")[1];});
a.filter(function(x) {return x});
// ----------------------------------------------------------------------------
//https://unitportal.click/cluster2/
//a = ["arodiono", "atrush", "egaragul", "mpotapov", "mvorona", "oklymeno", "sandruse", "vdoroshy", "ykondrat", "gsominsk", "mdubina", "sladonia", "dpanov", "efedoryc", "rkonoval", "omotyliu", "vrudenko", "vrybchyc", "vsosevic", "vartyukh", "astepovy", "efedorov", "gtertysh", "mhlukhov"]
b = document.querySelectorAll('span.login.stud');
//b = document.querySelectorAll('#content > div > div > div > div > a');
c = [];
for (let i = 0; i<b.length; i++)
{
c.push(b[i].innerHTML);
}
d = c.filter((x) => {return a.includes(x);})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment