Skip to content

Instantly share code, notes, and snippets.

@p0wdrdotcom
p0wdrdotcom / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../yt-video/yt-search-video.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@p0wdrdotcom
p0wdrdotcom / converter.js
Created March 6, 2017 22:24
A converter from new opencv XML format for JSFeat for use with jsfeat.haar.detect_multi_scale
var XmlStream = require('xml-stream');
/**
* Constructor
*/
function ConverterJSFeat() {
if (!(this instanceof ConverterJSFeat))
return new ConverterJSFeat();
}
const DEFAULT_MAX_ITEMS = 1000;
function LRU(size) {
const items = {};
let max_items = DEFAULT_MAX_ITEMS;
if (size != null) {
max_items = size;
}