Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#source: http://stackoverflow.com/questions/40128751/how-to-install-opencv-2-4-13-for-python-2-7-on-ubuntu-16-04 | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install build-essential -y | |
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev -y | |
sudo apt-get install python3-numpy python3-pip python3-scipy python3-matplotlib python-dev python-matplotlib python-numpy python-scipy -y | |
sudo apt-get install python-pip python-tk libqt4-dev libqt4-opengl-dev libeigen3-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev default-jdk ant -y |
This file contains 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
#for opencv version 2.4.9 | |
sudo apt-get install python-opencv | |
https://gist.github.com/arthurbeggs/06df46af94af7f261513934e56103b30 |
This file contains 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<iostream> | |
//#include<bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ int i,j,t,n[100]; | |
cin>>t; | |
while(t--){ | |
cin>>n[i]; | |
This file contains 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
jayant@jayant-Inspiron-7560:~/go/src/mig.ninja/mig(master)$ make mig-api | |
mkdir -p bin/linux/amd64 | |
GOOS=linux GOARCH=amd64 GO15VENDOREXPERIMENT=1 go build -o bin/linux/amd64/mig-api -ldflags "-X mig.ninja/mig.Version=20170416-0.9628ee3.dev " mig.ninja/mig/mig-api | |
# mig.ninja/mig/modules/file | |
modules/file/file.go:53: cannot use new(run) (type *run) as type modules.Runner in return argument: | |
*run does not implement modules.Runner (wrong type for Run method) | |
have Run(io.Reader) string | |
want Run(modules.ModuleReader) string | |
modules/file/file.go:677: cannot use in (type io.Reader) as type modules.ModuleReader in argument to modules.ReadInputParameters | |
Makefile:112: recipe for target 'mig-api' failed |
This file contains 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
Objective: Make Js script that can replicate the way ordering is done in Golang JSON. | |
We need to do this because we need to preserve the order in Js Json so that the Mig action string can be encoded in js the same | |
it is done in Golang. Since we need to verify thr actions in Golabg using PGP signature, which willbe done by Mig agent. | |
refer: https://golang.org/src/encoding/json/encode.go | find "map" , line 137 | |
step2: find an example which of an action being converted to golang Json to userstand the how "map" is working. | |
Drop this shit! |