find src/*
find src/* -not -path "src/dir-name-to-exclude/*"
[ | |
{ | |
"type": "alltrails", | |
"title": "Oeschinen Lake Lookout", | |
"movingTime": "1h 40m", | |
"length": "7.1 km", | |
"elevationGain": "386m", | |
"createdAt": "June 7, 2023", | |
"image": "http://alltrails.com/api/alltrails/v3/maps/175121895/profile_photo?size=large&key=3p0t5s6b5g4g0e8k3c1j3w7y5c3m4t8i&show_static_map=yes&static_map_size=396x180", | |
"url": "https://www.alltrails.com/explore/recording/afternoon-hike-at-oeschinenbahn-heuberg-db2b418" |
// zoneName: {country}/{city} | |
export const zoneTimeToUTC = ({ zoneName }) => { | |
const now = new Date('2022-12-06T20:12:46+10:00') | |
const nowTimezone = formatInTimeZone(now, zoneName, 'yyyy-MM-dd HH:mm:ss') | |
return zonedTimeToUtc(nowTimezone, zoneName).toISOString() | |
} |
[ | |
{ | |
"id": 1, | |
"name": "Jennifer Connelly" | |
}, | |
{ | |
"id": 2, | |
"name": "Tom Cruise", | |
"children": [ | |
{ |
#### Idea | |
- Structure a simple URL shortener. Simple URL and short URL | |
- Now, what if we want to manage a link for each user | |
- Ability to store views on the link | |
- Client is complaining that the link is slow | |
- Client is still complaining that the link is slow |
// DATA | |
// Initial JSON data | |
const people = [ | |
{ | |
id: 1, | |
name: 'Jennifer Connelly' | |
}, | |
{ | |
id: 2, | |
name: 'Tom Cruise', |
import hash from 'object-hash'; | |
import { createClient } from 'redis'; | |
import { config } from '../config'; | |
import { serialize } from '../utils/objectTransformer'; | |
import { log } from '../utils/errors'; | |
export const REDIS_KEY_PREFIX = `PROJECTPREFIX-${config.env?.toLowerCase()}`; | |
class RedisService { | |
client: any; |
#!/usr/bin/env bash | |
# delete branchs that were merged to main|develop|..... | |
git branch --merged | egrep -v "(^\*|main|develop|release/1.0.0)" | xargs git branch -d |
// .babelrc | |
{ | |
"presets": [ | |
"@babel/preset-env", | |
"@babel/preset-react" | |
], | |
"plugins": [ | |
"@babel/plugin-transform-runtime", | |
"@babel/plugin-proposal-class-properties" | |
] |
<div className="loading-overlay"> | |
<div className="bouncing-loader"> | |
<div></div> | |
<div></div> | |
<div></div> | |
</div> | |
</div> | |
<style> | |
.loading-overlay { |