Skip to content

Instantly share code, notes, and snippets.

@dariye
dariye / theme.ts
Created June 26, 2019 08:49
theme.ts
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];
}
})
);
@dariye
dariye / RightClick.applescript
Created March 31, 2020 06:35 — forked from vitorgalvao/Right Click.applescript
Make right-clicking on OSX accessible via a keyboard shortcut.
(*
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
*)
/**
 * Frontend Mock Interview
 * 1. Web APIs and technologies
 * 2. Coding questions
 * 3. Web application frameworks questions
 */

/**
 * 1. Web APIs and technologies
<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 }),