- Use a card at least 8gigs
- Format the card to ext4
- Follow instructions on site
Most RPI information taken from:
| /* Style a layer to display the console.log messages */ | |
| #consolediv { | |
| position: absolute; | |
| top:0; | |
| left:0; | |
| bottom:0; | |
| overflow: auto; | |
| font-size: 10px; | |
| color: #333; | |
| width:200px; |
| var app = angular.module('plunker', []); | |
| app.controller('MainCtrl', function($scope) { | |
| $scope.items = [ | |
| {ID: '000001', Title: 'Chicago'}, | |
| {ID: '000002', Title: 'New York'}, | |
| {ID: '000003', Title: 'Washington'} | |
| ]; | |
This sample shows how to keep a top level model that states what blocks/ panels to display on the screen.
There are 2 different samples:
Using inheritance for directives to access the parent controller.
Notice that it's also possible to implement this with a parent directive implementing the controller.
This example is similar to other I posted before but removes the use of $parent
| <!DOCTYPE html> | |
| <html ng-app="app"> | |
| <head> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.0.1/angular.min.js"></script> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| </head> | |
| <body ng-controller="MyCtrl"> | |
| {{serviceOutput}} - | |
| {{name}}- |
| local res = redis.call("zrange", KEYS[1], -1, -1, 'WITHSCORES') | |
| local last_id | |
| if res then | |
| last_id = 1 | |
| else | |
| last_id = res[2] + 1 | |
| end | |
| local add_res = redis.call("ZADD", KEYS[1], last_id, ARGV[1]) | |
| if add_res == 0 then | |
| last_id = 0 |
| #Setting up JAVA_HOME correctly | |
| ###Intro: | |
| Spark and maven are not happy with JAVA_HOME set to usr/bin/java, so we need to setup to the real path. | |
| In terminal (each line uses the result of the previous one as last parameter, replace as required): | |
| ``` | |
| which java | |
| ls -alh /usr/bin/java | |
| ls -alh /etc/alternatives/java | |
| ``` |
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#428bca, 6.5%)", | |
| "@brand-success": "#5cb85c", |
| <!DOCTYPE html> | |
| <html ng-app="app"> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| ul { | |
| padding: 10px; |