Skip to content

Instantly share code, notes, and snippets.

Avatar

Luca Capra muka

View GitHub Profile
@muka
muka / setup.sh
Created Jul 8, 2018
gocv / openvino setup
View setup.sh
. /data/opt/intel/computer_vision_sdk_2018.2.300/bin/setupvars.sh
. openvino/env.sh
CGO_LDFLAGS="$CGO_LDFLAGS -lopencv_calib3d"
LD_LIBRARY_PATH=/home/l/git/github.com/openvino-docker/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=/data/opt/intel/computer_vision_sdk_2018.2.300/deployment_tools/inference_engine/lib/ubuntu_16.04/intel64:$LD_LIBRARY_PATH
export CGO_LDFLAGS
export LD_LIBRARY_PATH
@muka
muka / ubuntu-termk.md
Created Jul 7, 2018
atom terminal with termrk
View ubuntu-termk.md

apm install termrk

To use ctrl+` to toggle

keymap.cson

'atom-workspace':
  'ctrl-\`': 'termrk:toggle'   
@muka
muka / tf_obj_tutorial.md
Created Mar 13, 2018 — forked from douglasrizzo/tf_obj_tutorial.md
TensorFlow Object Detection Model Training
View tf_obj_tutorial.md
@muka
muka / install-protoc.sh
Last active Mar 20, 2018
How to install protoc to use with grpc
View install-protoc.sh
#Get a release here https://github.com/google/protobuf/releases
sudo -s
cd /usr/local/include
mkdir google
wget https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip -O protoc.zip
unzip protoc.zip -d tmp
View example.md

Notice: as per node-red contrib guideline, the module has been renamed node-red-contrib-openfaas

Setup

  • Start OpenFaaS
  • Install node-red-admin sudo npm i -g node-red-admin
  • Start node-red docker run -it --rm -p 1880:1880 -v `pwd`:/shared --network host --name mynodered nodered/node-red-docker
  • Install openfaas module node-red-admin install node-red-contrib-openfaas
  • Done go to http://127.0.0.1:1880
View parse json coop tn.js
var items = []
var read = ()=> {
var clr = (s) => s.replace("\n", "").trim()
jQuery('.media-body').each((i, el) => {
var item = jQuery(el)
var url = clr(item.find('h4 a').attr('href').trim())
View extract coop tn.js
var items = []
var read = ()=> {
var clr = (s) => s.replace("\n", "").trim()
jQuery('.media-body').each((i, el) => {
var item = jQuery(el)
//console.log(item)