Skip to content

Instantly share code, notes, and snippets.

View noelweichbrodt's full-sized avatar

Noel Weichbrodt noelweichbrodt

View GitHub Profile
@noelweichbrodt
noelweichbrodt / web-speech-api-support.md
Last active May 17, 2018 20:24
W3C Web Speech API Browser Support
Browser OS ASR TTS Status
Safari macOS Partial Support
Safari iOS Partial Support
Chrome macOS Full Support
Chrome iOS Partial Support
Chrome Android Partial Support
Firefox macOS Partial Support
Silk FireOS Partial Support
OS ASR TTS Status Devices
iOS 10, 11 Fully Supported iPhone 6S, iPad Mini 2
Android 7, 8 Fully Supported Google Pixel
FireOS 5.4 Android SpeechRecognizer unsupported because they want you to use AVS. Sideloaded Google Play + Google app adds Google ASR Kindle Fire 7
RTAndroid 7.1 Android SpeechRecognizer unsupported Raspberry Pi 3
Geek Till It Hertz 7.1.1 Android SpeechRecognizer unsupported Raspberry Pi 3
emteria.OS Android SpeechRecognizer unsupported Raspberry Pi 3
Android Things 0.6.1 Android SpeechRecognizer unsupported Raspberry Pi 3
Raspbian Linux Audio system unsupported Raspberry Pi 3

Keybase proof

I hereby claim:

  • I am noelweichbrodt on github.
  • I am noelweichbrodt (https://keybase.io/noelweichbrodt) on keybase.
  • I have a public key ASCiboxlwnNs12qomRFywhIUNma8TXUX2QqV1PNIlk-jtAo

To claim this, I am signing this object:

//Async callback style with reference counting
// Call this to kick off a search for Grantees for the currently selected state.
function doGranteeSearches() {
if (includeGranteesType1) {
iGranteeQueryPendingCount++;
_doGranteeSearchByState(GranteeType1AsyncQuery,0);
}
if (includeGranteesType2) {
iGranteeQueryPendingCount++;
_doGranteeSearchByState(GranteeType2AsyncQuery,0);
#!/bin/sh
git log HEAD ^$(git merge-base master HEAD) --no-merges $1
@noelweichbrodt
noelweichbrodt / datatablesjson.js
Created September 19, 2012 18:55
DataTables JSON Data
{
"aaData": [
[ "Paul Bunyan Telephone Company", "Missoula, MT", "(Company)", "22", "132", "1251", ],
[ "Paul Bunyan Telephone Company", "Missoula, MT", "(Company)", "51", "9082", "1251", ],
[ "Commonwealth of Virginia PLLC", "Richmond, VA", "(Company)", "5.5", "2456", "913" ],
[ "Chickasaw Territory", "Chickasaw Sovereign Nation", "Community", "6", "76453", "8123" ],
[ "Blackfoot Reservation", "Blackfoot Nation", "(Community)", "7", "8712", "47" ],
[ "Montana", "Montana", "(State)", "180021", "20133", "3123543" ],
[ "Oklahoma", "Oklahoma", "982131", "1848", "673456" ],
[ "Virginia", "Virginia", "(State)", "19236", "2094", "456" ],
@noelweichbrodt
noelweichbrodt / MapQueryFromHell.scala
Created September 14, 2012 17:05
Map Query from Hell
def getCurrentPNFForTable(): JsCmd = {
val tuple = getPNFs
//println("FYI: got the current PNFs for the table")
val pnfCompany = tuple._1.groupBy(_._1)
val pnfStats = tuple._2.groupBy(_._1)
val pnfApplicationIds = tuple._1.map(a => new Str(a._1)).distinct
val tableData = pnfStats.map(a => List[JValue](("<a href=\"" + S.hostAndPath + "/response?id=" + a._2.head._13 + "\">Respond...</a>"), a._2.head._13, a._2.head._1, pnfCompany.get(a._2.head._1).get.head._2, pnfCompany.get(a._2.head._1).get.head._12,
pnfCompany.get(a._2.head._1).get.head._7, pnfCompany.get(a._2.head._1).get.head._8,
a._2.map(_._16).distinct.reduceLeft[String] { (first, n) => first + ", " + n }, a._2.map(_._15).distinct.reduceLeft[String] { (first, n) => first + ", " + n },
a._2.map(_._14).distinct.reduceLeft[String] { (first, n) => first + ", " + n }, pnfCompany.get(a._2.head._1).get.head._3, pnfCompany.get(a._2.head._1).get.head._6,
@noelweichbrodt
noelweichbrodt / MapSearchEntitiesByName.scala
Created September 14, 2012 17:04
Map search entities by name
def getGeoEntitiesNameMatches(term:String): List[String] = {
val communities = for { s <- model.CommunityTable if (s.name startsWith term) } yield s
val companies = for { s <- model.CompanyTable if (s.name startsWith term) } yield s
val states = for { s <- model.StateTable if (s.name startsWith term) } yield s
val counties = for { c <- model.CountyTable if (c.name startsWith term) } yield c
DatabaseSession.session() withSession {
communities.list.map(c => c.name + " (" + c.stateCode + ") " + " (Community)") ::: companies.list.map(c => (c.name + " (" + c.stateCode + ") (Company)")) :::
states.list.map(n => (n.name + " (" + n.abbreviation + ") (State)")) ::: counties.list.map(c => c.name + " (" + c.stateCode + ") (County)")
}
}
@noelweichbrodt
noelweichbrodt / MapUiTemplate.html
Created September 14, 2012 16:56
Map ui template html
<!-- LIFT NEED A TOP LEVEL NODE TO WORK !!!!!! DO NOT DELETE SPAN TAG -->
<div>
<div class="container_12 ui-widget-content ui-corner-all ui-widget-header ">
<ul class="ui-map-content-menu" >
<li class="ui-map-basemap-item">
<input class="ui-basemap-layer-action" type="radio" id="streets" name="radio" />
<label class="ui-map-action-label" for="streets" >Street</label>
</li>
<li class="ui-map-basemap-item">
<input class="ui-basemap-layer-action" type="radio" id="image" name="radio" />
@noelweichbrodt
noelweichbrodt / MapJsEsriViewInit.js
Created September 14, 2012 16:54
Map Js ESRI View init
var _fnRegisterListeners = function(){
//console.log('MapView: register listeners ');
dojo.connect( _oSettings['oMapView'], 'onLoad', function() {
_oMediator.Publish(_oEvents.navigation['onAllowMapNavigation'],{
action:false
});
dojo.connect( _oSettings['oMapView'], 'resize', _oSettings['oMapView'],