This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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())});}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userGuid = "5895d593-9461-4b8b-8452-95bb82458bd2"; | |
var apiKey = "YOUR_API_KEY"; | |
/** | |
* Query importio for data. | |
* | |
* @param {string} connectorGuid the number we're raising to a power | |
* @param {object} input the exponent we're raising the base to | |
* @param {string} userGuid the exponent we're raising the base to | |
* @param {string} apiKey the exponent we're raising the base to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getImportio() { | |
var url = "YOUR_IMPORTHTML_URL"; | |
/* | |
* Class UrlFetchApp | |
* | |
* Fetch resources and communicate with other hosts over the Internet. This service allows | |
* scripts to communicate with other applications or access other resources on the web by | |
* fetching URLs. A script can use the URL Fetch service to issue HTTP and HTTPS requests | |
* and receive responses. The URL Fetch service uses Google's network infrastructure for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getImportioToSheet() { | |
var url = "YOUR_IMPORTHTML_URL_FORMAT_JSON"; | |
var resp = UrlFetchApp.fetch(url); | |
var data = JSON.parse(resp.getContentText()); | |
// handling JSON response turning into 2d array [][] | |
var ioData = data.results; | |
var tbl = []; | |
tbl.push(Object.keys(ioData[0])); // extracting a header | |
for (var i = 0; i < ioData.length; ++i){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
google.load('visualization', '1.1', {packages: ['corechart','charteditor']}); | |
</script> | |
<script type="text/javascript"> | |
var $jq = jQuery.noConflict(); | |
// set some globals | |
var headings,demos; | |
var colNames = {}; | |
var globalColIdx = {}; | |
var data = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( defined( 'DOMAIN_CURRENT_SITE' ) && defined( 'PATH_CURRENT_SITE' ) ) { | |
$current_site->id = (defined( 'SITE_ID_CURRENT_SITE' ) ? constant('SITE_ID_CURRENT_SITE') : 1); | |
$current_site->domain = $domain = DOMAIN_CURRENT_SITE; | |
$current_site->path = $path = PATH_CURRENT_SITE; | |
if( defined( 'BLOGID_CURRENT_SITE' ) ) | |
$current_site->blog_id = BLOGID_CURRENT_SITE; | |
$url = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ); |
OlderNewer