Skip to content

Instantly share code, notes, and snippets.

@artemjackson
artemjackson / razer.log
Created January 4, 2017 06:28
~/.razer-service/logs/
2017-01-04 09:24:33 | razer | INFO | Initialising Daemon (v1.1.5). Pid: 1017
2017-01-04 09:24:33 | razer.screensaver | INFO | Initialising DBus Screensaver Thread
2017-01-04 09:24:33 | razer | DEBUG | Loaded device specification: RazerAbyssus ---------------------------- (1532:0042)
2017-01-04 09:24:33 | razer | DEBUG | Loaded device specification: RazerAnansi ----------------------------- (1532:010F)
2017-01-04 09:24:33 | razer | DEBUG | Loaded device specification: RazerBlackWidow2013 --------------------- (1532:011A)
2017-01-04 09:24:33 | razer | DEBUG | Loaded device specification: RazerBlackWidow2016 --------------------- (1532:0214)
2017-01-04 09:24:33 | razer | DEBUG | Loaded device specification: RazerBlackWidowChroma ------------------- (1532:0203)
2017-01-04 09:24:33 | razer | DEBUG | Load
const arrayDiffIndexes = (smallestArray, biggestArray) => {
const common = {};
smallestArray.forEach(item => {
common[item.key] = true;
});
const diffIndexes = [];
biggestArray.forEach((item, index) => {
if (!common[item.key]) diffIndexes.push(index);