Skip to content

Instantly share code, notes, and snippets.

View jeffbski's full-sized avatar

Jeff Barczewski jeffbski

View GitHub Profile
@jeffbski
jeffbski / redux-logic-test-example1.js
Last active June 30, 2017 06:57
redux-logic-test helper example
import { createMockStore } from 'redux-logic-test';
// specify as much as necessary for your particular test
const store = createMockStore({
initialState: optionalObject,
reducer: optionalFn, // default: identity reducer fn(state, action) { return state; }
logic: optionalLogic, // default: [] - used for the logicMiddleware that is created
injectedDeps: optionalObject, // default {} - used for the logicMiddleware that is created
middleware: optionalArr // other mw, exclude logicMiddleware from this array
});
### Keybase proof
I hereby claim:
* I am jeffbski on github.
* I am jeffbski (https://keybase.io/jeffbski) on keybase.
* I have a public key whose fingerprint is 5A1E C40B 1E4A C0C7 645A 5C3A 27CF 0151 1E60 FA84
To claim this, I am signing this object:
@jeffbski
jeffbski / resolve-relative.js
Created March 29, 2012 20:12
RequireJS r.js optimizer suggestion/feature request - resolve relative package dependency names to match define module names
/*
Given package structure
- package.json
- src
- dist.build.js
- scripts
- store
- main.js
- util.js
@jeffbski
jeffbski / gist:1217784
Created September 14, 2011 21:05
Success debug log from WinXP Pro creating Web Folder using jsDAV v0.1.1
jsDAV server running on '0.0.0.0' port 8000
INFO: invoking method 'PROPFIND'
argument after event: null
INFO: data received
DEBUG: httpPropfind BEFORE getPropertiesForPath ''; []
INFO: sending header: 207, { 'Content-Type': 'application/xml; charset=utf-8' }
INFO: writing body: '<?xml version="1.0" encoding="utf-8"?><d:multistatus xmlns:d="DAV:" xmlns:a="http://ajax.org/2005/aml"><d:response><d:href>/</d:href><d:propstat><d:prop><d:getlastmodified xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.rfc1123">Wed, 14 Sep 2011 11:52:32 -0500</d:getlastmodified><d:resourcetype><d:collection/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 Ok</d:status></d:propstat></d:response><d:response><d:href>/1.txt</d:href><d:propstat><d:prop><d:getlastmodified xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.rfc1123">Wed, 14 Sep 2011 11:48:53 -0500</d:getlastmodified><d:getcontentlength>1</d:getcontentlength><d:resourcetype></d:resourcetype><d:getcontenttype>text/plain; charset=u
@jeffbski
jeffbski / gist:1217782
Created September 14, 2011 21:04
Failed debug log from WinXP attempting to create Web Folder with jsDAV v0.1.2
jsDAV server running on http://0.0.0.0:8000
REQUEST START: / 1
INFO: invoking method 'PROPFIND' 1
INFO: sending header: 207 { 'Content-Type': 'application/xml; charset=utf-8' }
INFO: request end: 1
INFO: writing body: '<?xml version="1.0" encoding="utf-8"?><d:multistatus xmlns:d="DAV:" xmlns:a="http://ajax.org/2005/aml"><d:response><d:href>/</d:href><d:propstat><d:prop><d:getlastmodified xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.rfc1123">Wed, 14 Sep 2011 11:23:31 -0500</d:getlastmodified><d:resourcetype><d:collection/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 Ok</d:status></d:propstat></d:response><d:response><d:href>/.TemporaryItems/</d:href><d:propstat><d:prop><d:getlastmodified xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.rfc1123">Tue, 13 Sep 2011 14:27:47 -0500</d:getlastmodified><d:resourcetype><d:collection/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 Ok</d:status></d:propstat></d:response><d:response><d:href>/htdigest</d:href><d:pro
@jeffbski
jeffbski / winxp-error-creating-v0.1.2.xml
Created September 14, 2011 21:01
Error when attempting to create Web Folder from Windows XP Pro using v0.1.2 jsDAV
<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="SYSTEM INFO" FILTER="GRABMI_FILTER_SYSTEM">
<MATCHING_FILE NAME="advapi32.dll" SIZE="617472" CHECKSUM="0xA0887D0D" BIN_FILE_VERSION="5.1.2600.5755" BIN_PRODUCT_VERSION="5.1.2600.5755" PRODUCT_VERSION="5.1.2600.5755" FILE_DESCRIPTION="Advanced Windows 32 Base API" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.5755 (xpsp_sp3_gdr.090206-1234)" ORIGINAL_FILENAME="advapi32.dll" INTERNAL_NAME="advapi32.dll" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xA5BB8" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.5755" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5755" LINK_DATE="02/09/2009 12:10:48" UPTO_LINK_DATE="02/09/2009 12:10:48" VER_LANGUAGE="English (United States) [0x409]" />
<MATCHING_FILE NAME="gdi32.dll" SIZE="286720" CHECKSUM="0x98314A3F" BIN_FILE
@jeffbski
jeffbski / jsDAV-MS-Word-Win-save-fails.txt
Created September 12, 2011 22:29
jsDAV MS Word Windows save fails
jsDAV server running on http://0.0.0.0:8000
REQUEST START: / 1
INFO: invoking method 'PROPFIND' 1
INFO: sending header: 207 { 'Content-Type': 'application/xml; charset=utf-8' }
INFO: request end: 1
INFO: writing body: '<?xml version="1.0" encoding="utf-8"?><d:multistatus xmlns:d="DAV:" xmlns:a="http://ajax.org/2005/aml"><d:response><d:href>/</d:href><d:propstat><d:prop><d:getlastmodified xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.rfc1123">Mon, 12 Sep 2011 17:26:20 -0500</d:getlastmodified><d:resourcetype><d:collection/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 Ok</d:status></d:propstat></d:response></d:multistatus>'
REQUEST START: / 2
INFO: invoking method 'PROPFIND' 2
INFO: sending header: 207 { 'Content-Type': 'application/xml; charset=utf-8' }
INFO: request end: 2
@jeffbski
jeffbski / jsDAV-MS-Word-update-fails-2011-09-12.txt
Created September 12, 2011 21:51
jsDAV MS Word update fails
jsDAV server running on http://127.0.0.1:8000
REQUEST START: / 1
INFO: invoking method 'OPTIONS' 1
INFO: sending header: 200 { Allow: 'OPTIONS,GET,HEAD,DELETE,PROPFIND,PUT,PROPPATCH,COPY,MOVE,REPORT,LOCK,UNLOCK',
'MS-Author-Via': 'DAV',
'Accept-Ranges': 'bytes',
'X-jsDAV-Version': '0.1.2',
'Content-Length': 0,
DAV: '1,3,extended-mkcol,2' }
INFO: request end: 1