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
export const products = [ | |
{ | |
name: "Nokia 8", | |
price: 195000, | |
special_price: 190000, | |
is_new: true, | |
img_url: "https://drop.ndtv.com/TECH/product_database/images/8162017114310PM_635_nokia_8_back_silver.jpeg", | |
description: "Nokia 8 Android smartphone. Announced Sep 2017. Features 5.3″ IPS LCD display, Snapdragon 835 chipset, Dual: 13 MP primary camera, 13 MP front camera, 3090 mAh battery, 128 GB storage, 6 GB RAM, IP54 certified, Corning Gorilla Glass 5.", | |
rating: 5, | |
slug: "nokia-8" |
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
data:text/html, <html contenteditable style="padding:30px;line-height:1.6;background-color:#111;color:#192;font-size: 15px;font-family:'Operator Mono',Consolas,monospace;"> |
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>Document</title> | |
<style> | |
.profile-image { | |
width: 80%; |
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 csv | |
import re | |
from datetime import datetime | |
VCF_TEXT = '' | |
NAME_SUB = re.compile('( +|,) ?') | |
with open('./Final Year Bioscope Form.csv', mode='r') as csv_file: | |
csv_reader = csv.DictReader(csv_file) | |
lines_read = 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
import csv | |
VCF_TEXT = '' | |
with open('./Final Year Bioscope Form.csv', mode='r') as csv_file: | |
csv_reader = csv.DictReader(csv_file) | |
lines_read = 0 | |
for row in csv_reader: | |
if lines_read > 0: | |
VCF_TEXT += ("BEGIN:VCARD\n" |
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
optimization: { | |
splitChunks: { | |
name: false, | |
cacheGroups: { | |
default: false, | |
commons: { | |
test: /[\\/]node_modules[\\/]/, | |
name: "vendor", | |
chunks: "all" | |
} |
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
optimization: { | |
splitChunks: { | |
name: false, | |
cacheGroups: { | |
commons: { | |
test: /[\\/]node_modules\/(react|react-dom|react-apollo|react-router|apollo-client)[\\/]/, | |
name: "vendor", | |
chunks: "all", | |
reuseExistingChunk: true | |
} |
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 ( | |
// Match assets with hashes eg. main.347845.js, button.9029893.css | |
hashedPatternRegex = regexp.MustCompile(`[\w-/]\.[0-9,a-z]{20}\.(js|css)$`) | |
isHashedAsset = hashedPatternRegex.MatchString | |
) | |
func CacheHeaders(staticPath string) gin.HandlerFunc { | |
return func(c *gin.Context) { | |
r := c.Request.URL.Path | |
// Set a max age of 1-year for js and css with hashes |
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 from "react"; | |
import PropTypes from "prop-types"; | |
import DatePicker from "react-datepicker"; | |
import "./_custom-date-picker.scss"; | |
export const CustomDatePicker = ({ | |
showIcon, placeholderText, endDate, minDate, maxDate, dateFormat, selected, onChange, monthDropdown, yearDropdown | |
}) => ( | |
<div className={showIcon ? "custom-date-picker custom-date-picker--show-icon" : "custom-date-picker"}> | |
<DatePicker |
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 CompressionPlugin = require('compression-webpack-plugin'); | |
module.exports = { | |
plugins: [new CompressionPlugin()], | |
}; |
OlderNewer