This small script pick a random card in a column on a Trello board.
We use this script at Kuzzle to pick a random card for our product workshop.
| const filters = { | |
| geoPolygon: { | |
| location: { | |
| points: [ | |
| [2.35107421875, 51.0275763378024], | |
| [-4.89990234375, 48.472921272487824], | |
| [-1.6259765625, 43.48481212891603], | |
| [3.01025390625, 42.48830197960227], | |
| [7.62451171875, 43.77109381775651], | |
| [8.173828125, 48.980216985374994], |
| import io.kuzzle.sdk.core.Kuzzle; | |
| import io.kuzzle.sdk.core.Options; | |
| Options options = new Options(); | |
| options | |
| .setAutoReconnect(true), | |
| .setPort(7512); | |
| Kuzzle kuzzle = new Kuzzle("106.75.172.117", options, new ResponseListener<Void>() { |
This small script pick a random card in a column on a Trello board.
We use this script at Kuzzle to pick a random card for our product workshop.
| const Benchmark = require('benchmark') | |
| const suite = new Benchmark.Suite | |
| const array = []; | |
| for (let i = 0; i < 1000; i++) { | |
| array.push(i); | |
| } |
| version: '3' | |
| services: | |
| kuzzle: | |
| image: kuzzleio/kuzzle:2 | |
| ports: | |
| - "7512:7512" | |
| cap_add: | |
| - SYS_PTRACE | |
| depends_on: |
| const { | |
| Kuzzle, | |
| WebSocket | |
| } = require('kuzzle-sdk') | |
| const kuzzle = new Kuzzle(new WebSocket("localhost")) | |
| kuzzle.on('networkError', error => console.error(error)); | |
| (async () => { |
| const Benchmark = require('benchmark') | |
| const suite = new Benchmark.Suite | |
| const array = []; | |
| for (let i = 0; i < 1000; i++) { | |
| array.push({ value: i }); | |
| } |
| const Benchmark = require('benchmark') | |
| const _ = require('lodash'); | |
| const suite = new Benchmark.Suite | |
| const obj = { | |
| value: 42, | |
| name: 'jean', | |
| not: 'taked' | |
| }; |
| const Benchmark = require('benchmark') | |
| const suite = new Benchmark.Suite | |
| const array = []; | |
| for (let i = 0; i < 1000; i++) { | |
| array.push({ value: i }); | |
| } |
| const Benchmark = require('benchmark') | |
| const _ = require('lodash'); | |
| const suite = new Benchmark.Suite | |
| const obj1 = { | |
| nested: { | |
| object: { | |
| value: 'string' | |
| } |