- https://authenticjobs.com/#category=4&onlyremote=1
- http://www.workingnomads.co/jobs
- https://remoteok.io/remote-jobs
- https://www.wfh.io/search?utf8=%E2%9C%93&query=front&commit=Go%21
- https://stackoverflow.com/jobs?sort=i&q=front&r=true
- https://weworkremotely.com/jobs/search?term=front
- http://jobs.smashingmagazine.com/
- http://frontenddeveloperjob.com/
- http://codepen.io/jobs
- https://news.ycombinator.com/item?id=12405698
This file contains hidden or 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 useScrollRestoration from "utils/hooks/useScrollRestoration"; | |
const App = ({ Component, pageProps, router }) => { | |
useScrollRestoration(router); | |
return <Component {...pageProps} />; | |
}; | |
export default App; |
This file contains hidden or 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
function convertToDownloadUrl(imgSrc) { | |
var imageData = atob(imgSrc.split(",")[1]); | |
var arrayBuffer = new ArrayBuffer(imageData.length); | |
var view = new Uint8Array(arrayBuffer); | |
for (var i = 0; i < imageData.length; i++) { | |
view[i] = imageData.charCodeAt(i) & 0xff; | |
} | |
var blob = new Blob([arrayBuffer], { type: "application/octet-stream" }); | |
var url = (window.webkitURL || window.URL).createObjectURL(blob); |
This file contains hidden or 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
/* | |
Made by Elly Loel - https://ellyloel.com/ | |
With inspiration from: | |
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
Notes: | |
- `:where()` is used to lower specificity for easy overriding. | |
*/ |
This file contains hidden or 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
function convertToFormData(data, formData?: FormData, parentKey?: any) { | |
if (data === null || data === undefined) return null; | |
formData = formData || new FormData(); | |
if ( | |
typeof data === "object" && | |
!(data instanceof Date) && | |
!(data instanceof File) | |
) { |
This file contains hidden or 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
/** | |
* Question: | |
* Given an `nums` and value `val`, write a function to remove all | |
* instances of val from the array and return the new length. | |
* | |
* | |
* Example: if nums = [5, 2, 2, 5, 3], your function should return 3. | |
*/ | |
const removeInstaces = (nums, val) => { |
This file contains hidden or 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
/** | |
* Question: | |
* Given a sorted array `nums`, write a function to remove the | |
* duplicates from the array such that each element appears only once. | |
* Your function should return the new length. | |
* | |
* | |
* Example: if nums = [0, 0, 1, 1, 2, 2, 3, 3, 4], Your function should return 5. | |
*/ |