Skip to content

Instantly share code, notes, and snippets.

// Review the following code as if you were providing a code-review for a teammate
package main
import (
"fmt"
"log"
"net/http"
"github.com/uservoice/rest" // assume that this is a http request/response framework
"github.com/uservoice/db" // assume that this is a MySQL connection
@bzwheeler
bzwheeler / ImportNPS.rb
Last active October 18, 2018 17:07 — forked from carterjackson/ImportNPS.rb
UserVoice API NPS Import Tutorial
require 'net/http'
require 'net/https'
require 'json'
# Change 'feedback' to the name of your UserVoice subdomain (leaving the quotes)
subdomain = "feedback"
# Change "xxxe8ae9c6a3c039" to the bearer token you received in step 1 (leaving the quotes)
token = "48403e04fdbbee26"
# Put your data into a json object with fields matching this example
@bzwheeler
bzwheeler / gist:8a5a833ee2a6a7d2c7ba
Created June 23, 2014 14:56
Skulpt onAfterImport configuration option
Sk.onAfterImport = function(library) {
switch(library) {
case 'pygal':
// make charts render instantly
Highcharts.setOptions({
plotOptions: {
series: {
animation: false
}
}