Skip to content

Instantly share code, notes, and snippets.

@charleshimmer
charleshimmer / BVDoneLoading.js
Last active April 21, 2021 02:36
When is BV done loading / deferred object.
var bvrr = $BV.ui('rr', 'show_reviews',{
productId : 'product1' }
);
bvrr.done(function(){
console.log('reviews loaded');
});
var bvqa = $BV.ui('qa', 'show_questions',{
productId : 'product1' }
@charleshimmer
charleshimmer / doLogin.html
Last active December 19, 2015 13:19
Using doLogin
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<script src="//display-stg.ugc.bazaarvoice.com/static/targetcom/bvapi.js"></script>
<script>
package main
import (
"bufio"
"fmt"
"io"
"log"
"os"
"path/filepath"
"strconv"
@charleshimmer
charleshimmer / .json
Created July 25, 2019 18:13
PolicyJson.json
[{
"id": 1,
"name": "eco-centric",
"type": "Crimson",
"amount": 762
}, {
"id": 2,
"name": "concept",
"type": "Indigo",
"amount": 727