Skip to content

Instantly share code, notes, and snippets.

@Beej126
Beej126 / PDFScrape.csx
Last active May 20, 2021 09:42
Tesseract OCR on inbound PDF implemented in .Net, structured as an HTTP request Azure Function, uploads results to SQL Server
#r "iTextSharp.dll"
#r "Ghostscript.Net.dll"
#r "System.Drawing"
#r "Tesseract.dll"
#r "SqlClientHelpers.dll"
#r "iTextSharp.Licensekey.dll"
#r "System.Data"
#r "System.Configuration"
using System;
@glenrobertson
glenrobertson / TileLayer.GeoJSON.js
Last active August 2, 2021 07:11
Leaflet GeoJSON Tile Layer Example
// Load data tiles from an AJAX data source
L.TileLayer.Ajax = L.TileLayer.extend({
_requests: [],
_addTile: function (tilePoint) {
var tile = { datum: null, processed: false };
this._tiles[tilePoint.x + ':' + tilePoint.y] = tile;
this._loadTile(tile, tilePoint);
},
// XMLHttpRequest handler; closure over the XHR object, the layer, and the tile
_xhrHandler: function (req, layer, tile, tilePoint) {