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
| 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
| # 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
| #!/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
| 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
| // down | |
| const nextIndex = ( currIdx - 1 + elems.length ) % elems.length | |
| // up | |
| const nextIndex = ( currIdx + 1) % elems.length |
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
| # coding: utf-8 | |
| # In[30]: | |
| import os | |
| import json | |
| from contextlib import closing | |
| from bs4 import BeautifulSoup | |
| import csv |
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
| main -> | |
| polynom | |
| polynom -> | |
| _ add_sub _ | |
| | _ add_sub _ "=" _ add_sub _ | |
| parens -> | |
| "(" _ add_sub _ ")" | |
| | term |
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
| number -> | |
| int {% id %} | |
| | float {% id %} | |
| | "-" int {% function(d) { return(d[0] + d[1]) } %} | |
| | "-" float {% function(d) { return(d[0] + d[1]) } %} | |
| float -> | |
| int "." [0-9]:+ {% function(d) { return(d[0] + d[1] + d[2].join("")) } %} | |
| | "." [0-9]:+ {% function(d) { return(d[0] + d[1].join("")) } %} | |
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
| @{% | |
| const filter = d => d.filter(dp => dp) | |
| %} | |
| main -> | |
| _ add_sub _ {% filter %} | |
| | _ add_sub _ "=" _ add_sub _ {% filter %} | |
| exp -> | |
| add_sub _ "^" _ exp |