Skip to content

Instantly share code, notes, and snippets.

View xirzec's full-sized avatar

Jeff Fisher xirzec

View GitHub Profile
@xirzec
xirzec / search-index-js.md
Last active April 2, 2020 00:23
Azure Cognitive Search Index Management API for JS

Azure Cognitive Search Index Management

Azure Cognitive Search is a fully managed cloud search service that provides a rich search experience to custom applications. The service provides a REST API with operations that create and manage indexes, load data, implement search features, execute queries, and handle results.

This document describes the start of the JS SDK for Search service operations, which include all operations that are not directly related to document operations.

Design

SearchServiceClient API

@xirzec
xirzec / azure-search-js-design.md
Last active March 4, 2020 01:54
azure-search-js-design.md

JS Azure Search Client: Document Operations Proposal

Azure Cognitive Search is a fully managed cloud search service that provides a rich search experience to custom applications. The service provides a REST API with operations that create and manage indexes, load data, implement search features, execute queries, and handle results.

This document descibes a JS SDK for Azure Search Document operations. The API provides a primary SearchIndexClient that implements all of the supported REST operations for document-related operations. Documents are represented at

@xirzec
xirzec / count.js
Last active February 27, 2018 19:44
Count folder size
const fs = require("fs");
const path = require("path");
const util = require("util");
const readFile = util.promisify(fs.readFile);
const readdir = util.promisify(fs.readdir);
const stat = util.promisify(fs.stat);
const ignoreList = ["node_modules", ".git"];
const lineCountTypes = [".ts", ".tsx", ".js", ".html", ".css"];
const NEW_LINE = 10;
@xirzec
xirzec / appbar.js
Created April 15, 2014 17:22
Global Appbar Pattern
(function () {
"use strict";
function doSearch() {
if (WinJS.Navigation.location !== '/pages/search/search.html') {
WinJS.Navigation.navigate('/pages/search/search.html');
}
}
function doSignIn() {