Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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(){ | |
if(window.sq){ | |
window.sq.closed && window.document.dispatchEvent(new Event('squirt.again')); | |
} else { | |
window.sq = {}; | |
window.sq.userId = '--squirtUser--'; | |
s = document.createElement('script'); | |
s.src = 'http://www.squirt.io/bm/squirt.js'; | |
document.body.appendChild(s); | |
} |
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> | |
/** | |
* Provides a fake analytics object that sends all calls to the parent window for processing | |
*/ | |
var analytics = (function() { | |
var eventQueue = []; | |
// Send the events to the frame if it's ready. | |
function flush(method, args) { | |
while (eventQueue.length) { |
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
/** | |
* Pixel Loader. | |
* It will make the http request on construction, no need to dom insert. | |
*/ | |
const loadPixel = (src, fn=()=>{}) => ({ | |
...new Image, | |
onload() { fn() }, | |
height: 1, |
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
# | |
# Environment. | |
# | |
NODE := node --harmony | |
NODE_ENV ?= development | |
# | |
# Binaries | |
# |
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
/** | |
* helper function to take the form and | |
* get back a js object with field/value mappings | |
* ignoring submit fields and fields whose name we can't ascertain | |
*/ | |
function serialize(form){ | |
return Array.prototype.slice.call(form.elements) | |
.filter(isInputElement) | |
.filter(isNotSubmit) |
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
export default function applyFirst (fn, first) { | |
return (...args) => fn(first, ...args); | |
} |
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 includes = require('@ndhoule/includes'); | |
var fold = require('@ndhoule/foldl'); | |
var each = require('@ndhoule/each'); | |
var ZD = require('node-zendesk') | |
var Batch = require('batch'); | |
var batch = new Batch; | |
var zendesk = ZD.createClient({ | |
username: /*usernamen*/, | |
token: /*token*/, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="viewport" content="width=700,maximum-scale=1.0,user-scalable=yes"> | |
<title>Vimeo Froogaloop API Playground</title> | |
<script> | |
/* Don't forget your analytics.js snippet :) */ | |
</script> | |
</head> | |
<body> |
OlderNewer