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
- Enter the host name and clear them in chrome://net-internals/#dns edge://net-internals/#dns | |
- Enter and clear hostname, localhost in chrome://net-internals/#hsts edge://net-internals/#hsts | |
- Go to site settings by clicking on the info icon next to the url in the browser and allow any content that is applicable for you and is being blocked (esp secure content area) | |
- Go to cookie settings and clear cookies and cache for the site |
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
https://free-for.dev/ | |
https://untools.co/ |
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
git fetch origin # Updates origin/master | |
git rebase origin/master # Rebases current branch onto origin/master |
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 Controls from "./Controls"; | |
const tracks = [ | |
"bensound-acousticbreeze.mp3", | |
"https://rss.art19.com/episodes/f806adfc-e38a-45ae-8816-ab94beaa7dd1.mp3?rss_browser=BAhJIglGWUVPBjoGRVQ%3D–b8c3f2cb22145d5584957642b8314a01f09a8949" | |
]; | |
function App(props) { | |
const [track, setTrack] = React.useState(tracks[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
<Controls | |
togglePlaying={togglePlaying} | |
startOver={startOver} | |
skipToEnd={skipToEnd} | |
rewindTrack={rewindTrack} | |
forwardTrack={forwardTrack} | |
increasePlayBackRate={increasePlayBackRate} | |
adjustVolume={adjustVolume} | |
playSomething={playSomething} | |
/> |
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 onSeek = (value) => { | |
if (audioRef?.current) { | |
clearInterval(intervalRef.current); | |
audioRef.current.currentTime = value; | |
setProgress(audioRef.current.currentTime); | |
} | |
}; |
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
<input | |
type="range" | |
value={progress} | |
step="1" | |
min="0" | |
max={duration ? duration : `${duration}`} | |
className="progress" | |
onChange={(e) => onSeek(e.target.value)} | |
onMouseUp={onSeekEnd} | |
onKeyUp={onSeekEnd} |
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 { render } from "@testing-library/react"; | |
import { UserProfile } from "./User"; | |
it("doesn't shows the premium features", () => { | |
const { queryByTestId } = render( | |
<UserProfile user={{ name: "Sheldon", isPremiumUser: false }} /> | |
); | |
expect(queryByTestId("premiumFeatures")).toBeFalsy(); //passes | |
}); |
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 { render } from "@testing-library/react"; | |
import { UserProfile } from "./User"; | |
it("doesn't show the premium features", () => { | |
const { getByTestId } = render( | |
<UserProfile user={{ name: "Sheldon", isPremiumUser: false }} /> | |
); | |
expect(getByTestId("premiumFeatures")).toBeTruthy(); //throws | |
}); |
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 { render } from "@testing-library/react"; | |
import { UserProfile } from "./User"; | |
it("shows the premium features", () => { | |
const { getByTestId } = render( | |
<UserProfile user={{ name: "Sheldon", isPremiumUser: true }} /> | |
); | |
expect(getByTestId("premiumFeatures")).toBeTruthy(); //passes | |
}); |
NewerOlder