Skip to content

Instantly share code, notes, and snippets.

@samgooi4189
samgooi4189 / hg-commands.md
Last active July 24, 2018 16:14 — forked from cortesben/hg-commands.md
Mercurial command cheat sheet

Mercurial Commands

Commands Description
hg pull get latest changes like git pull use flags like -u IDK why yet
hg add only for new files
hg commit add changes to commit with -m for message just like git
hg addremove adds new files and removes file not in your file system
hg incoming see changes commited by others
hg outgoing see local commits
@samgooi4189
samgooi4189 / photo.js
Created November 23, 2013 17:20 — forked from bradorego/photo.js
function sendAJAX(url, method, callback, data, headers) {
var xhReq = new XMLHttpRequest();
if (method !== "POST" && method !== "GET" && method !== "PUT" && method !== "DELETE") {
return false;
}
xhReq.open(method, url);
if (typeof(headers) != "undefined") {
for (var i = 0; i < headers.headers.length; i++) {
xhReq.setRequestHeader(headers.headers[i].type, headers.headers[i].value);
}