I hereby claim:
- I am zemd on github.
- I am demetrio (https://keybase.io/demetrio) on keybase.
- I have a public key ASBxq8_JkCuSLGLuMkDV4IHH6bpS6i1-rHo2pl07qKgSEwo
To claim this, I am signing this object:
| // This is just https://bottosson.github.io/posts/gamutclipping/ crudely translated to TS | |
| type Lab = { L: number; a: number; b: number }; | |
| type RGB = { r: number; g: number; b: number }; | |
| type sRGB = { r: number; g: number; b: number }; | |
| function linear_srgb_to_oklab(c: RGB): Lab { | |
| const l = 0.4122214708 * c.r + 0.5363325363 * c.g + 0.0514459929 * c.b; | |
| const m = 0.2119034982 * c.r + 0.6806995451 * c.g + 0.1073969566 * c.b; | |
| const s = 0.0883024619 * c.r + 0.2817188376 * c.g + 0.6299787005 * c.b; |
| "use client"; | |
| import { createPortal } from "react-dom"; | |
| const getContainer = (container: TPortalProps["container"]) => { | |
| return typeof container === "function" ? container() : container; | |
| }; | |
| type TPortalProps = React.PropsWithChildren<{ | |
| container?: Element | (() => Element | null) | null; |
| // import {validate, IsEmail, MinLength} from "class-validator"; | |
| // | |
| // const EmailProperty = createProperty( | |
| // IsEmail({host_blacklist: ["example.com"]}, {message: "EMAIL IS NOT VALID."}), | |
| // MinLength(40) | |
| // ); | |
| // | |
| // class User { | |
| // @EmailProperty() | |
| // email?: string; |
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| :root { | |
| --grid-gutter-width: calc(24em / 16); | |
| --grid-column-size: calc(100% / 18); |
| RemoteException { | |
| errorCode: 39, | |
| className: 'java.lang.NullPointerException', | |
| message: null, | |
| stackTrace: | |
| [ StackTraceElement { | |
| declaringClass: 'com.hazelcast.replicatedmap.impl.operation.ContainsKeyOperation', | |
| methodName: 'run', | |
| fileName: 'ContainsKeyOperation.java', | |
| lineNumber: 46 }, |
| <?php | |
| namespace AppBundle\Twig\Extension; | |
| use Symfony\Component\HttpFoundation\RequestStack; | |
| use Twig_SimpleFunction; | |
| class RouteChecker extends \Twig_Extension | |
| { | |
| /** @var RequestStack */ |
| <?php | |
| namespace AppBundle\Twig\Extension; | |
| use Symfony\Component\HttpFoundation\File\File; | |
| use Symfony\Component\HttpKernel\KernelInterface; | |
| /** | |
| * Usage example, | |
| * <img src="{{ data_uri('@AcmeBundle/Resources/public/images/logo.svg') }}"> |
| <?php | |
| namespace AppBundle; | |
| use AppBundle\File\MimeType\SVGMimeTypeGuesser; | |
| use Symfony\Component\DependencyInjection\ContainerBuilder; | |
| use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser; | |
| use Symfony\Component\HttpKernel\Bundle\Bundle; | |
| class AppBundle extends Bundle |