This file contains 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
// firebaseApp replaces import firebase from "firebase/app" (the _only_ named import) | |
// firebaseAppPromise is the promise that gets awaited immediately to prevent multi-call re-init | |
let firebaseApp, firebaseAppPromise; | |
export async function getFirebaseApp() { | |
if (!firebaseApp) { | |
if (!firebaseAppPromise) firebaseAppPromise = import(/*webpackPreload: true*/ "firebase/app"); | |
firebaseApp = await firebaseAppPromise; | |
} | |
return firebaseApp; | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
Cloning into 'my-awesome-proj'... | |
ssh: connect to host github.com port 22: Connection timed out | |
fatal: Could not read from remote repository. | |
$ # This should also timeout | |
$ ssh -T git@github.com | |
ssh: connect to host github.com port 22: Connection timed out | |
$ # but this might work |
This file contains 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
//#include <iostream> //only to debug cache | |
#include <map> | |
/** | |
* Functor that returns an estimate for the converged | |
* value of a series of numbers or higher order math | |
* objects like tensors or vectors. | |
* | |
* Wynn's epsilon method is used, and the intermediate | |
* epsilon results are cached in a two level map. A |
This file contains 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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install golang-go | |
go get github.com/livepeer/go-livepeer/cmd/livepeer | |
cd ~/go/src/github.com/livepeer/go-livepeer/ | |
go get ./... | |
sudo apt-get install autoconf | |
./install_ffmpeg.sh | |
export PKG_CONFIG_PATH=$HOME/compiled/lib/pkgconfig | |
go build ./cmd/livepeer/livepeer.go |
This file contains 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
#ifndef EXPECT_EXPECT_HPP_ | |
#define EXPECT_EXPECT_HPP_ | |
#include <iostream> | |
#include <stdexcept> | |
#include <string> | |
/** | |
* Expect test functor. | |
* See this struct's test file for a simple example. */ |