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
import Component from '@glimmer/component'; | |
import { tracked } from '@glimmer/tracking'; | |
export default class extends Component { | |
@tracked messageContent = ''; | |
@tracked isFocused = false; | |
get isMessageBoxActive() { | |
return !!this.isFocused || !!this.messageContent; |
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
const cache = {} | |
const bigNandlitteNcompanies = [ | |
'Amazon Technologies, Inc.', | |
'Microsoft Technology Licensing, LLC', | |
'Apple Inc.', | |
'Facebook, Inc.', | |
'Google Inc.', | |
'LinkedIn Corporation', | |
'Uber Technologies, Inc.', | |
'Pinterest, Inc.', |
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 Longest(matrix) { | |
const cache = getMarkedUpMatrix(matrix); | |
let current = 1; | |
let longest = 1; | |
Object.keys(cache).map((value) => { | |
const cacheObj = cache[value]; | |
const cacheObj2 = cache[(parseInt(value, 10) + 1) + '']; | |
if (isNeighbor(cacheObj, cacheObj2)) { |
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(n) { | |
// DEFAULT to 5 if n is undefined | |
if (!n) { | |
console.log("DEFAULT to 5 if n is undefined"); | |
n = 5; | |
} | |
var A = Array.apply(0, Array(n)).map(function(x, y){return y+1}).reverse(); | |
var B = []; | |
var C = []; |