Skip to content

Instantly share code, notes, and snippets.

View ajarbol's full-sized avatar
🚀
Building all the things!

Andreas Jarbol ajarbol

🚀
Building all the things!
View GitHub Profile
// Opera 8.0+
export const isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
// Firefox 1.0+
export const isFirefox = typeof InstallTrigger !== 'undefined';
// Safari 3.0+ "[object HTMLElementConstructor]"
export const isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification));
// Internet Explorer 6-11
@ajarbol
ajarbol / Demo.scala
Created January 17, 2018 03:29
POC of Elastic4s with AWS hosted ElasticSearch
import com.sksamuel.elastic4s.RefreshPolicy
import com.sksamuel.elastic4s.analyzers.SimpleAnalyzer
import com.sksamuel.elastic4s.aws.{Aws4ElasticClient, Aws4ElasticConfig}
import com.sksamuel.elastic4s.http.ElasticDsl._
import com.sksamuel.elastic4s.circe._
import com.sksamuel.elastic4s.searches.queries.FuzzyQueryDefinition
import io.circe.generic.auto._
object Demo extends App {
val config = Aws4ElasticConfig(
@ajarbol
ajarbol / jquery-ui-multiselect-widget.js
Created February 14, 2017 12:56
jquery-ui-multiselect-widget fork removing keyevent probagation
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */
/*
* jQuery MultiSelect UI Widget 2.0.0
* Copyright (c) 2012 Eric Hynds
*
* http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
*
* Depends:
* - jQuery 1.4.2+
* - jQuery UI 1.8 widget factory

Keybase proof

I hereby claim:

  • I am ajarbol on github.
  • I am ajarbol (https://keybase.io/ajarbol) on keybase.
  • I have a public key whose fingerprint is E857 280B 6530 FC99 7C0C 6414 1F4B 5BC3 D2BC 5CCA

To claim this, I am signing this object: