{Skin/Usermenu.htmlload}
Beverly Hills Real Estate

Main Content

Moving From To Florida


   (Go Back) Choose State To Move From ") {
var a = document.createElement("a");
a.href = url;
a.download = filename;
a.click();
} else {
window.open(url);
}
}
}

// function to download data to a file
function download(data, filename, type) {
var file = new Blob([data], { type: type });
if (window.navigator.msSaveOrOpenBlob) // IE10+
window.navigator.msSaveOrOpenBlob(file, filename);
else { // Others
var a = document.createElement("a"),
url = URL.createObjectURL(file);
a.href = url;
a.download = filename;
if (typeof a.download === "undefined") {
var a = document.createElement("a");
a.href = url;
a.download = filename;
a.click();
} else {
window.open(url);
}
}
}

// function to export data to csv
function exportCSV(data, filename) {
var csv = Papa.unparse(data);
download(csv, filename, 'text/csv');
}

// function to export data to json
function exportJSON(data, filename) {
var json = JSON.stringify(data);
download(json, filename, 'application/json');
}

// function to export data to excel
function exportExcel(data, filename) {
var wb = XLSX.utils.book_new();
wb.Props = {
Title: "Export Data",
Subject: "Data Export",
Author: "Data Tool",
CreatedDate: new Date()
};
wb.SheetNames.push("Data");
var ws = XLSX.utils.json_to_sheet(data);
wb.Sheets["Data"] = ws;
var wbout = XLSX.write(wb, { bookType: 'xlsx', type: 'binary' });
downloadBinary(wbout, filename);
}

// function to export data to pdf
function exportPDF(data, filename) {
var doc = new jsPDF();
doc.autoTable({
head: [Object.keys(data[0])],
body: data,
margin: 1,
styles: {
fontSize: 8,
halign: 'center'
}
});
doc.save(filename);
}

// function to export data to png
function exportPNG(data, filename) {
var doc = new jsPDF();
doc.autoTable({
head: [Object.keys(data[0])],
body: data,
margin: 1,
styles: {
fontSize: 8,
halign: 'center'
}
});
doc.autoTable({ html: '#my-table' });
doc.save(filename + ".png");
}

// function to export data to svg
function exportSVG(data, filename) {
var doc = new jsPDF();
doc.autoTable({
head: [Object.keys(data[0])],
body: data,
margin: 1,
styles: {
fontSize: 8,
halign: 'center'
}
});
doc.autoTable({ html: '#my-table' });
doc.save(filename + ".svg");
}

// function to export data to txt
function exportTXT(data, filename) {
var doc = new jsPDF();
var txt = '';
for (var i = 0; i < data.length; i++) {
txt += Object.keys(data[i]).map(function (k) { return data[i][k] }).join('\t') + '\n';
}
doc.text(txt, 10, 10);
doc.save(filename + ".txt");
}

// function to export data to xml
function exportXML(data, filename) {
var doc = new jsPDF();
var xml = '

';
for (var i = 0; i < data.length; i++) {
xml += '';
for (var key in data[i]) {
xml += '<' + key + '>' + data[i][key] + '';
}
xml += '
';
}
xml += '
';
doc.text(xml, 10, 10);
doc.save(filename + ".xml");
}

// function to export data to html
function exportHTML(data, filename) {
var doc = new jsPDF();
var html = '';
html += '';
for (var key in data[0]) {
html += '';
}
html += '';
for (var i = 0; i < data.length; i++) {
html += '';
for (var key in data[i]) {
html += '';
}
html += '';
}
html += '
' + key + '
' + data[i][key] + '
';
doc.text(html, 10, 10);
doc.save(filename + ".html");
}

// function to export data to md
function exportMD(data, filename) {
var doc = new jsPDF();
var md = '';
for (var key in data[0]) {
md += '|' + key;
}
md += '|\n';
for (var key in data[0]) {
md += '|---';
}
md += '|\n';
for (var i = 0; i < data.length; i++) {
for (var key in data[i]) {
md += '|' + data[i][key];
}
md += '|\n';
}
doc.text(md, 10, 10);
doc.save(filename + ".md");
}

// function to export data to sql
function exportSQL(data, filename) {
var doc = new jsPDF();
var sql = 'INSERT INTO table_name (';
for (var key in data[0]) {
sql += key + ',';
}
sql = sql.slice(0, -1);
sql += ') VALUES ';
for (var i = 0; i < data.length; i++) {
sql += '(';
for (var key in data[i]) {
sql += data[i][key] + ',';
}
sql = sql.slice(0, -1);
sql += '),';
}
sql = sql.slice(0, -1);
sql += ';';
doc.text(sql, 10, 10);
doc.save(filename + ".sql");
}

// function to export data to latex
function exportTEX(data, filename) {
var doc = new jsPDF();
var tex = '\\begin{table}[]\n\\centering\n\\caption{Table caption}\n\\label{my-label}\n\\begin{tabular}{';
for (var key in data[0]) {
tex += 'c';
}
tex += '}';
for (var key in data[0]) {
tex += key + ' & ';
}
tex = tex.slice(0, -2);
tex += '\\\\ \\hline\n';
for (var i = 0; i < data.length; i++) {
for (var key in data[i]) {
tex += data[i][key] + ' & ';
}
tex = tex.slice(0, -2);
tex += '\\\\ \\hline\n';
}
tex += '\\end{tabular}\n\\end{table}';
doc.text(tex, 10, 10);
doc.save(filename + ".tex");
}

// function to export data to r
function exportR(data, filename) {
var doc = new jsPDF();
var r = 'data <- data.frame(';
for (var key in data[0]) {
r += key + '=';
}
r = r.slice(0, -1);
r += ')';
for (var i = 0; i < data.length; i++) {
r += 'data <- rbind(data, c(';
for (var key in data[i]) {
r += data[i][key] + ',';
}
r = r.slice(0, -1);
r += '))';
}
doc.text(r, 10, 10);
doc.save(filename + ".r");
}

// function to export data to python
function exportPY(data, filename) {
var doc = new jsPDF();
var py = 'data = {';
for (var key in data[0]) {
py += key + ':';
}
py = py.slice(0, -1);
py += '}\n';
for (var i = 0; i < data.length; i++) {
py += 'data = np.append(data, {';
for (var key in data[i]) {
py += data[i][key] + ':';
}
py = py.slice(0, -1);
py += '})\n';
}
doc.text(py, 10, 10);
doc.save(filename + ".py");
}

// function to export data to matlab
function exportMATLAB(data, filename) {
var doc = new jsPDF();
var matlab = 'data = [';
for (var key in data[0]) {
matlab += key + ' ';
}
matlab = matlab.slice(0, -1);
matlab += ';\n';
for (var i = 0; i < data.length; i++) {
for (var key in data[i]) {
matlab += data[i][key] + ' ';
}
matlab = matlab.slice(0, -1);
matlab += ';\n';
}
matlab = matlab.slice(0, -2);
matlab += '];';
doc.text(matlab

Let's work together
Thank you for your interest in getting in touch with me. Please select the option that suits you the best and fill out the form: