Skip to content

Instantly share code, notes, and snippets.

View fadrizul's full-sized avatar

Fadrizul Hasani fadrizul

View GitHub Profile
var url = server + '/customers/activate';
var activateJSON = { id:"0192268455",activationCode:"6450" };
$.ajax({
url: server + '/customers/activate',
type: 'POST',
async: true,
data: activateJSON,
contentType: "application/json",
dataType: 'json',
xhrFields: {
@fadrizul
fadrizul / setup
Created August 7, 2011 22:26
Did a little fix on 'npm install by version' command, and added a check on 'package.json' path
#!/usr/bin/env node
// Make sure working folder is the same as this file
process.chdir(__dirname);
// Check node_modules folder
var fs = require('fs');
var modules = [];
//var base = process.env.HOME + '/node_modules';
var base = __dirname + '/node_modules';