This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function asyncForEach(array, callback) { | |
| for (let index = 0; index < array.length; index++) { | |
| await callback(array[index], index, array); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| docker_machine_name=$(docker-machine active) | |
| docker_ssh_user=$(docker-machine inspect $docker_machine_name --format={{.Driver.SSHUser}}) | |
| docker_ssh_key=$(docker-machine inspect $docker_machine_name --format={{.Driver.SSHKeyPath}}) | |
| docker_ssh_port=$(docker-machine inspect $docker_machine_name --format={{.Driver.SSHPort}}) | |
| ssh -i $docker_ssh_key -p $docker_ssh_port $docker_ssh_user@localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # OSX | |
| # | |
| .DS_Store | |
| # Xcode | |
| # | |
| build/ | |
| *.pbxuser | |
| !default.pbxuser | |
| *.mode1v3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import PouchDB from 'pouchdb' | |
| import PouchDBFind from 'pouchdb-find' | |
| import PouchDbQuickSearch from 'pouchdb-quick-search' | |
| PouchDB.plugin(PouchDBFind) | |
| PouchDB.plugin(PouchDbQuickSearch) | |
| //convenience function do get individual error handling for an array of Promises | |
| const to = promise => | |
| promise.then(data => [null, data]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "e27390fd-e2a2-57d5-ad4f-a2d63371c851": { | |
| "model": { | |
| "id": "e27390fd-e2a2-57d5-ad4f-a2d63371c851", | |
| "name": "Fabia Wagon" | |
| }, | |
| "defaultOptions": { | |
| "data": [ | |
| { | |
| "id": "73dc2d3b-b071-5802-8b81-b4c7f3bd354b" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "d3f207e5-18d8-5bd2-a5fa-a1acc05629fa" : { | |
| "name" : "Volkswagen Passenger Cars", | |
| "id": "d3f207e5-18d8-5bd2-a5fa-a1acc05629fa", | |
| "models" : [ | |
| { | |
| "id": "ef7f7c23-2537-5067-9c0b-25f77433a1de", | |
| "name": "Der up!" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (def precision 0.000000001) | |
| (defn findDiscriminant [a b c] (- (* b b) (* (* 4 a) c))) | |
| (defn abs [n] | |
| (if (< n 0) (- n) n)) | |
| (defn factorial [n] | |
| (if (= n 1) | |
| 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: gpl-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: gpl-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license : gpl-3.0 |