This file contains hidden or 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
| #!/usr/bin/python | |
| import cgi | |
| import requests | |
| import json | |
| from simple_salesforce import Salesforce | |
| #login here: | |
| #https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=3MVG9A2kN3Bn17hsWsLDatw._IVMEUBoPKv.7ksp0tz7xLX4tWDVgyzwTCA7i_yTfP.qYuNOsSoPNcdVH6DuE&redirect_uri=http://localhost/cgi-bin/python/oauth.py |
This file contains hidden or 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
| # Set the working directory, not entirely necessary though | |
| setwd("/PATH/TO/WORKING/DIRECTORY/something") | |
| # import likert package | |
| require(likert) | |
| # Output to EPS | |
| postscript("result-plot.eps", onefile=FALSE, horizontal=FALSE, height=2.5) | |
| dataset <- read.table("plot-data.csv", header=TRUE, sep=",") |
This file contains hidden or 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
| <?php | |
| if ($argc !== 2) | |
| { | |
| die("Usage: php {$argv[0]} hypem_user_name\n\n"); | |
| } | |
| $user = $argv[1]; | |
| $page = 1; | |
| $all_songs = array(); |