Skip to content

Instantly share code, notes, and snippets.

@matthewmorrone
Created December 6, 2014 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewmorrone/e29281299e45220ff58f to your computer and use it in GitHub Desktop.
Save matthewmorrone/e29281299e45220ff58f to your computer and use it in GitHub Desktop.
don't judge me
$.file_get_contents = function (addr, split) {
return $.ajax({
url: addr,
async: false
}).responseText;
}
$.file = function(addr) {
return $.file_get_contents(addr).split("\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment