Skip to content

Instantly share code, notes, and snippets.

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);
@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
@artemjackson
artemjackson / .gitconfig
Last active October 1, 2016 10:50
Common ~/.gitconfig file
[core]
editor = gedit
[user]
email = user@email.com
name = User name
[color]
diff = auto
status = auto
branch = auto
interactive = auto
2016-09-28 18:07:32 - INFO HttpServer: 'listening on *:3000'
2016-09-28 18:07:40 - DEBUG UnitTest_app: 'Unit Test app is loaded'

2016-09-28 18:07:40 - DEBUG thaliMobileNativeWrapper: 'Method peerAvailabilityChanged registered to native'

2016-09-28 18:07:40 - DEBUG thaliMobileNativeWrapper: 'Method discoveryAdvertisingStateUpdateNonTCP registered to native'

2016-09-28 18:07:40 - DEBUG thaliMobileNativeWrapper: 'networkChanged: {"wifi":"on","bluetooth":"on","bluetoothLowEnergy":"doNotCare","cellular":"doNotCare"}'

# setup
# setup
# setup
2016-09-20 09:31:14 - DEBUG UnitTestFramework: '#teardown ok: 'Server always returns 403''
2016-09-20 09:31:14 - DEBUG UnitTestFramework: '#setup: 'Make sure docs replicate''
# setup
# setup
# setup
2016-09-20 09:14:53 - DEBUG UnitTestFramework: '#teardown ok: 'Simple peer event''
2016-09-20 09:14:53 - DEBUG UnitTestFramework: '#setup: 'Coordinated pull replication from notification test''
✘ artem@mac-mini  ~/S/T/t/TestServer   vNext_artemjackson_1031  android list sdk
Refresh Sources:
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Validate XML: https://dl.google.com/android/repository/repository-11.xml
Parse XML: https://dl.google.com/android/repository/repository-11.xml
8/9/2016@13:40:16 PR > 82912030 c36b21a 941 artemjackson #916 Set-up node tests for Android and iOS thaliproject/Thali_CordovaPlugin vNext_artemjackson_916
8/9/2016@13:40:17 New Test thaliproject Thali_CordovaPlugin 82912030
8/9/2016@13:40:17 Job Index 1
8/9/2016@13:40:19 VM: Revert snapshot
8/9/2016@13:40:20 VM: Start OS
8/9/2016@13:40:20 Running builds for job: 82912030c36b21a
8/9/2016@13:55:50 Creating Github Branch for 82912030c36b21a__916_Set-up_node_tests_for_Android_and_iOS_artemjackson
8/9/2016@13:56:01 Creating Github Branch for 82912030c36b21a__916_Set-up_node_tests_for_Android_and_iOS_artemjackson was successful
8/9/2016@13:56:01 Build finished
8/9/2016@13:56:35 Error: PR commit failed { [Error: socket hang up -1]
gyp JXcore NODE-GYP Using node-gyp bundled in npm coming from JXcore
gyp ERR! NPMJX did not provide NVM_NODEJS_ORG_MIRROR url
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Parameter 'url' must be a string, not undefined
gyp ERR! stack at Url.parse (url.js:88:11)
gyp ERR! stack at urlParse (url.js:82:5)
gyp ERR! stack at Object.urlResolve [as resolve] (url.js:385:10)
gyp ERR! stack at resolveLibUrl (/Users/thali/.jx/npm/node_modules/node-gyp/lib/process-release.js:125:18)
gyp ERR! stack at processRelease (/Users/thali/.jx/npm/node_modules/node-gyp/lib/process-release.js:98:14)
gyp ERR! stack at configure (/Users/thali/.jx/npm/node_modules/node-gyp/lib/configure.js:32:17)
This file has been truncated, but you can view the full file.
2016-08-31T15:32:30.898Z - info: Require 3 ios devices
2016-08-31T15:32:30.900Z - info: Require 0 android devices
2016-08-31T15:32:30.924Z - info: listening on *:3000
Unit Test app is loaded

Unit Test app is loaded