Skip to content

Commit

Permalink
Change package.json and remove extraneous console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
lieuzhenghong committed Aug 14, 2017
1 parent b7a4545 commit 5747810
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 7 deletions.
Binary file added dist/assets/Sample_Floorplan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "inspectors-gadget",
"version": "0.2.0",
"description": "A report generation tool for civil engineers",
"version": "0.3.1",
"description": "A report generation tool for building inspectors",
"main": "main.js",
"dependencies": {
"css-loader": "^0.28.4",
Expand Down
27 changes: 27 additions & 0 deletions math.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
let math = {
// reshape :: (Matrix, Array) -> Matrix
reshape: (m, dim) => {
let n = [];
for (let y = 0; y < (dim[0]); y++) {
let row = [];
for (let x = 0; x < (dim[1]); x++) {
row.push(m[y*x]);
}
n.push(row)
}
return n
},
// Takes the inverse of a matrix
// Matrix -> Matrix
inv: (m) => {
return m
},
// Concatenates a matrix with a vector
// If a square vector is concatenated with a vector, it will default
// to (n+1 x n) rather than (n x n+1)
// (Matrix, Vector) -> Matrix
concat: (m, dim) => {
return n
}
}

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "inspectors-gadget",
"version": "0.2.0",
"description": "A report generation tool for civil engineers",
"version": "0.3.1",
"description": "A report generation tool for building inspectors",
"main": "index.js",
"dependencies": {
"css-loader": "^0.28.4",
Expand Down
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ let vue = new Vue({
update_saves: function() {
// returns a promise, doesn't work
get_instance_names().then(instance_names => {
console.log(instance_names);
this.saves = instance_names
});
},
Expand Down Expand Up @@ -169,7 +168,6 @@ let vue = new Vue({
const instances_db = localforage.createInstance({
name: 'instances'
});
console.log('clear_dbs called');
instances_db.getItem('instances').then((instances) => {
if (instances !== null) {
for (let instance_name in instances) {
Expand All @@ -192,7 +190,6 @@ let vue = new Vue({
Promise.all([p1, p2, p3, p4, p5]).then(() => this.update_saves());
},
load_data: function (db_name) {
console.log('called');
let db = get_instance(db_name);

db.getItem('building').then((value) => {
Expand Down

0 comments on commit 5747810

Please sign in to comment.