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
function NFetch(url, request, callBack) {}; // Makes async HTTP request and returns the response in the following update frame. | |
class Headers { | |
// This is essentially a list of keys that have a bunch of functions to act on them. The JS functions below act upon a list of headers. | |
// When you are ready to make the call with CURL, you're going to iterate over this JS list and append them with: | |
// headers = curl_slist_append(headers, "Content-Type: text/xml"); <-- Inserting data as below | |
// | |
// i.e. | |
// struct curl_slist *headers=NULL; |
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
function HTTPCall(HTTPRequest); // Makes async HTTP request and returns the response in the following update frame. | |
class HTTPRequest { | |
constructor(url, onComplete) { | |
this.url = url; // URL to get data from | |
this.onComplete = onComplete; // The function that will be called the next update cycle after the request has completed. | |
this.method = "GET"; // "GET", "POST", "PUT", "DELETE" | |
this.payload = ""; // Payload when using POST or PUT | |
this.timeout = 5; // Number of seconds to wait for a response. default = 5 seconds |
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
# OS X Fuse uninstallation script | |
# Paste in terminal to uninstall Fuse and Fuse plugin for Sublime Text 3 | |
sudo rm -rf \ | |
/Applications/Fuse.app \ | |
/usr/local/bin/fuse \ | |
/usr/local/bin/uno \ | |
/usr/local/bin/unotest \ | |
/usr/local/share/Uno \ | |
"$HOME/.fuse" \ |