Skip to content

Instantly share code, notes, and snippets.

View willwashburn's full-sized avatar
🐅

Will Washburn willwashburn

🐅
View GitHub Profile
/* 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; }
@willwashburn
willwashburn / booker.html
Last active December 17, 2015 01:29
Booker.com interview quesiton
<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,"")
<?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"); },
]);