I hereby claim:
- I am bartkrol on github.
- I am bartkrol (https://keybase.io/bartkrol) on keybase.
- I have a public key ASBJBRcjH_dGa-u9xmP1ykKckI_wI0zgow1GC2jZ_Nk5IAo
To claim this, I am signing this object:
| /* This is a script which generates Larp Character Sheets from Google Sheets by merging Google Docs blocks */ | |
| function generateCharacterSheets() { | |
| // Spreadsheet containing character data | |
| const spreadsheetId = 'YOUR_SPREADSHEET_ID_HERE'; | |
| const sheetName = 'Generator'; | |
| const sheet = SpreadsheetApp.openById(spreadsheetId).getSheetByName(sheetName); | |
| const rows = sheet.getDataRange().getValues(); | |
I hereby claim:
To claim this, I am signing this object:
| const request = require('superexpress') | |
| const { getResources } = require('./controllers/resourses') | |
| const expectedData = [...] | |
| // Testing code with Chai+Mocha | |
| describe('My test', () => { | |
| it('should return resources' () => { | |
| return request(getResources) | |
| .query({ name: 'some-name', conditon: 'some-condition' }) |
| function interceptLoadFunctions(name, loader) { | |
| return Object.assign({}, loader, { | |
| load(id) { | |
| return loader.load(id).catch(itemErrorHandler(name, id)) | |
| }, | |
| loadMany(ids, ...args) { | |
| return loader.loadMany(ids).catch(multipleItemsErrorHandler(name, ids)) | |
| } | |
| }) | |
| } |
| import { expect } from 'chai' | |
| import DataLoader from 'dataloader' | |
| import sinon from 'sinon' | |
| function createByIdLoader(loadFunc) { | |
| return new DataLoader( | |
| ids => Promise.all( | |
| ids.map(loadFunc) | |
| .map(promise => promise.catch(err => new Error(err))) | |
| ), |
| componentWillReceiveProps(nextProps) { | |
| if (nextProps.open !== this.state.open) { | |
| // (...) | |
| } else { | |
| if (nextProps.animated) { | |
| if (this.timeout !== null) return; // Return if still closing | |
| this.setState({closing: true}); | |
| // (...) | |
| componentWillUnmount() { |
| global | |
| maxconn 4096 | |
| defaults | |
| mode http | |
| balance roundrobin | |
| option redispatch | |
| option forwardfor | |
| timeout connect 5s |
| frontend http-in | |
| bind *:8000 | |
| (...) | |
| stats enable | |
| stats hide-version | |
| stats realm Haproxy\ Statistics | |
| stats uri /haproxy?stats | |
| stats auth Username:Password |