Skip to content

Instantly share code, notes, and snippets.

@artemjackson
artemjackson / bignumber.js.d.ts
Last active August 26, 2018 13:23
bignumber.js typescript defetion file
declare module "bignumber.js" {
export interface ISettings {
DECIMAL_PLACES?: number;
ROUNDING_MODE?: number;
EXPONENTIAL_AT?: any;
RANGE?: any;
ERRORS?: any;
}
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 / init.coffee
Last active October 3, 2016 16:28
Atom's sync-settings backup
# initialization file (not found)
@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]