Skip to content

Instantly share code, notes, and snippets.

🛩

Will Washburn willwashburn

🛩
Block or report user

Report or block willwashburn

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
View segment_test.php
<?php
// Include the segment library from https://github.com/segmentio/analytics-php
include 'path_to_segment.php';
// Initialize with segment's defaults and simple error logging
Segment::init('WRITE_KEY_HERE', [
"error_handler" => function ($code, $msg) { error_log("Segment error:$code $msg"); },
]);
@willwashburn
willwashburn / booker.html
Last active Dec 17, 2015
Booker.com interview quesiton
View booker.html
<html>
<head>
<title>Booker.com Project | Will Washburn</title>
<script type="text/javascript">
var quotedText = "Anyway, I keep picturing all these little kids playing some game in this big field of rye and all. Thousands of little kids, and nobody's around - nobody big, I mean - except me. And I'm standing on the edge of some crazy cliff. What I have to do, I have to catch everybody if they start to go over the cliff - I mean if they're running and they don't look where they're going I have to come out from somewhere and catch them. That's all I do all day. I'd just be the catcher in the rye and all. I know it's crazy, but that's the only thing I'd really like to be wombatman. ";
var cleanText = quotedText
.replace(/[^A-z ']/g,"")
View ie8-grid-foundation-4.css
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
You can’t perform that action at this time.