Skip to content

Instantly share code, notes, and snippets.

View danmillar's full-sized avatar

Dan Millar danmillar

View GitHub Profile

Keybase proof

I hereby claim:

  • I am danmillar on github.
  • I am danmillar (https://keybase.io/danmillar) on keybase.
  • I have a public key ASDUBw1YLj4eaJoFrpO5obhBtMdP-BhAq3sAh4JwhHk7BQo

To claim this, I am signing this object:

@danmillar
danmillar / Flickr.htm.php
Created June 14, 2012 11:20
Activate - Flickr
<?php if(count($this->blocks)): ?>
<section>
<?php foreach($this->blocks as $block): ?>
<div class="block">
<?php foreach($block->getSquares() as $square): ?>
<a href="<?php echo $square->getHref(); ?>">
<img src="<?php echo $square->getSrc(); ?>" alt="<?php echo $square->getAlt(); ?>" width="<?php echo $square->getWidth(); ?>" height="<?php echo $square->getHeight(); ?>" />
</a>
@danmillar
danmillar / bootstrap-popover.js
Created February 28, 2012 06:56
bootstrap-popover.js v2.0.1
/* ===========================================================
* bootstrap-popover.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#popovers
* ===========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@danmillar
danmillar / sammy-selectiveHearing.js
Created February 21, 2012 16:06
Sammy SelectiveHearing
/*
* Sammy SelectiveHearing (plugin)
* Version 1.0
* https://gist.github.com/1877181
*
* This little plugin stops Sammy reporting an error when the route is not handled,
* and also only listens to form submissions which start with a #.
*
* Copyright (c) 2012 Dan Millar (@danmillar / decode.uk.com)
* Dual licensed under the MIT and GPL licenses.
@danmillar
danmillar / sammy.modals.js
Created February 19, 2012 22:33
Sammy Modals (Plugin)
/*
* Sammy Modals (plugin)
* Version 1.0
* https://gist.github.com/1866239
*
* Copyright (c) 2012 Dan Millar (@danmillar / decode.uk.com)
* Dual licensed under the MIT and GPL licenses.
*/
;(function($) {