Skip to content

Instantly share code, notes, and snippets.

View nameinmaking's full-sized avatar
🎯
Focusing

Vipul Sharma nameinmaking

🎯
Focusing
View GitHub Profile
@nameinmaking
nameinmaking / ActivityMain.java
Created May 9, 2014 15:52
Android Image JSON using GSON
package com.example.jsondemo;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
@nameinmaking
nameinmaking / ActivityMain.java
Last active August 29, 2015 14:01
Android Image Upload JSON
package com.example.jsondemo;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
@nameinmaking
nameinmaking / JSONDemo.java
Created May 9, 2014 05:58
JSON HTTP POST Android - Send an image file to server
package com.example.jsondemo;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
FileInputStream fileInputStream = new FileInputStream(new File(pathToOurFile) );
URL url = new URL(urlServer);
connection = (HttpURLConnection) url.openConnection();
// Allow Inputs & Outputs.
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);
#include <cassert>
#include <cmath>
#include <iostream>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <opencv/cxcore.h>
#include "Features.h"
#include <math.h>
#include <time.h>
#include <utility>
#include "MatchingThread.h"
#include "Features.h"
MatchingThread::MatchingThread ( QWidget * parent,
FeatureType featureType,
MatchType matchType,
const FeatureSet & features )
: QThread ( parent ), matchType ( matchType ),
features ( features ), featureType ( featureType )
#include "MatchingPage.h"
#include "FeaturesWizard.h"
#include <opencv/cv.h>
#include <QPainter>
#include "MatchingThread.h"
#include <QProgressBar>
#include <QBoxLayout>
#include <QPicture>
MatchingPage::MatchingPage ( FeaturesWizard * parent ) : QWizardPage ( parent ),
#include <iostream>
#include <string>
#include <regex>
using namespace std;
int main()
{
string sname ("T.V. Raman");
string smobile("1234567890 (650) 720-5678");
string semail("[email protected]");
smatch m;