Skip to content

Instantly share code, notes, and snippets.

Anthony Vella anthonyvella

Block or report user

Report or block anthonyvella

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Example.js
// NOTE: First make sure you have jquery included by placing this at the bottom of your .html file, before the </body> and </html> tags
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
// The full url path with a difficulty of "easy"
url = "https://it3049c-hangman.now.sh?difficulty=easy";
// Performs the ajax request using the GET method with a parameter in the provided url. An object is returned after using the "word"
// key to get its value
// @param url The url of the address
function getWord(url) {
@anthonyvella
anthonyvella / API Module
Created Jun 22, 2017
JSON Optimization for Parsing Vainglory Telemetry Data
View API Module
' Parses a JSON response and returns an Object
Public Function ParseJSON(data As String) As Object
' First split the string at the "PlayerFirstSpawn" action
Dim splitArray() As String
splitArray() = Split(data, "PlayerFirstSpawn")
' Get the position of the { character which would have been on the line of "PlayerFirstSpawn"
Dim splitTail As String
splitTail = InStrRev(splitArray(0), "{ ")
View Reflection.java
for(Throwable t : e) {
System.out.println("Throwable: " + t);
Throwable cause = t.getCause();
while (cause != null) {
System.out.println("Cause: " + cause);
cause = cause.getCause();
}
}
View setuperr
2015-07-09 14:13:19, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-09 14:13:22, Error CallPidGenX: PidGenX function failed on this product key. (hr = 0x8a010001)
2015-07-09 14:13:36, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-09 14:13:36, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-09 14:13:38, Error CDiagnosticsHelper::SetDeferredSQMDatapoint: Attempting to set a deferred SQM datapoint in an invalid SQM session[gle=0x000000b7]
2015-07-09 14:13:38, Error CDiagnosticsHelper::SetDeferredSQMDatapoint: Attempting to set a deferred SQM datapoint in an invalid SQM session[gle=0x000000b7]
2015-07-09 14:13:41, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a da
View gist:e147dfd1df9bf6923637
2015-07-08 17:37:07, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-08 17:37:11, Error CallPidGenX: PidGenX function failed on this product key. (hr = 0x8a010001)
2015-07-08 17:37:38, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-08 17:37:38, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a datapoint in an invalid SQM session
2015-07-08 17:37:40, Error CDiagnosticsHelper::SetDeferredSQMDatapoint: Attempting to set a deferred SQM datapoint in an invalid SQM session[gle=0x000000b7]
2015-07-08 17:37:40, Error CDiagnosticsHelper::SetDeferredSQMDatapoint: Attempting to set a deferred SQM datapoint in an invalid SQM session[gle=0x000000b7]
2015-07-08 17:37:44, Error CDiagnosticsHelper::SetSQMDatapoint: Attempting to set a da
View gist:6927604
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Anthony
*/
public class BankAccountDriver {
View gist:6148729
2013-08-03 21:49:25.636 Runway Management System[3482:c07] response: [Array
(
[file] => Array
(
[name] => nMjas8cmdRz8USe1js1Y.jpeg
[type] => image/jpeg
[tmp_name] => /Applications/XAMPP/xamppfiles/temp/phpQ2bf8A
[error] => 0
[size] => 20471
)
View gist:6148605
2013-08-03 21:01:58.016 Runway Management System[3113:c07] response: [Array
(
[oatmeal] => Array
(
[name] => oatmeal.jpeg
[type] => image/jpeg
[tmp_name] => /Applications/XAMPP/xamppfiles/temp/phpAUzBVC
[error] => 0
[size] => 17264
)
View gist:6148596
2013-08-03 20:55:09.985 Runway Management System[3084:c07] response: [Array
(
[oatmeal] => Array
(
[name] => oatmeal.jpeg
[type] => image/jpeg
[tmp_name] => /Applications/XAMPP/xamppfiles/temp/phpxwvK4W
[error] => 0
[size] => 17264
)
View gist:6148538
2013-08-03 20:30:49.932 Runway Management System[2938:c07] response: [<br />
<b>Fatal error</b>: Call to undefined function sendResponse() in <b>/Applications/XAMPP/xamppfiles/htdocs/RMS/api.php</b> on line <b>70</b><br />
]
You can’t perform that action at this time.