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
First: | |
Luxurious single-bedroom apartment in the heart of London! Nestled amidst the historic charm of Central London, this exquisite property offers a perfect blend of elegance, convenience, and modern living. The bedroom is spacious and well-lit, fitted with a premium queen-size bed and bespoke built-in wardrobes. The ultra-modern bathroom features marble tiles, a walk-in rain shower, and top-of-the-line fixtures. The open-plan kitchen comes fully equipped with state-of-the-art appliances, and the contemporary living area is furnished with a plush sofa and a dining space. Additionally, there's a private balcony for residents to enjoy the city's views. Other highlights include central heating, air conditioning, hardwood flooring throughout, and 24-hour concierge service. The apartment also offers access to a communal rooftop garden with panoramic views of London's skyline. Located just steps away from renowned landmarks, gourmet restaurants, premium shopping, and efficient public transport links. Available |
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
#!/usr/bin/env zsh | |
# ANSI color codes | |
GREEN="\033[32m" | |
YELLOW="\033[33m" | |
RESET="\033[0m" | |
BACKUP_DIR="$HOME/Documents/dotfiles_backup" | |
# Create the backup directory if it doesn't exist |
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 downloadFile = (data: string, type: string, fileName: string) => { | |
const url = window.URL.createObjectURL(new Blob([data])) | |
const a = document.createElement('a') | |
a.href = url | |
switch (type) { | |
case 'text/csv': | |
default: | |
a.download = `${fileName}.csv` | |
} | |
a.click() |
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
// Taken from here: https://www.reddit.com/r/reactjs/comments/f37x69/what_are_not_popular_but_great_react_tricks | |
// If you want to optimize some of your subrender methods, you can do the trick: | |
import React from 'react'; | |
class Parent extends React.PureComponent { | |
render () { | |
const Table = this.renderTable; | |
return ( | |
<div style={{color: this.props.color}}> | |
Multiplication table: | |
<Table maxX={1000} maxY={1000} /> |
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 generateUuidv4 = () => { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => { | |
const r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & (0x3 | 0x8)); | |
return v.toString(16); | |
}); | |
} |