Skip to content

Instantly share code, notes, and snippets.

View javier-tarazaga's full-sized avatar

Javier Tarazaga javier-tarazaga

View GitHub Profile
const { SuperHDWalletProvider, ManualSignProvider } = require("super-web3-provider");
...
The rest of your configuration here
...
// IMPORTANT: We need to globally store these providers here due to the fact that Truffle decides to call
// the provider() function multiple times during a deployment, therefore we would be re-creating
// a deployment on every call.
let rinkebyMetamaskProvider;

Keybase proof

I hereby claim:

  • I am javier-tarazaga on github.
  • I am jatargo (https://keybase.io/jatargo) on keybase.
  • I have a public key ASA63QkJCmqKCGKz_xC1RjWc7YF5CHMOs2clopeuVhPcFwo

To claim this, I am signing this object:

@javier-tarazaga
javier-tarazaga / gist:77ca831de75aa5477754
Created May 12, 2015 07:58
Exoplayer Android TV Exception
05-09 18:44:40.270 3133-3133/com.sfanytime.debug D/BaseVideoPlayerController﹕ Constructing videoplayer controller
05-09 18:44:41.870 3133-3133/com.sfanytime.debug I/ExoPlayerImpl﹕ Init 1.1.0
05-09 18:44:41.873 3133-3133/com.sfanytime.debug D/EventLogger﹕ start [0]
05-09 18:44:41.873 3133-3133/com.sfanytime.debug D/EventLogger﹕ state [0.00, false, P]
05-09 18:44:41.914 3133-3133/com.sfanytime.debug W/InputEventReceiver﹕ Attempted to finish an input event but the input event receiver has already been disposed.
05-09 18:44:42.031 3133-3133/com.sfanytime.debug I/VideoCapabilities﹕ Unsupported profile 4 for video/mp4v-es
05-09 18:44:42.041 3133-3133/com.sfanytime.debug D/ExoPlayerImp﹕ TrackNames: [null, [audio_eng=45368 (-1ch, -1Hz), audio_eng=125368 (-1ch, -1Hz)], null, null, null]
05-09 18:44:42.042 3133-3133/com.sfanytime.debug D/EventLogger﹕ state [0.17, true, I]
05-09 18:44:42.046 3133-3133/com.sfanytime.debug D/EventLogger﹕ state [0.17, true, P]
05-09 18:44:42.059 3133-3133/com.
@javier-tarazaga
javier-tarazaga / gist:0c141ac7587afff00965
Created April 21, 2015 07:57
Adobe Successfully added to favourites
/**
* Track the action of a successful added to favourites user action.
*
* @param contentId - The content id of the item just added to favourites
*/
public void trackAddedToFavourites(String contentId) {
Preconditions.checkNotNull(contentId);
HashMap<String, Object> contextData = new HashMap<>();
contextData.put("video.id", contentId);