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
// 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 |
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
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 |
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
Sk.onAfterImport = function(library) { | |
switch(library) { | |
case 'pygal': | |
// make charts render instantly | |
Highcharts.setOptions({ | |
plotOptions: { | |
series: { | |
animation: false | |
} | |
} |