Skip to content

Instantly share code, notes, and snippets.

View landsurveyorsunited's full-sized avatar

Justin Farrow landsurveyorsunited

View GitHub Profile
@landsurveyorsunited
landsurveyorsunited / css_resources.md
Created April 30, 2014 23:05 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@landsurveyorsunited
landsurveyorsunited / javascript_resources.md
Created April 30, 2014 23:05 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
function doGet(e){
// get some variables passed from the querystring
var project = e.parameter.title;
var range = e.parameter.range;
var sheet = e.parameter.sheet;
// Grab a basic html template to fill in the blanks - see https://developers.google.com/apps-script/html_service
var t = HtmlService.createTemplateFromFile("reportTemplate");
// some bits of code to grab the source urls
var doc = SpreadsheetApp.openById(ScriptProperties.getProperty('active'));
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

Script to sync a Google SpreadSheet to a Fusion Table

I will admit that save for a few legacy projects that still use Fusion Tables I don't actively use this script anymore -- hence no real development or maintaining of it.

Something changed on the authentication end a while back it seems, and I can't vouch for whether this script continues to work or not. I know that once I enabled two-factor authentication for my Google account this script stopped working.

I've added a couple potential solutions here, but would welcome someone -- Google or otherwise -- to offer a long-term maintained solution.

Thanks goes out to John McGrath who did the bulk of the work in making this script happen.

@landsurveyorsunited
landsurveyorsunited / googleSitesJqueryCheck.html
Last active August 31, 2015 00:58 — forked from n8henrie/googleSitesJqueryCheck.html
Check which versions of jQuery are working on Google Sites.
<div id="jquery_check">Versions of jQuery that are working in Google Sites HTML Box as of </div>
<script>
var div = document.getElementById('jquery_check');
div.innerHTML = div.innerHTML + new Date;
</script>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'></script>
<script>
var div = document.getElementById('jquery_check');
@landsurveyorsunited
landsurveyorsunited / feed-georss.php
Last active September 19, 2015 01:36 — forked from sta1r/feed-georss.php
A geoRSS-formatted feed template for Wordpress
<?php
/*
GeoRSS formatted output for Google Maps
Authors: Alastair Mucklow, Chris Toppon
*/
//header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
//$more = 1;
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'" standalone="yes"?'.'>'; ?>
@landsurveyorsunited
landsurveyorsunited / uservoice-gadget.xml
Last active September 19, 2015 01:51 — forked from populov/uservoice-gadget.xml
Gadget for integrating Uservoice into your site, based on Google Sites.
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<!-- See http://uservoice.com for Uservoice service description -->
<ModulePrefs
title="Uservoice for Google Sites"
title_url="https://code.google.com/p/google-sites-uservoice/"
description="Add support and feedback features provided by Uservoice service to your Google Site"
directory_title="Uservoice for Google Sites"
thumbnail="https://google-sites-uservoice.googlecode.com/git/gsuv-logo.png"
screenshot="https://google-sites-uservoice.googlecode.com/git/screen.png"
@landsurveyorsunited
landsurveyorsunited / loremipsumizer.js
Created October 12, 2015 01:09 — forked from choonkeat/loremipsumizer.js
Bookmarklet to turn any webpage back into a wireframe with "lorem ipsum" text. elements ".brand,.nav,.page-title,.btn,.pagination,.breadcrumb,form label,h1,th" are left intact by default (if you have jQuery on the page) because sometimes we want the basic navigations and buttons), but applying the script again will proceed to anonymize them rega…
/*
Turn any webpage back into a wireframe with "lorem ipsum" text.
1. Bookmark this page
2. Edit the bookmark, and change the link into
javascript:(function(u){ c=document;b=c.body;s=c.createElement('script');s.src=u+'?r='+(new Date()).getTime();b.appendChild(s);})('https://raw.github.com/gist/585708/ac1961130915ed2aef0e67bc97d35ead08513aba/loremipsumizer.js');void(0);
3. Visit any webpage
4. Click on the bookmark
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.