Skip to content

Instantly share code, notes, and snippets.

@jtabone16
jtabone16 / keybase.md
Created September 11, 2019 18:21
keybase id

Keybase proof

I hereby claim:

  • I am jtabone16 on github.
  • I am tabone (https://keybase.io/tabone) on keybase.
  • I have a public key ASACTKjQn7A2DZx3ve4rR9mftLcsiGbxuGB3vvOILKiTJwo

To claim this, I am signing this object:

@jtabone16
jtabone16 / REST via Apache HTTP Components.java
Created June 23, 2013 00:08
Updated RestRequest client using Apache HttpComponents
package com.proctorcam.proctorserv;
//Standard Java lib
import java.util.*;
import java.io.UnsupportedEncodingException;
import java.io.IOException;
//Apache libs for HTTP POST/GET
import org.apache.http.client.*;
import org.apache.http.client.methods.*;
@jtabone16
jtabone16 / Opens README.md in iA Writer
Created June 23, 2013 00:05
Opens README.md in iA Writer
alias readme='open -a "/Applications/iAWriter.app" README.md'
@jtabone16
jtabone16 / Search Google and Stack Overflow via bash
Created June 23, 2013 00:04
Search Google and Stack Overflow via bash
google() {
gq=$(sed 's/ /+/g' <<<"$*")
open -a /Applications/Google\ Chrome.app "http://www.google.com/search?q=$gq";
}
oflow(){
gq=$(sed 's/ /+/g' <<<"$*")
open -a /Applications/Google\ Chrome.app "http://www.stackoverflow.com/search?q=$gq";
}
@jtabone16
jtabone16 / D'oh!
Created June 23, 2013 00:01
D'oh!
alias doh='say Leo, I have made a huge mistake'
@jtabone16
jtabone16 / REST Assured GET & POST
Last active May 2, 2018 12:03
Use of REST Assured to make GET and POST requests from ProctorCam's scheduling API (Java) to ProctorServ
public class RestRequestClient
{
public RestRequestClient()
{
}
public Response makeGetRequest(String url, String customer_identifier, String shared_secret, HashMap<String,Object> params)
{