.gitignore updated with editor temporaries (#1574)

diff --git a/.gitignore b/.gitignore
index de1bb17..017a676 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,16 @@
 */**/*.so*
 */**/*.dylib*
 test/data/legacy_serialized.pt
+
+# IPython notebook checkpoints
+.ipynb_checkpoints
+
+# Editor temporaries
+*.swn
+*.swo
+*.swp
+*~
+
+# OSX dir files
+.DS_Store
+