Skip to content

Instantly share code, notes, and snippets.

View dschowta's full-sized avatar

Shreekantha Devasya dschowta

  • SumUp
  • Bonn
View GitHub Profile
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 33 modules...
[INFO] Not installing Nexus Staging features:
[INFO] * Preexisting staging related goal bindings found in 33 modules.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] nd4j
[INFO] nd4j-shade
[INFO] jackson
@dschowta
dschowta / armv7-r-nd4j.properties
Last active November 9, 2016 13:56
mvn clean install -X -DskipTests -Dmaven.javadoc.skip=true -pl '!:nd4j-cuda-8.0,!:nd4j-cuda-8.0-platform,!:nd4j-tests'
platform=armv7-r
platform.path.separator=:
platform.source.suffix=.cpp
platform.root=/home/almanac/raspberrypi/rootfs
platform.sysroot.prefix=--sysroot=
platform.sysroot=platforms/android-14/arch-arm/
platform.includepath.prefix=-I
platform.includepath=sources/cxx-stl/gnu-libstdc++/4.9/include/:sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include/
platform.compiler=/home/almanac/raspberrypi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
platform.compiler.cpp11=-std=c++11
@dschowta
dschowta / error_unwrap.go
Created May 23, 2020 06:47
experiment to show how erro unwrapping works in go:. Playground: https://play.golang.org/p/i0KKTRKfXOR
package main
import (
"errors"
"fmt"
)
func main() {
//Wrapping the errors
err1 := errors.New("first")
@dschowta
dschowta / protobuf_struct_converter.go
Created August 6, 2020 05:55
golang: grpc: interface or map type conversion to protobuf struct using protojson .
// Conversion of interface{} or map[string]interface{} types to protobuf struct ("google/protobuf/struct.proto").
package codec
import (
"encoding/json"
structpb "github.com/golang/protobuf/ptypes/struct"
"google.golang.org/protobuf/encoding/protojson"
)