Skip to content

Instantly share code, notes, and snippets.

View seanwalsh's full-sized avatar

Sean Walsh seanwalsh

View GitHub Profile
@seanwalsh
seanwalsh / customFunction.txt
Created December 29, 2014 00:43
FileMaker custom function documentation.
/*
customFunction 2006 Sean Walsh
Developed by: Developer Name
Format:
customFunction ( field )
Parameters:
field - any related field, repeating field, or set of non-repeating fields; or an expression that returns a field, repeating field, or set of non-repeating fields.
@seanwalsh
seanwalsh / Change Title Tag
Created July 25, 2014 13:12
A little bit of Javascript to change the title of a page after loosing focus. For example, switching to another window or tab.
// Change Title Tag on Blur
var titleCurrent = document.title;
var titleList = [
"Hey, over here.",
"Don't you forget about me",
"Please come back"
];
var titleIndex = "";
function titleRandom(){
@seanwalsh
seanwalsh / eula.css
Last active August 29, 2015 14:04
CSS to quickly format a EULA or any legal document. Most basic elements will work but there are a few extra things needed.
body { margin: 15px;}
.bold { font-weight: bold; }
.caps { text-transform: uppercase; }
.center { text-align: center; }
.circle { list-style: circle; }
.smcaps { font-variant: small-caps; }
.unstyled { list-style: none; }
@seanwalsh
seanwalsh / Change Title Tag OnBlur
Last active August 29, 2015 14:03
Change the title tag when the user goes to another window/tab.
window.onblur = function () { document.title = 'Your new HTML Title tag'; }
window.onfocus = function () { document.title = 'The default title tag'; }
SELECT
table1.field1, table2.field1
FROM
table1
INNER JOIN
table2
ON
table1.primaryKey = table2.foreignKey
WHERE
table1.field2 = 'query'