Skip to content

Instantly share code, notes, and snippets.

View masterika's full-sized avatar

Irakli Gudavadze masterika

  • University of Texas at Austin
  • Austin, TX
View GitHub Profile
@westc
westc / typeOf.js
Last active April 7, 2021 23:31
An extended version of the typeOf() function which will either return the name of the class, "null", "undefined" or a boolean indicating if one of the passed type names matches the type of the value.
function typeOf(value) {
for (
var test,
argv = arguments,
argc = argv.length,
i = argc,
typeName = value == undefined
? value === undefined
? 'undefined'
: 'null'
@westc
westc / gsheets-search-engine.html
Last active November 10, 2022 01:53
A simple search engine that only uses JavaScript and Google sheets. NO DATABASE REQUIRED!
<!DOCTYPE html>
<html>
<head>
<title>Custom Search Engine Using Google Sheets</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.3/vue.min.js"></script>
<script type="text/javascript">