Skip to content

Instantly share code, notes, and snippets.

View xadamxk's full-sized avatar
:octocat:

Adam Koewler xadamxk

:octocat:
  • St. Louis, MO
View GitHub Profile
@xadamxk
xadamxk / neoload_generalsettings_collaboration_server.md
Last active July 21, 2022 07:10
Using git/ssh in Neoload via BitBucket

Server Configuration

Protocol: git/ssh

Host: {git-service-address}.com [ex. bitbucket.com]

Port: 7999

Authentication

[] Login/Password

@xadamxk
xadamxk / AsyncRequest.js
Created November 21, 2019 18:18
Async Promise Snippet
Promise.all(elementJson.map(async (test) => {
return getTestElementValue(testId, test.id);
})).then(array => {
groupArrayByProperty(elementJson.map(function (x, i) {
x.element = array[i];
return x;
}), 'path', 0, testId, stateKey, self, testInfo)
});
@xadamxk
xadamxk / LCU API for Champion Select
Last active September 23, 2023 04:59
GET /lol-champ-select/v1/session
{
"actions": [
[
{
"actorCellId": 0,
"championId": 103,
"completed": true,
"id": 1,
"pickTurn": 1,
"type": "ban"
@xadamxk
xadamxk / response.json
Last active December 29, 2019 21:00
LCU API for End of Game Stats
{
"accountId": 214236746,
"basePoints": 0,
"battleBoostIpEarned": 0,
"boostIpEarned": 0,
"boostXpEarned": 0,
"causedEarlySurrender": false,
"championId": 111,
"coOpVsAiMinutesLeftToday": 180,
"coOpVsAiMsecsUntilReset": 0,
@xadamxk
xadamxk / data.json
Created January 6, 2020 04:47
League API for active game (1/5/2020)
{
"activePlayer": {
"abilities": {
"E": {
"abilityLevel": 1,
"displayName": "Supercharge",
"id": "KaisaE",
"rawDescription": "GeneratedTip_Spell_KaisaE_Description",
"rawDisplayName": "GeneratedTip_Spell_KaisaE_DisplayName"
},
@xadamxk
xadamxk / League In-Game API.json
Created February 9, 2020 02:00
All available in-game API endpoints as of Feb 1, 2020
{
"basePath": "/",
"consumes": [
"application/json",
"application/vnd.api+json",
"application/x-yaml",
"application/x-msgpack",
"application/octet-stream",
"application/x-www-form-urlencoded",
"multipart/form-data"
@xadamxk
xadamxk / GitVersion Tagging
Created June 30, 2021 15:53
Use gitversion to automatically tag changes
version=${VERSION:-$(gitversion /nocache /output json /showvariable SemVer)}
git tag "v$version";
git push origin --tags;
@xadamxk
xadamxk / groupArrayOfObjectsByProperty.js
Created September 13, 2021 18:46
Javascript: Group Array of Objects By Property
const groupArrayOfObjectsByProperty = (array, property) => {
return array.reduce((r, a) => {
r[a[property]] = [...r[a[property]] || [], a];
return r;
}, {});
}
const array = [
{type: 'dog', name: 'Henry'},
{type: 'cat', name: 'Steve'},