/**
* Frontend Mock Interview
* 1. Web APIs and technologies
* 2. Coding questions
* 3. Web application frameworks questions
*/
/**
* 1. Web APIs and technologies
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 { darken, parseToHsl, hsl, getLuminance } from "polished"; | |
| const addAliases = (arr: (string | number)[], aliases: string[]) => | |
| aliases.forEach((key, i) => | |
| Object.defineProperty(arr, key, { | |
| enumerable: false, | |
| get() { | |
| return this[i]; | |
| } | |
| }) | |
| ); |
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
| (* | |
| Even though a [native solution][1] exists, it still suffers from a big flaw: it right-clicks the place you cursor is, not what you’re selecting. This addresses that limitation. | |
| You can install this as a [Finder Service, and later asign it a keyboard shortcut][2]. | |
| [1]: http://stackoverflow.com/questions/9171613/right-click-shortcut-for-mac-lion-os | |
| [2]: http://www.macosxautomation.com/services/learn/tut01/index.html | |
| *) |
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
| <form | |
| name="waitlist" | |
| data-netlify="true" | |
| netlify-honeypot="bot-field" | |
| className="bg-primary p-10 mt-4 rounded shadow-md" | |
| onSubmit={(e) => { | |
| fetch("/", { | |
| method: "POST", | |
| headers: { "Content-Type": "application/x-www-form-urlencoded" }, | |
| body: encode({ "form-name": "waitlist", email }), |
OlderNewer