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
[{"region":"East Midlands","university":"De Montfort University","url":"http://store.apple.com/uk_edu_5000657"},{"region":"East Midlands","university":"Derby University","url":"http://store.apple.com/uk_edu_5000659"},{"region":"East Midlands","university":"Jisc Collections and Janet Limited","url":"http://store.apple.com/uk_edu_5004321"},{"region":"East Midlands","university":"Leicester University","url":"http://store.apple.com/uk_edu_5000710"},{"region":"East Midlands","university":"Lincoln University","url":"http://store.apple.com/uk_edu_5000712"},{"region":"East Midlands","university":"Loughborough College","url":"http://store.apple.com/uk_edu_5000723"},{"region":"East Midlands","university":"Loughborough University","url":"http://store.apple.com/uk_edu_5002639"},{"region":"East Midlands","university":"Nottingham Trent University","url":"http://store.apple.com/uk_edu_5000747"},{"region":"East Midlands","university":"Nottingham University","url":"http://store.apple.com/uk_edu_5000748"},{"region":"East Midla |
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
#Download distro to desktop and unzip. | |
cd ~/Desktop | |
#Ensure SD card is inserted and run | |
df -h | |
#Make a note of the SD card. | |
#It should looks something like: | |
#/dev/disk1s1 15Gi 2.3Mi 15Gi 1% 0 0 100% /Volumes/UNTITLED |
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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo reboot | |
sudo rpi-update | |
sudo reboot | |
#install node | |
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-arm-pi.tar.gz |
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
sudo locale-gen en_GB en_GB.UTF-8 | |
sudo dpkg-reconfigure locales |
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
cd /usr/bin | |
sudo ./raspi-config |
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
git log --graph --decorate --pretty=oneline --abbrev-commit --all |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
assemble: { | |
options: { | |
partials: ['./app/templates/partials/**/*.hbs'], | |
layout: ['./app/templates/layouts/default.hbs'], | |
data: ['./app/data/*.json'], | |
helpers: ['./build-pipeline/_helpers/helper-*.js'] | |
}, | |
site: { |
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
<script> | |
//Replace this with your mobile Typekit code | |
var kit = 'xxxxx'; | |
// Adjust the width threshold | |
if( window.innerWidth < 800 ) { | |
document.write('\x3Cscript src="//use.typekit.net/'+ kit +'.js" onload="try{Typekit.load();}catch(e){}" async>\x3C/script>'); | |
} else { | |
document.write('\x3Cscript src="//use.typekit.net/'+ kit +'.js">\x3C/script>'); | |
document.write('\x3Cscript>try{Typekit.load();}catch(e){}\x3C/script>'); | |
}; |
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
<script> | |
//Replace this with your desktop Typekit code | |
var kit = 'xxxxx' | |
// Adjust the width threshold | |
if( window.innerWidth > 800 ) { | |
document.write('\x3Cscript src="//use.typekit.net/'+ kit +'.js">\x3C/script>'); | |
document.write('\x3Cscript>try{Typekit.load();}catch(e){}\x3C/script>'); | |
}; | |
</script> |
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
def binarySearch(data, find, start, end): | |
""" | |
Search for a integer in a list of integers using a simple `Binary Search` algorithm | |
:param list data: list of integers sorted ascending | |
:param int find: integer to search for | |
:param int start: min array index | |
:param int end: max array index | |
:return int: index of 'find' or -1 if not found | |
""" |
OlderNewer