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
(task time * duration without automation) - (time to automate * resource) = time profit | |
(5 [mins] * 90 [days] ) - (45 [mins] * 1 [dev]) = 405 mins time profit --> or 6 hours and 45 mins |
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
(task time * duration without automation) - (time to automate * resource) = time profit |
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
<div class="nav"> | |
<ul> | |
<li> | |
<a href="#">Item 1</a> | |
<ul> | |
<li> | |
<a href="#">Sub Item</a> | |
<ul> | |
<li><a href="#">2nd lvl sub item</a></li> | |
<li><a href="#">2nd lvl sub item</a></li> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>The Ultimate Drop Down Tutorial</title> | |
<style id="jsbin-css"> | |
/* Text styling */ | |
h1, h2, h3, h4, h5, h6, p, li { font-family: Arial; } |
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
/** | |
* Copyright 2019 Google LLC. | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
function getEnvironment() { | |
var environment = { | |
spreadsheetID: "<REPLACE WITH YOUR SPREADSHEET ID>", | |
firebaseUrl: "<REPLACE WITH YOUR REALTIME DB URL>" | |
}; |
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
var someItems = ["Feb", "Jan", "Apr", "Dec", "Oct"]; | |
function sortMonths(a, b){ | |
var correctMonthsOrder = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; | |
return correctMonthsOrder.indexOf(a) - correctMonthsOrder.indexOf(b); | |
} | |
someItems.sort(sortMonths); |
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
function sortNumbers(a, b) { | |
if (a > b) { | |
return 1; | |
} else if (b > a) { | |
return -1; | |
} else { | |
return 0; | |
} | |
} |
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
{ | |
bread: [ | |
{name: 'ciabatta', cost: 2.00, price: 8.50, sold: 14}, | |
{name: 'whole grain', cost: 1.59, price: 4.50, sold: 5} | |
], | |
drinks: { | |
cola: [ | |
{name: 'Coca-cola', cost: 0.80, price: 2.99, sold:32}, | |
{name: 'Pepsi', cost: 1.50, price: 2.99, sold:45} | |
], |
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
{ | |
bread: [ | |
{name: 'ciabatta', cost: 2.00, price: 8.50, sold: 14}, | |
{name: 'whole grain', cost: 1.59, price: 4.50, sold: 5} | |
], | |
drinks: { | |
cola: [ | |
{name: 'Coca-cola', cost: 0.80, price: 2.99, sold:32}, | |
{name: 'Pepsi', cost: 1.50, price: 2.99, sold:45} | |
], |
NewerOlder