mhawksey mhawksey

View gist:9659908
1 2 3 4 5 6 7 8 9 10
// modified from http://binarywaste.blogspot.co.uk/2013/06/google-docs-inserting-date-in-footer.html
function timeStampFooter() {
var doc = DocumentApp.getActiveDocument();
var footer = (doc.getFooter()) ? doc.getFooter() : doc.addFooter();
footer.setText("");
var divider = footer.appendHorizontalRule();
var footerText = footer.appendParagraph('Confidential and Proprietary + Accessed ' + new Date());
footerText.setFontSize(9);
footerText.setForegroundColor('#4a86e8');
footerText.setAlignment(DocumentApp.HorizontalAlignment.RIGHT);
View index.html
1 2 3 4 5 6 7 8 9 10
<!--
You are free to copy and use this sample in accordance with the terms of the
Apache license (http://www.apache.org/licenses/LICENSE-2.0.html)
-->
 
<!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">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>
View index.html
1 2 3 4 5 6 7 8 9 10
<!--
You are free to copy and use this sample in accordance with the terms of the
Apache license (http://www.apache.org/licenses/LICENSE-2.0.html)
-->
 
<!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">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>
View gist:9199459
1 2 3 4 5 6 7 8 9 10
function onOpen(){
// example send for Sheets
sendGAMP("UA-XXXX-1", SpreadsheetApp.getActiveSpreadsheet().getUrl());
// example send for Documents
//sendGAMP("UA-XXXX-1", DocumentApp.getActiveDocument().getUrl());
// example send for Forms *NOTE* getUrl not implemented yet in New Sheets
//sendGAMP("UA-XXXX-1", FormApp.getActiveForm().getUrl());
}
View gist:8953096
1 2 3 4 5 6 7 8 9 10
<script data-cfasync="false" type="text/javascript" src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js"> {
"dataSourceUrl": "//docs.google.com/spreadsheet/tq?key=0AqGkLMU9sHmLdEJRZ3JkZmI2dGJpZXprNkNfRFhtWnc&transpose=0&headers=1&range=B1%3AF169&gid=1&pub=1",
"options": {
"titleTextStyle": {
"bold": true,
"color": "#000",
"fontSize": 16
},
"fontName": "Tahoma",
"animation": {
View sneek peak
1
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="//ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"2.0.3",function($,L){$('span.y2').each(function(){$(this).attr('title', $(this).text())});});
View gist:8587272
1 2 3 4 5 6 7 8 9 10
function cacheMap(){
var what = "#rhizo14";
var openTag = '<?xml version="1.0" encoding="UTF-8"?> '+
' <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">' +
' <Document>' +
' <name><![CDATA[Twitter '+what+' Contributor Map]]></name>' +
' <description><![CDATA[Map of Twitter accounts that have used the '+what+' hashtag which include location data. Markers are listed by number of tweets in the archive ]]></description>';
var output = [[openTag]];
var db = ScriptDb.getMyDb();
var counter = 0;
View gist:7770536
1 2 3 4 5 6 7 8 9 10
/*
Copyright 2013 Martin Hawksey
 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 
http://www.apache.org/licenses/LICENSE-2.0
 
Unless required by applicable law or agreed to in writing, software
View TAGS v5.1.1.js
1 2 3 4 5 6 7 8 9
// This code excluding Google(c) Code tab:
/*
Copyright 2013 Martin Hawksey
 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 
http://www.apache.org/licenses/LICENSE-2.0
View README.md

The tree layout implements the Reingold-Tilford algorithm for efficient, tidy arrangement of layered nodes. The depth of nodes is computed by distance from the root, leading to a ragged appearance. Cartesian orientations are also supported. Implementation based on work by Jeff Heer and Jason Davies using Buchheim et al.'s linear-time variant of the Reingold-Tilford algorithm. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

Something went wrong with that request. Please try again.