- CSS Properties
- Truncate text
- for 1 line
- for multiple lines
- http://joelsaupe.com/programming/multiple-line-ellipsis-css/
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
// See notes at vickon.netlify.com/notes/algorithms-and-data-structures-day-3 | |
let = longestPrefixSuffix => { | |
let table = new Array(pattern.length) | |
let pointer = 0 | |
table[0] = 0 | |
for (let i = 1; i < pattern.length; i++) { | |
while (pointer > 0 && pattern.charAt(i) !== pattern.charAt(pointer)) { | |
pointer = table[pointer - 1] | |
} |
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
[ | |
{ | |
"code": 1, | |
"customerID": "5e6b803dc1a35b1ac6a7f855", | |
"businessName": "Utara", | |
"priceListCode": "PriceLevel2", | |
"status": "Active", | |
"emailAddress": "[email protected]%", | |
"phoneNumber": "(988) 401-3964", | |
"category": "Goods", |
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 React, { useState } from "react"; | |
import styled from "styled-components"; | |
import "./App.css"; | |
// Styled components definitions for all components | |
const Header = styled.header` | |
// padding: 0.5em 1em; | |
`; |
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 React, { useState } from "react"; | |
import styled from "styled-components"; | |
import "./App.css"; | |
// Styled components definitions for all components | |
const Header = styled.header``; | |
const Nav = styled.nav``; | |
const MainContent = styled.main``; | |
const Container = styled.div``; |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Offline/Online Demo</title> | |
<style> |
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'> | |
<!-- the {{home}} got replaced--> | |
<title> HOME </title> | |
<link rel='stylesheet' href='css/style.css'/> | |
</head> | |
<body> |
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
//requiring express and handlebars | |
//.create() method configures handlebars. We’ll explain that in a while | |
const express = require('express'), | |
hbs = require('express-handlebars').create({defaultLayout: 'main', extname: 'hbs'}); | |
app = express(); | |
//set the app engine to handlebars | |
app.engine('hbs', hbs.engine); | |
app.set('view engine','hbs'); |
NewerOlder