This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package groovydatabase | |
| import com.mongodb.BasicDBObjectBuilder | |
| import com.mongodb.DBCollection | |
| import java.security.MessageDigest | |
| class UserDocument { | |
| String userName | |
| String passwordHash | |
| Date dateCreated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.mongodb.* | |
| class CardshifterDB { | |
| def host, port, databaseName, collectionName | |
| CardshifterDB (host = "localhost", port = 27017, databaseName = "local", collectionName = null) { | |
| this.host = host | |
| this.port = port | |
| this.databaseName = databaseName | |
| this.collectionName = collectionName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Grapes( | |
| @Grab(group='org.mongodb', module='mongo-java-driver', version='3.0.3') | |
| ) | |
| import org.hibernate.* | |
| import com.mongodb.* | |
| MongoClient mongoClient = new MongoClient("localhost", 27017) | |
| DB db = mongoClient.getDB("local"); | |
| DBCollection collection = db.getCollection("testCollection") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cardData": { | |
| "3": { | |
| "command": [ | |
| "card", | |
| "card" | |
| ], | |
| "id": 3, | |
| "properties": { | |
| "flavor": "Armed with a sharp sword.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pymongo | |
| phrancis = { | |
| "userName": "Phrancis", | |
| "firstName": "Francis", | |
| "lastName": "Gaboury", | |
| "roles": ["Game Designer", "Web Designer"], | |
| "countryOfOrigin": "Canada", | |
| "likes": ["spicy foods", "racing games", "databases"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/bin/python /Users/francisveilleux-gaboury/IdeaProjects/PythonSandbox/src/FindUrlsFromFilesInDirectory.py | |
| Url: https://commons.wikimedia.org/wiki/File:Jade_Emperor._Ming_Dynasty.jpg | |
| Attribution: By Anonymous [Public domain], <a href="https://commons.wikimedia.org/wiki/File%3AJade_Emperor._Ming_Dynasty.jpg">via Wikimedia Commons</a> | |
| Url: https://commons.wikimedia.org/wiki/File:Xiaoyuncong_nvwa.jpg | |
| Attribution: By Xiao Yuncong (蕭雲從), 1596-1673 [Public domain], <a href="https://commons.wikimedia.org/wiki/File%3AXiaoyuncong_nvwa.jpg">via Wikimedia Commons</a> | |
| Url: https://commons.wikimedia.org/wiki/File:Jade_Record_1.PNG | |
| Attribution: See page for author [Public domain], <a href="https://commons.wikimedia.org/wiki/File%3AJade_Record_1.PNG">via Wikimedia Commons</a> |
NewerOlder