Skip to content

Instantly share code, notes, and snippets.

View jayant-yadav's full-sized avatar
👾
working on kaggle

Jayant jayant-yadav

👾
working on kaggle
View GitHub Profile
@jayant-yadav
jayant-yadav / fine-tune-bert-for-text-classification-with-tensorflow.ipynb
Created August 31, 2023 06:45
Fine-Tune-BERT-for-Text-Classification-with-TensorFlow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jayant-yadav
jayant-yadav / build-a-generative-adversarial-network.ipynb
Created July 27, 2023 09:01
Build a Generative Adversarial Network .ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jayant-yadav
jayant-yadav / opencv_install.sh
Created May 3, 2017 13:46
To install opencv 2.4.13 in ubuntu 16.04
#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
@jayant-yadav
jayant-yadav / opencv.txt
Last active May 3, 2017 13:51
Install opencv 2
#for opencv version 2.4.9
sudo apt-get install python-opencv
https://gist.github.com/arthurbeggs/06df46af94af7f261513934e56103b30
@jayant-yadav
jayant-yadav / fact2.cpp
Last active April 16, 2017 18:42
FACT2
#include<iostream>
//#include<bits/stdc++.h>
using namespace std;
int main()
{ int i,j,t,n[100];
cin>>t;
while(t--){
cin>>n[i];
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
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!