Skip to content

Instantly share code, notes, and snippets.

@longlongh4
longlongh4 / gist:5428731
Created April 21, 2013 06:53
The way to dynamically create animation group in Qt Quick
import QtQuick 2.0
Rectangle{
id: container
width: 800
height: 800
color: "black"
Rectangle{
id: rect
width: 50
@longlongh4
longlongh4 / FAISS demo.cpp
Last active April 8, 2020 06:38
A demo to use FAISS to build indexes for Hamming Distance based fingerprints.
#include <iostream>
#include <vector>
#include <fstream>
#include <sstream>
#include <faiss/IndexBinaryIVF.h>
#include <faiss/AutoTune.h>
#include <faiss/IndexBinaryFlat.h>
using namespace std;