Skip to content

Instantly share code, notes, and snippets.

@robacc
robacc / force-oauth.py
Last active August 29, 2015 14:25
Another simple Python example with a real OAuth flow. This uses responses and the simple-salesforce lib
#!/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
@robacc
robacc / plot.R
Last active August 29, 2015 14:24 — forked from itskingori/plot.R
# 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=",")
@robacc
robacc / hypem.php
Last active August 29, 2015 14:23 — forked from tcz/hypem.php
<?php
if ($argc !== 2)
{
die("Usage: php {$argv[0]} hypem_user_name\n\n");
}
$user = $argv[1];
$page = 1;
$all_songs = array();