Skip to content

Instantly share code, notes, and snippets.

#define CERES_FOUND true
#include <opencv2/sfm.hpp>
#include <opencv2/viz.hpp>
#include <opencv2/calib3d.hpp>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include <pcl/io/pcd_io.h>
@najlepsiwebdesigner
najlepsiwebdesigner / simple-curl.php
Created January 13, 2017 18:58 — forked from james2doyle/simple-curl.php
a simple PHP curl function to get the content type
function simple_curl($url)
{
$ch = curl_init();
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 20);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
$content = curl_exec ($ch);
cv::Mat ransacTest(
const std::vector<std::vector<cv::DMatch> > &matches, // Matches between two set of keypoints
const std::vector<cv::KeyPoint>& keypoints1,
const std::vector<cv::KeyPoint>& keypoints2,
std::vector<std::vector<cv::DMatch> > &outMatches) {
// Convert keypoints into Point2f
std::vector<cv::Point2f> points1, points2;
for (std::vector<std::vector<cv::DMatch> >::
const_iterator it= matches.begin(); it!= matches.end(); ++it) {
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
<!-- html -->
<a class="btn btn-mini hider-toggle" style="padding:0px 4px;">
<i class="icon-eye-open"></i>
</a>
<span class="hider">{$number->decrypted_password}</span>
<span class="hider-fake">*******</span>
<!-- style -->
<style>
.hider {