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
set MVN_ARGS="-Dshell-executable=C:\Git\bin\bash.exe -Dhttps.protocols=TLSv1.2 -Pnative-win -Drequire.openssl -Dopenssl.prefix=C:\vcpkg\installed\x64-windows -Dcmake.prefix.path=C:\vcpkg\installed\x64-windows -Dwindows.cmake.toolchain.file=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -Dwindows.cmake.build.type=RelWithDebInfo -Dwindows.build.hdfspp.dll=off -Duse.platformToolsetVersion=v142 -Dwindows.no.sasl=on -DskipTests -DskipDocs -Drequire.test.libhadoop" | |
C:\Git\bin\bash.exe C:\h\dev-support\bin\create-release --mvnargs=%MVN_ARGS% |
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
#include <tuple> | |
#include <utility> | |
#include <vector> | |
#include <iostream> | |
#include <limits> | |
#include <cassert> | |
#include <ios> | |
namespace uva10086 | |
{ |
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
#include <vector> | |
#include <algorithm> | |
#include <iostream> | |
class CostEstimator | |
{ | |
public: | |
explicit CostEstimator(const std::vector<int> &numbers) :numbers_(numbers) {} | |
int Estimate() const; |
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 main | |
import ( | |
"net/http" | |
"fmt" | |
"time" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
fmt.Printf("Request at %v\n", time.Now()) |
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
function OnUpdate(doc, meta) { | |
var bucket = '`beer-sample`', | |
city = 'Bangalore'; | |
var res = new N1qlQuery(`SELECT * FROM system:bucket WHERE city == "city"`); | |
} | |
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 main | |
import ( | |
"fmt" | |
"github.com/couchbase/gocb" | |
) | |
func lookupDoc(clusterAddress, bucketName, docId string) (exists bool, err error) { | |
exists = false | |
cluster, err := gocb.Connect(clusterAddress) |
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
void Bucket::BucketSet<v8::Local<v8::Name>>( | |
const v8::Local<v8::Name> &name, const v8::Local<v8::Value> &value_obj, | |
const v8::PropertyCallbackInfo<v8::Value> &info) { | |
auto isolate = info.GetIsolate(); | |
if (name->IsSymbol()) { | |
auto js_exception = UnwrapData(isolate)->js_exception; | |
js_exception->Throw("Symbol data type is not supported"); | |
++bucket_op_exception_count; | |
return; | |
} |
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
function OnUpdate(doc, meta) { | |
var abv = 2, | |
count = 0, | |
lim = 10; | |
var q = SELECT * FROM `beer-sample` | |
WHERE abv >: abv LIMIT: lim; | |
for (var row of q) { | |
var id = meta.id + (++count); | |
sample[id] = row; | |
} |
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
// | |
// main.cpp | |
// auth-change | |
// | |
// Created by Gautham Banasandra on 07/12/17. | |
// Copyright © 2017 Couchbase. All rights reserved. | |
// | |
#include <chrono> | |
#include <fstream> |
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
// | |
// pos_param.cpp | |
// libcb | |
// | |
// Created by Gautham Banasandra on 04/10/17. | |
// Copyright © 2017 Couchbase. All rights reserved. | |
// | |
#include <iostream> | |
#include <string> |
NewerOlder