Markdown | Less | Pretty |
---|---|---|
Intention | command |
Comment |
Delete an image | docker image rmi react:app |
images can take a lot of space (e.g. 1GB for node) |
1 | 2 | 3 |
This file contains hidden or 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
angular.module('selectExample', []) | |
.controller('ExampleController', ['$scope', function($scope) { | |
$scope.colors = [ | |
{name:'black', shade:'dark'}, | |
{name:'white', shade:'light', notAnOption: true}, | |
{name:'red', shade:'dark'}, | |
{name:'blue', shade:'dark', notAnOption: true}, | |
{name:'yellow', shade:'light', notAnOption: false} | |
]; | |
$scope.myColor = $scope.colors[2]; // red |
This file contains hidden or 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
export class FlatJSON { | |
/* @ngInject */ | |
constructor() { | |
console.log("FlatJSON Service Init") | |
console.debug("FlatJSON running tests...") | |
this.test(); | |
} | |
toJSON(keys) { |
eewrewr erwerwer
Links
var s = "JavaScript syntax highlighting";
alert(s);
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
<!--<link rel="stylesheet" href="styles.css">--> | |
</head> | |
<body> | |
<h1>Hello world!</h1> | |
<script src="rotate-matrix.js"></script> |
This file contains hidden or 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 generateUUID() { // Public Domain/MIT | |
var d = new Date().getTime(); | |
if (typeof performance !== 'undefined' && typeof performance.now === 'function'){ | |
d += performance.now(); //use high-precision timer if available | |
} | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { | |
var r = (d + Math.random() * 16) % 16 | 0; | |
d = Math.floor(d / 16); | |
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16); | |
}); |
This file contains hidden or 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
INSTALLATION | |
We've created a one-liner that automates the installation procedure. To get started with this display, simply execute curl -L http://coreelec.io/2q | bash | |
If you want to see what this script does before running, save it to a file with curl -L http://coreelec.io/2q >> lcd35-installer | |
You can roll back to using the regular HDMI output at any time by executing the included LCD_hdmi script. | |
https://core-electronics.com.au/3-5inch-display-module-touch-lcd-with-stylus-for-raspberry-pi-3.html | |
To rotate your display, simply enter display_rotate or lcd_rotate at the bottom of your config file: |