Skip to content

Instantly share code, notes, and snippets.

View JoelSutherland's full-sized avatar

Joel Sutherland JoelSutherland

View GitHub Profile
(function () {
function loadZendeskChat(callback) {
var zdscript = document.createElement('script');
zdscript.setAttribute('id','ze-snippet');
zdscript.src = 'https://static.zdassets.com/ekr/snippet.js?key=XXX-XXX-XXX-XXX';
(document.getElementsByTagName('body')[0]).appendChild(zdscript);
window.zdonload = setInterval(function(){
if(typeof zE !== "undefined" && typeof zE.activate !== "undefined") {
@JoelSutherland
JoelSutherland / A-Pen-by-Joel-Sutherland.markdown
Created February 18, 2014 20:17
A Pen by Joel Sutherland.
@JoelSutherland
JoelSutherland / 0_reuse_code.js
Created January 31, 2014 19:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@JoelSutherland
JoelSutherland / omni.js
Created August 31, 2012 15:10
omni code
<script type="text/javascript">
// *** Replace square bracketed placeholders with values provided to you in your implementation documentation ***
bN_cfg = {
// The "h" parameter whitelists this hostname for beacon initialization.