(visually see servers in pic)
** error message **
const sceneStates = { | |
initial: 'playingVideoCanvasScene', | |
states: { | |
playingVideoCanvasScene: { | |
on: { | |
COMPLETE_SCENES: 'done', | |
NEXT_SCENE: { | |
actions: assign({ | |
changeScene: (context, event) => { | |
if (remainingOrderedScenes.length) { |
counterSlice.js | |
------------------ | |
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit' | |
import fakeFetch from './fakeFetch'; | |
export const lazyAdd = createAsyncThunk('counter/lazyAdd', | |
async (payload, thunkAPI) => { | |
// throw ('error in thunk!') | |
const response = await fakeFetch(payload); | |
return response; |
const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
const asyncForEach = async (array, callback) => { | |
for (let index = 0; index < array.length; index++) { | |
await callback(array[index], index, array) | |
} | |
} | |
const start = async () => { | |
await asyncForEach([1, 2, 3], async (num) => { | |
await waitFor(50) |
/** | |
* TODO(developer): Uncomment the following lines before running the sample. | |
*/ | |
// const bucketName = 'Name of a bucket, e.g. my-bucket'; | |
// const filename = 'File to access, e.g. file.txt'; | |
// Imports the Google Cloud client library | |
const {Storage} = require('@google-cloud/storage'); | |
// Creates a client |
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
(function() { | |
var lastScrollY = 0; | |
var ticking = false; | |
var update = function() { | |
// do your stuff | |
ticking = false; | |
}; | |
var requestTick = function() { |
{ | |
"input":{ | |
"autocomplete":true, | |
"autofocus":true, | |
"list":true, | |
"placeholder":true, | |
"max":true, | |
"min":true, | |
"multiple":true, | |
"pattern":true, |
Install OpenCV 4.1.0 on Raspbian Buster
$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.0/build
$ sudo make install