$ ssh [email protected]
Enter Password: raspberry
$ sudo raspi-config
Choose 'Repurpose entire SD card'
Update apt repositories
#import "Kiwi.h" | |
#import "RPNStack.h" | |
SPEC_BEGIN(RPNStackSpec) | |
describe(@"The stack", ^{ | |
context(@"when created", ^{ | |
RPNStack *stack = [[RPNStack alloc] init]; | |
it(@"is not nil.", ^{ | |
[[stack shouldNot] beNil]; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
module.exports = (robot) -> | |
robot.respond /who should make tea\??/i, (msg) -> | |
msg.send "@SamKnight should make tea" |
function CartController($scope) { | |
$scope.items = [ | |
{ name: 'Fish', quantity: 0, price: 20.00 }, | |
{ name: 'Chips', quantity: 0, price: 0.20 } | |
]; | |
$scope.total = function() { | |
var total = 0; | |
for(var i = 0; i < $scope.items.length; i++) { | |
total = total + ($scope.items[i].quantity * $scope.items[i].price); |
{ | |
"color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme", | |
"font_face": "Anonymous Pro", | |
"font_size": 16, | |
"ignored_packages": | |
[], | |
"margin": 2, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"use_simple_full_screen": true |
name = 'Max' | |
if name.eql? 'Max' | |
puts 'Hi Max' | |
end |
4.times do | |
puts 'Do this four times!' | |
end |
$ ssh [email protected]
Enter Password: raspberry
$ sudo raspi-config
Choose 'Repurpose entire SD card'
Update apt repositories
guard 'shell' do | |
watch(/(.*).(m|h|mm|hh)/) do | |
puts "Change detected. Running tests..." | |
`../xctool/xctool.sh -project XCodeProject.xcodeproj -scheme MainScheme test -reporter plain` | |
end | |
end |
def humanised_time | |
if milliseconds < 60000 | |
"#{ milliseconds / 1000 }sec" | |
elsif milliseconds > 60000 && milliseconds < 3600000 | |
"#{ ((milliseconds / (1000 * 60)) % 60) }m #{ (milliseconds / 1000) % 60 }s" | |
else | |
"#{ ((milliseconds / (1000 * 60 * 60)) % 24) }h #{ ((milliseconds / (1000 * 60)) % 60) }m #{ (milliseconds / 1000) % 60 }s" | |
end | |
end |