Tutorial on how to create a development mongodb cluster. Based on: https://docs.mongodb.com/manual/tutorial/deploy-replica-set-for-testing/
mongod --config d:\data\mongodb\mongod-cluster1.cfg
# $deployCredentials = d3-CreateCredential | |
# d3-AzureMsDeployWebSite -deployCredentials $deployCredentials -siteName "webplu-test-distribution" -packageDeployCmd "./Deltatre.Forge.DistributionApi.deploy.cmd" | |
Function d3-AzureMsDeployWebSite | |
{ | |
param( | |
[Parameter(Mandatory = $true)] | |
[PSCredential]$deployCredentials, | |
[Parameter(Mandatory = $true)] |
// usage: | |
// <di-three-js-viewer three-js-object="device3DModel"></di-three-js-viewer> | |
app.directive('diThreeJsViewer', [function() { | |
function createThreeJsCanvas(parentElement, object) { | |
var width = 400; | |
var height = 400; | |
var scene = new THREE.Scene(); |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace AsyncThrottledSetSample | |
{ | |
class Program | |
{ |
invoke-webrequest http://www.lastampa.it/ -DisableKeepAlive -UseBasicParsing | Select -ExpandProperty "StatusCode" |
'use latest'; | |
import express from 'express'; | |
import { fromExpress } from 'webtask-tools'; | |
import bodyParser from 'body-parser'; | |
import request from 'request'; | |
import cheerio from 'cheerio'; | |
import escapeHtml from 'escape-html'; | |
const app = express(); |
var Q = require("q"); | |
//var mongoClient = require("mongodb").MongoClient; | |
//var ObjectID = require("mongodb").ObjectID; | |
//var schema = require('validate'); | |
function SmartCollection (mongoDb, collectionName, schema, indexes) { | |
this._mongoDb = mongoDb; | |
this._collectionName = collectionName; | |
this._collection = mongoDb.collection(collectionName); |
const express = require("express"); | |
const app = express(); | |
app.all("/*", (req, res) => { | |
console.log(`${req.method} ${req.originalUrl}`); | |
for (const h in req.headers) { | |
console.log(`\t ${h}:${req.headers[h]}`); | |
} |
Tutorial on how to create a development mongodb cluster. Based on: https://docs.mongodb.com/manual/tutorial/deploy-replica-set-for-testing/
mongod --config d:\data\mongodb\mongod-cluster1.cfg
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
In this example we create an Akka Sink that write message to HBase.
Official documentation: https://developer.lightbend.com/docs/alpakka/current/hbase.html
Add the following dependencies:
"com.lightbend.akka" %% "akka-stream-alpakka-hbase" % "0.19"