Write a simple JavaScript application that given a number of pennies will calculate the minimum number of Sterling coins needed to make that amount.
Eg. 123p = 1 x £1, 1 x 20p, 1 x 2p, 1 x 1p
// How I have to do it | |
@mixin image { | |
background: #ccc; | |
margin: 0 0 1.5em; | |
padding-top: 4px; | |
p { | |
color: #666; |
# ProxyPass / http://pal.sandbox.dev.bbc.co.uk/ | |
# ProxyPass / http://static.sandbox.dev.bbc.co.uk/ | |
# ProxyPreserveHost on |
TomMaslenXXL:workspace maslet02$ rake tools:concat_js | |
rake aborted! | |
No such file or directory - tabloid/webapp/static/js/js_to_concat.js | |
Tasks: TOP => tools:concat_js | |
(See full trace by running task with --trace) |
<?php | |
class BBC_News_Core_Controller_BaseController extends BBC_Controller_Action | |
{ | |
protected $container; | |
/** | |
* Primarily intended for extending the constructor. | |
* Initializing resources used in the controller |
function aboveFold(obj) { | |
var curtop = 0; | |
if (obj.offsetParent) { | |
do { | |
curtop += obj.offsetTop; | |
} while (obj = obj.offsetParent); | |
} | |
else { | |
curtop = obj.offsetTop; | |
} |
function ctm() { var u = 'undefined'; return ((typeof document.querySelector !== u) && (typeof localStorage !== u) && (typeof window.addEventListener !== u)) ? true : false;} | |
function ctm() {var u='undefined';return typeof document.querySelector!==u && typeof localStorage!==u && typeof window.addEventListener!==u ? true:false;} | |
function ctm(){return 'querySelector' in document && 'localStorage' in window && 'addEventListener' in window ? true:false} | |
function ctm(){try{return 'querySelector' in document && 'localStorage' in window && 'addEventListener' in window ? true:false;}catch(){return false}} | |
function ctm(){return 'querySelector' in document && 'localStorage' in window && 'addEventListener' in window} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB"> | |
<head profile="http://dublincore.org/documents/dcq-html/"> | |
<title></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
<link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> | |
<meta name="DCTERMS.created" content="2006-09-15T12:00:00Z" /> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB"> | |
<head profile="http://dublincore.org/documents/dcq-html/"> | |
<title></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
<link rel="schema.dcterms" href="http://purl.org/dc/terms/" /> | |
<meta name="DCTERMS.created" content="2006-09-15T12:00:00Z" /> |