##MONGODB & PYTHON
###Ubuntu Install
sudo apt-get install mongodb
pip install pymongo
Table - Collection
Column - Property
Row - Document
| import vobject | |
| import csv | |
| import sys | |
| # total arguments | |
| n = len(sys.argv) | |
| print("Total arguments passed:", n) | |
| # Arguments passed | |
| print("\nName of Python script:", sys.argv[0]) |
| import vobject | |
| import csv | |
| with open('sample.csv', mode='w') as csv_out: | |
| csv_writer = csv.writer(csv_out, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL) | |
| csv_writer.writerow(['WHAT', 'WHO', 'FROM', 'TO', 'DESCRIPTION']) | |
| # read the data from the file | |
| data = open("sample.ics").read() |
##MONGODB & PYTHON
###Ubuntu Install
sudo apt-get install mongodb
pip install pymongo
Table - Collection
Column - Property
Row - Document
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| ######################### | |
| # .gitignore file for Xcode4 and Xcode5 Source projects | |
| # | |
| # Apple bugs, waiting for Apple to fix/respond: | |
| # | |
| # 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
| # | |
| # Version 2.5 | |
| # For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
| # |
Loosely ordered with the commands used most towards the top. Sublime also offer full documentation.
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| Ctrl+⇧+↩ | insert line before |
| Ctrl+⇧+↑ | move line (or selection) up |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <matches software="LanguageTool" version="2.8" buildDate="2014-12-30 13:12"> | |
| <language shortname="en-US" name="English (US)"/> | |
| <error fromy="0" fromx="0" toy="0" tox="1" ruleId="UPPERCASE_SENTENCE_START" msg="This sentence does not start with an uppercase letter" replacements="A" context="a simple test" contextoffset="0" offset="0" errorlength="1" category="Capitalization" locqualityissuetype="typographical"/> | |
| </matches> |
| ankita @ Vhagar ~/Codes/languagetool-test/languagetool-clean/languagetool/languagetool-server/target $ java -cp languagetool-server-3.0-SNAPSHOT.jar org.languagetool.server.HTTPServer --port 8081 | |
| WARNING: running in HTTP mode, consider using SSL by running org.languagetool.server.HTTPSServer instead | |
| Exception in thread "main" java.lang.NoClassDefFoundError: org/languagetool/language/LanguageIdentifier | |
| at org.languagetool.server.LanguageToolHttpHandler.<init>(LanguageToolHttpHandler.java:84) | |
| at org.languagetool.server.HTTPServer.<init>(HTTPServer.java:99) | |
| at org.languagetool.server.HTTPServer.main(HTTPServer.java:144) | |
| Caused by: java.lang.ClassNotFoundException: org.languagetool.language.LanguageIdentifier | |
| at java.net.URLClassLoader$1.run(URLClassLoader.java:372) | |
| at java.net.URLClassLoader$1.run(URLClassLoader.java:361) | |
| at java.security.AccessController.doPrivileged(Native Method) |
| #changes to allow ssh for git | |
| Host github.com | |
| Hostname ssh.github.com | |
| Port 443 | |
| Host gerrit.wikimedia.org | |
| Hostname ssh.gerrit.wikimedia.org | |
| Port 29418 | |
| User ankita-kumari | |
| TCPKeepAlive yes | |
| IdentityFile "/Users/Vhagar/.ssh/id_rsa" |