brew install mongodb
Set up launchctl to auto start mongod
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
/usr/local/opt/mongodb/ is a symlink to /usr/local/Cellar/mongodb/x.y.z (e.g., 2.4.9)
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| var AWS = require('aws-sdk'); | |
| AWS.config.update({region: 'us-east-1'}); | |
| var lexruntime = new AWS.LexRuntime(); | |
| var params = { | |
| botAlias: '$LATEST', /* required, has to be '$LATEST' */ | |
| botName: 'BOT', /* required, the name of you bot */ | |
| inputText: 'TEXT', /* required, your text */ | |
| userId: 'USER', /* required, arbitrary identifier */ |
This is a Hashicorp Terraform module that provisions an AWS EC2 instance
for the purpose of running a given docker-compose.yml file.
# ===== OUR MAGIC DOCKER-COMPOSE.YML FILE HERE =====
# It is also possible to get Terraform to read an external `docker-compose.yml`
# file and load it into this variable.
# We'll be showing off a demo nginx page.This is a Hashicorp Terraform module that provisions an AWS EC2 instance
for the purpose of running a given docker-compose.yml file.
# ===== OUR MAGIC DOCKER-COMPOSE.YML FILE HERE =====
# It is also possible to get Terraform to read an external `docker-compose.yml`
# file and load it into this variable.
# We'll be showing off a demo nginx page.NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
cat test.json | jq -c '.[]' > testNDJSON.json
| // just add pass server as your task function | |
| // Start a server with LiveReload to preview the site in | |
| const OUTPUT_PARENT = 'dist' | |
| const OUTPUT_DIRECTORY = OUTPUT_PARENT + '/browser-sync' | |
| function server(done) { | |
| browser.init({ | |
| server: { | |
| directory: true, |
| extension Array { | |
| subscript(circular index: Int) -> Element? { | |
| var i = index | |
| if i < 0 || isEmpty { | |
| return nil | |
| } else if i > count - 1 { | |
| i = index % count | |
| } | |
| return self[i] | |
| } |
| from algoliasearch import algoliasearch | |
| import pymongo | |
| from pymongo import MongoClient | |
| import json | |
| client = algoliasearch.Client("Your_Application_ID", 'Your_API_Key') | |
| index = client.init_index('Experiment_1') | |
| MONGODB_URL1 = 'Your_MongoDB_Connection_String' | |
| def move_collection(from_collection): |