Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jasonclark's full-sized avatar

Jason A. Clark jasonclark

View GitHub Profile
@jasonclark
jasonclark / google-books-search
Created December 18, 2010 06:15
This is a proof of concept app. I wanted to see if an alternative browse/search app for Google Books was possible. Built with PHP, HTML and the Google Ajax Search API (version 1).
@jasonclark
jasonclark / index-html5-geo.php
Created January 5, 2011 16:38
html 5 geolocation, Google geocoder API - find position and set value in search form field. demo: http://www.lib.montana.edu/~jason/files/geolocate/index-html5-geo.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>re: This Place - Location Matters : Montana State University Libraries</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="alternate" type="application/rss+xml" title="MSU Libraries: Tools" href="http://feeds.feedburner.com/msulibrarySpotlightTools" />
<style type="text/css" media="screen, projection, handheld">
<!--
@import url("/~jason/files/geolocate/meta/styles/master.css");
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Web Speech API demo</title>
<link rel="stylesheet" href="css/style.css">
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
@jasonclark
jasonclark / jquery-google-analytics-example
Created September 14, 2012 02:36
How to add Google Analytics to jQuery Mobile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mobile @ Your Library</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<link rel="stylesheet" href="./meta/styles/m.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
@jasonclark
jasonclark / The `app` object (with scrolltop improvement for long views).markdown
Created December 23, 2015 04:31
The `app` object (with scrolltop improvement for long views)

The app object (with scrolltop improvement for long views)

The simple app object defining routes and "life cycle" like functions.

A Pen by Heydon on CodePen.

License.

Verifying that +jasonclark is my blockchain ID. https://onename.com/jasonclark
@jasonclark
jasonclark / data-model-resources.sql
Created July 28, 2016 16:40
Data model for @msulibrary resources app
--
-- Database: `resources`
--
-- --------------------------------------------------------
--
-- Table structure for table `matchSubject`
--
@jasonclark
jasonclark / data-model-people.sql
Created July 28, 2016 16:44
Data model for @msulibrary people app
--
-- Database: `people`
--
-- --------------------------------------------------------
--
-- Table structure for table `create_action`
--
@jasonclark
jasonclark / css-diagnostic-for-https.css
Created August 23, 2016 13:13
CSS as privacy diagnostic tool - mark all unsecure or unencrypted content/links. Add this to your CSS to see a red frowny face next to your non-SSL content.
.content [href^="http:"]::after {
content: "\2639\ (unencrypted link)";
display: inline-block;
width: .8em;
height: .8em;
text-indent: .8em;
white-space: nowrap;
color: red;
}
@jasonclark
jasonclark / gist:6d6613358f43653fec89
Created January 26, 2015 02:20
JSON-LD for Web page with additional types using schema.org
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"name": "Title of web page",
"description": "Description of web page",
"additionalType": [
{
"@id": "http://dbpedia.org/page/Navajo"
},