Skip to content

Instantly share code, notes, and snippets.

@marioflores
marioflores / new_gist_file
Created July 8, 2013 17:37
View local Mac mail
mail
To delete mail - ex. delete 1-12
Quit - q
@marioflores
marioflores / new_gist_file
Created July 5, 2013 20:30
Diff Directories
diff -rq folder-1 folder-2
@marioflores
marioflores / new_gist_file
Created July 5, 2013 20:29
Diff two files
diff file1 file2
@marioflores
marioflores / new_gist_file
Created June 28, 2013 00:57
Example onclick jQuery
$("#slideToggle").click(function () {
$('#slideTogglebox').slideToggle();
});
@marioflores
marioflores / new_gist_file
Created June 28, 2013 00:56
Empty jQuery Function
$(function() {
//enter items here
});
@marioflores
marioflores / jQuery-sample-ajax
Created June 13, 2013 02:29
Sample ajax call with jQuery
$.ajax({
url: "ajax.txt",
cache: false,
success: function(html){
console.log(html);
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert("Status: " + textStatus); alert("Error: " + errorThrown);
}
});