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 | |
| # This script is meant to be run from your local development machine. | |
| # Run this first to make the other upload script not prompt you for | |
| # your ssh keys. | |
| # | |
| # | |
| if [ "$1" == "" ]; then |
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 | |
| log 'Installing opencv & deps (https://singleboardblog.com/install-python-opencv-on-raspberry-pi/)' | |
| sudo apt-get install -y libhdf5-dev libhdf5-serial-dev python3-pyqt5 libatlas-base-dev | |
| sudo pip3 install --upgrade pip setuptools wheel | |
| # see (https://www.piwheels.org/project/opencv-contrib-python/) | |
| sudo pip3 install opencv-contrib-python-headless==4.5.5.62 | |
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 | |
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| sudo apt-get install -y libatlas-base-dev libjasper-dev libqtgui4 libqt4-test libhdf5-dev | |
| sudo pip3 install flask opencv-contrib-python==4.5.5.62 imutils opencv-python==3.4.2.17 numpy==1.14.5 |
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
| # find a place in your path | |
| echo $PATH | |
| # and then copy this file to it |
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
| {"lastUpload":"2019-12-31T00:45:21.279Z","extensionVersion":"v3.4.3"} |
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 React from 'react' | |
| import ReactDOM from 'react-dom' | |
| // TODO : I tried to make enzyme work here, but the menu attaches two | |
| // event handlers on keyup and mouseup to tell when the user has | |
| // clicked off or pressed escape and submenus need to be closed. | |
| // When running from Enzyme mount(), document didn't see to exist? | |
| // import {mount} from 'enzyme' |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
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
| Then /^I should( not)? see selector "([^\"]*)"/ do |negate, selector| | |
| wait_until do | |
| its_hidden = page.evaluate_script("$('#{selector}').is(':hidden');") | |
| its_not_in_dom = page.evaluate_script("$('#{selector}').length == 0;") | |
| (its_hidden || its_not_in_dom).should (negate ? be_true : be_false) | |
| end | |
| end |