Skip to content

Instantly share code, notes, and snippets.

View rewfergu's full-sized avatar

Robert Ferguson rewfergu

View GitHub Profile
@rewfergu
rewfergu / googleDocImport.php
Created November 30, 2012 21:48
Import contents of a Google Doc into a page
<?php
// Based on http://www.realisingdesigns.com/2009/10/29/using-google-docs-as-a-quick-and-easy-cms/
// Specify document ID
$gd_doc = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$gd_array = array();
$gd_array["url"] = "https://docs.google.com/document/pub?id=".$gd_doc;
$gd_array["start"] = '<div id="contents">';
@rewfergu
rewfergu / activelink.php
Created April 1, 2013 15:11
PHP active link
@rewfergu
rewfergu / activeLink.js
Last active December 15, 2015 15:59
JavaScript active link
@rewfergu
rewfergu / Blob.pde
Created October 31, 2013 20:53
Colorize external SVG in Processing
class Blob {
PShape s, stroke, fills, shadow, accentOne, accentTwo, accentThree;
int baseColor = floor(random(100));
int x, y;
float hScale, vScale;
// constructor
Blob(int blob_x, int blob_y, int blob_w, int blob_h) {
x = blob_x;
y = blob_y;
@rewfergu
rewfergu / convertFilesToSymbols.jsx
Created February 25, 2015 23:16
Convert Illustrator files to Symbols
var sourceFolder,
files,
fileType,
sourceDoc,
sourceArtwork,
symbolRef;
//documents.add();
var docRef = documents[0];
@rewfergu
rewfergu / resources.md
Last active September 20, 2016 04:22
Front-End Resources