This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
USAGE: | |
<div class="onMap" style="padding-top: 80%" data-route-to=""><img src="photo.jpg" /></div> | |
Where data-route-to is an encoded polyline that you can get from the Google Maps XML API, e.g. | |
https://maps.googleapis.com/maps/api/directions/xml?origin=marrakech%20airport&destination=merzouga | |
(look for the data inside <overview_polyline><points> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.registerTask('production', [ | |
'copy:govuk_template', | |
'copy:govuk_frontend_toolkit', | |
'copy:assets_js', | |
'copy:toolkit_js', | |
'bower', | |
'convert_template', | |
'copy:govuk_frontend_toolkit', | |
'replace', | |
'sass', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TAIL PACK | |
--------------------------------------- | |
Tarp | |
Groundsheet | |
Pegs | |
Camera charger/batteries | |
Running shoes | |
Head torch | |
2.5L fuel can |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bodyParser = require("body-parser"); | |
app.use(bodyParser.urlencoded({ extended: false })); | |
var pages = [ | |
{ | |
next: { | |
yes: 1, | |
no: 4 | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// Post category listing with support for exclusion | |
// $separator is a string, $excluded is an array of category slugs to be excluded from the list | |
// Sample call: | |
// echo the_category_exclude(" · ", array("hidden", "admin")); | |
function get_the_category_exclude($separator, $excluded = array("")) { | |
foreach ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============================================= | |
// | |
// SCALE ELEMENTS TO FIT A FIXED CONTAINER SIZE | |
// --------------------------------------------- | |
// | |
// By Chris Hill-Scott 2009-10 | |
// | |
// Code is public domain, reuse as desired | |
// | |
// Requires jQuery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/* | |
Plugin Name: quis.cc inline images | |
Plugin URI: http://quis.cc | |
Description: Embed an image post inside a text post | |
Version: 0.1 | |
Author: Chris Hill-Scott | |
Author URI: http://quis.cc | |
License: GPL2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function preloadImages() { | |
for (i in arguments) { | |
(new Image()).src = arguments[i]; | |
} | |
}("image1.png", "image2.png")); |
OlderNewer