In your command-line run the following commands:
brew doctorbrew update
| // array buffer to JSON | |
| const dataString JSON.stringify(Array.from(new Uint8Array(arrayBuffer))); | |
| // send around | |
| // JSON to ArrayBuffer | |
| new Uint8Array(JSON.parse(dataString)).buffer |
In your command-line run the following commands:
brew doctorbrew updateGenerally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.
Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.
$ git remote add staging https://git.heroku.com/staging-app.git
| var mongoose = require('mongoose'); | |
| var db = mongoose.createConnection('127.0.0.1', 'test'); | |
| // Make schema | |
| var schema = mongoose.Schema({ name: String }); | |
| // Create subscribers collection | |
| var subscribers = []; | |
| // Hook `save` post method |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |