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
//copied from https://github.com/googlesamples/android-UniversalMusicPlayer | |
//modified by xTools | |
/** | |
* Shows the Cast First Time User experience to the user (an overlay that explains what is | |
* the Cast icon) | |
*/ | |
//call this if device was detected | |
private void showFtu(int menuItemId) { |
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
//copied from https://github.com/googlecast/CastCompanionLibrary-android | |
/* | |
* Copyright (C) 2015 Google Inc. All Rights Reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
package at.xtools.httpswebviewexample; | |
import android.annotation.TargetApi; | |
import android.os.Build; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.webkit.WebResourceRequest; | |
import android.webkit.WebResourceResponse; | |
import android.webkit.WebView; | |
import android.webkit.WebViewClient; |
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
const express = require('express'); | |
const axios = require('axios'); | |
const bodyParser = require('body-parser'); | |
// create our app | |
var app = express(); | |
const PORT = process.env.PORT || 3000; | |
// body parser for json requests | |
app.use(bodyParser.json()); |
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
const Web3 = require('web3'); // [email protected] | |
const startBlock = 901990; | |
const rpcMaxBlocksServer = 1000; | |
const rpcUrl = 'https://pangolin-rpc.darwinia.network'; | |
const waitBatchRpcCalls = 60; // ms | |
// contract adresses and abis | |
const contracts = [ | |
{ |
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
const Web3 = require('web3'); // [email protected] | |
const startBlock = 20784230; | |
const rpcMaxBlocksServer = 100 * 1000; | |
const rpcUrl = 'https://speedy-nodes-nyc.moralis.io/[YOUR_MORALIS_TOKEN]/polygon/mumbai'; | |
const waitBatchRpcCalls = 250; // ms | |
// contract adresses and abis | |
const contracts = [ | |
{ |
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
// Google Analytics helper for Next.js | |
const ReactGA = require('react-ga'); | |
module.exports = { | |
initGA: () => { | |
ReactGA.initialize('UA-XXXXXXX-NN'); | |
}, | |
logPageView: () => { | |
const page = window.location.pathname + window.location.search; |
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
# Run "Mnemonic Shamir Secret Sharing Tool" in Docker | |
# More info: https://github.com/ava-labs/mnemonic-shamir-secret-sharing-cli | |
##### How to use: | |
# - start docker daemon | |
# - `cd` to this directory, then: | |
### build image once | |
# docker build -t msss . |