Skip to content

Instantly share code, notes, and snippets.

Kris Walker kixxauth

Block or report user

Report or block kixxauth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kixxauth / long-polling.html
Created Apr 11, 2011
A Node.js http long polling server for HTTP streaming.
View long-polling.html
<!DOCTYPE html>
<style type="text/css">
body {
font-size: 18px;
background: #000;
color: #fff;
#container {
width: 600px;
kixxauth / test-redis-scan.js
Last active Mar 24, 2017
Oddworks Datastore Scan Tests
View test-redis-scan.js
'use strict';
const Promise = require('bluebird');
const _ = require('lodash');
const redis = require('redis');
const PAGE_SIZE = 20;
kixxauth / gist:5190450
Created Mar 18, 2013
Vagrant 1.1.1 error
View gist:5190450
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /webapp
[default] -- /vagrant
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
/Applications/Vagrant/embedded/gems/gems/vagrant-1.1.1/plugins/providers/virtualbox/action/prepare_nfs_settings.rb:16:in `call': uninitialized constant VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSSettings::Errors (NameError)
kixxauth / main.html
Created Jul 10, 2013
Link to Twitter App from iBooks Widget
View main.html
<!DOCTYPE html>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="style.css">
<div id="container">
<h1>Link to an External iOS App</h1>
<section class="static-tweet">
kixxauth / content1-snippet.xhtml
Last active Dec 17, 2015
ibooks unzipped file exploration
View content1-snippet.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<?xml-stylesheet href='assets/css/content1.css' type='text/css' media='all'?>
<?xml-stylesheet href='assets/css/content1-paginated.css' type='text/css' media='paginated and (orientation:landscape)'?>
<?xml-stylesheet href='assets/css/content1-flow.css' type='text/css' media='nonpaginated and (orientation:portrait)'?>
<html xmlns:xlink="" xmlns:ibooks="" xmlns:m="" xmlns:epub="" xmlns="" xml:lang="en">
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>
<link rel="stylesheet" type="text/xml+svg" href="assets/svg/content1.svg"/>
kixxauth / contact.php
Last active Dec 16, 2015
Contact form email sending in PHP
View contact.php
// If there were *no* submission errors:
if ($err === 0) {
if (function_exists('htmlspecialchars_decode')) {
$subject = htmlspecialchars_decode($subject);
$message = htmlspecialchars_decode($message);
$message .= "\r\nPhoneNumber: " . $phone;
kixxauth / index.html
Created Jan 12, 2013
Avoid parsing JavaScript on older devices. From
View index.html
(function() {
var d = document,
w = window,
de = d.documentElement,
os = w.applicationCache && w.JSON && w.localStorage,
om = window.operamini,
pe = 'pointerEvents' in && !window.opera, // Opera gives false positive
bs = 'backgroundSize' in && !om; // Opera Mini gives false positive
kixxauth / conditional.html
Created Nov 29, 2012
Development Mode in Web Browsers
View conditional.html
// Conditionally load Google Analytics
if (!PAGE.inDevmode) {
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
kixxauth / backbone-one.js
Created Nov 19, 2012
Backbone.js Single Event Listener Registration
View backbone-one.js = function (events, callback, context) {
var self = this;
function wrapper() {, wrapper, context);
callback.apply(this, arguments);
this.on(events, wrapper, context);
kixxauth / broken.html
Created Oct 11, 2012
Good Modal Dialogs
View broken.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Sane Modal</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="positioned.css">
<div id="base-layer">
You can’t perform that action at this time.