Skip to content

Instantly share code, notes, and snippets.


Kyle J. Davis stockholmux

View GitHub Profile
View gist:bf2342a24fd5a80f235f2b323b876fca
require_once 'vendor/autoload.php';
$client = new Predis\Client([
/* ... */
$client->set('foo', 'bar');
$value = $client->get('foo');
stockholmux / redirect.fetch.test.node.js
Created Jan 3, 2014
When using jsdom, redirects are followed but they do not take into account any cookies that are set during the course of the redirect. Consider the short express app and related jsdom script.
View redirect.fetch.test.node.js
jsdom = require('jsdom');
function (errors, window) {
if (errors) {
console.log('error', errors);
} else {
stockholmux / anchorIssue.html
Created Nov 5, 2013
Illustrate issue with onScreen jquery plugin ( and anchor links
View anchorIssue.html
<!DOCTYPE html>
<title>on screen test</title>
.box {
padding-top: 50px;
padding-bottom: 50px;
margin-bottom: 10px;