# By default we use the Node.js version set in your package.json or the latest
# version from the 0.10 release
#
# You can use nvm to install any Node.js (or io.js) version you require.
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
| for message in result.data.messages { | |
| let json = JSON(message) | |
| var date : NSDate! | |
| if let messageDate = json["timetoken"].number { | |
| let dateAsInt = messageDate as NSInteger! | |
| let unixTime = dateAsInt / 10000000 | |
| date = NSDate(timeIntervalSince1970: NSTimeInterval(unixTime)) | |
| } | |
| println("my date \(date)") | |
| } |
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
| # Create your superuser | |
| $ mongo | |
| > use admin | |
| > db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) | |
| > exit | |
| # Alias for convenience (optional and at your own risk) | |
| $ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile | |
| $ source ~/.bash_profile |
A step-by-step guide to setting up a Windows PC for building VRChat worlds and avatars.
OlderNewer